static unsigned int pl08x_encode_width(unsigned int unencoded) { unsigned int retval = unencoded >> 1; if (unencoded == (1 << retval)) return retval; dev_err(&pd.dmac->dev, "%s - illegal width 0x%08x\n", __func__, unencoded); return PL08X_CODING_ERR; }
上述函数第 1.9 节 “pl08x_decode_widthbits”的逆过程 |