Searched refs:crc_tab (Results 1 – 1 of 1) sorted by relevance
129 unsigned char crc_tab[256]; member141 static void ad7280_crc8_build_table(unsigned char *crc_tab) in ad7280_crc8_build_table() argument154 crc_tab[cnt] = crc; in ad7280_crc8_build_table()158 static unsigned char ad7280_calc_crc8(unsigned char *crc_tab, unsigned val) in ad7280_calc_crc8() argument162 crc = crc_tab[val >> 16 & 0xFF]; in ad7280_calc_crc8()163 crc = crc_tab[crc ^ (val >> 8 & 0xFF)]; in ad7280_calc_crc8()170 unsigned char crc = ad7280_calc_crc8(st->crc_tab, val >> 10); in ad7280_check_crc()220 reg |= ad7280_calc_crc8(st->crc_tab, reg >> 11) << 3 | 0x2; in ad7280_write()863 ad7280_crc8_build_table(st->crc_tab); in ad7280_probe()