Lines Matching defs:table
24 * crc8_populate_msb - fill crc table for given polynomial in reverse bit order.
26 * @table: table to be filled.
27 * @polynomial: polynomial for which table is to be filled.
29 void crc8_populate_msb(u8 table[CRC8_TABLE_SIZE], u8 polynomial)
35 table[0] = 0;
40 table[i+j] = table[j] ^ t;
46 * crc8_populate_lsb - fill crc table for given polynomial in regular bit order.
48 * @table: table to be filled.
49 * @polynomial: polynomial for which table is to be filled.
51 void crc8_populate_lsb(u8 table[CRC8_TABLE_SIZE], u8 polynomial)
56 table[0] = 0;
61 table[i+j] = table[j] ^ t;
69 * @table: crc table used for calculation.
74 u8 crc8(const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc)
78 crc = table[(crc ^ *pdata++) & 0xff];