Home
last modified time | relevance | path

Searched refs:crc_tab (Results 1 – 3 of 3) sorted by relevance

/openbmc/qemu/hw/nvram/
H A Dxlnx-efuse-crc.c31 static const uint32_t crc_tab[128] = { in xlnx_efuse_u37_crc() local
91 crc = crc_tab[i] ^ r; in xlnx_efuse_u37_crc()
99 crc = crc_tab[i << (rshf - 2)] ^ r; in xlnx_efuse_u37_crc()
/openbmc/u-boot/board/keymile/common/
H A Divm.c16 const unsigned short crc_tab[16] = { in ivm_calc_crc() local
32 r1 = crc_tab[crc & 0xF]; in ivm_calc_crc()
34 crc = crc ^ r1 ^ crc_tab[byte & 0xF]; in ivm_calc_crc()
37 r1 = crc_tab[crc & 0xF]; in ivm_calc_crc()
39 crc = crc ^ r1 ^ crc_tab[(byte >> 4) & 0xF]; in ivm_calc_crc()
/openbmc/linux/drivers/iio/adc/
H A Dad7280a.c175 unsigned char crc_tab[CRC8_TABLE_SIZE]; member
190 static unsigned char ad7280_calc_crc8(unsigned char *crc_tab, unsigned int val) in ad7280_calc_crc8() argument
194 crc = crc_tab[val >> 16 & 0xFF]; in ad7280_calc_crc8()
195 crc = crc_tab[crc ^ (val >> 8 & 0xFF)]; in ad7280_calc_crc8()
202 unsigned char crc = ad7280_calc_crc8(st->crc_tab, val >> 10); in ad7280_check_crc()
255 ad7280_calc_crc8(st->crc_tab, reg >> 11)); in ad7280_write()
1027 crc8_populate_msb(st->crc_tab, POLYNOM); in ad7280_probe()