Searched refs:crc (Results 1 – 3 of 3) sorted by relevance
/hardware/broadcom/wlan/bcm4329/src/shared/ |
D | bcmutils.c | 1117 (c) = ((c) >> 8) ^ crc##n##_table[((c) ^ (x)) & 0xff] 1123 uint8 crc /* either CRC8_INIT_VALUE or previous return value */ in hndcrc8() argument 1130 crc = crc8_table[(crc ^ *pdata++) & 0xff]; in hndcrc8() 1132 return crc; in hndcrc8() 1196 uint16 crc /* either CRC16_INIT_VALUE or previous return value */ in hndcrc16() argument 1200 CRC_INNER_LOOP(16, crc, *pdata++); in hndcrc16() 1201 return crc; in hndcrc16() 1275 uint32 crc /* either CRC32_INIT_VALUE or previous return value */ in hndcrc32() argument 1287 CRC_INNER_LOOP(32, crc, *pdata++); in hndcrc32() 1294 CRC_INNER_LOOP(32, crc, tmp[0]); in hndcrc32() [all …]
|
/hardware/broadcom/wlan/bcm4329/src/bcmsdio/sys/ |
D | bcmsdspi.c | 1556 uint8 c, j, bit, crc = 0; in sdspi_crc7() local 1562 bit = crc & CRC7_CRCHIGHBIT; in sdspi_crc7() 1563 crc <<= 1; in sdspi_crc7() 1565 if (bit) crc ^= CRC7_POLYNOM; in sdspi_crc7() 1570 crc = (crc << 1) | 1; in sdspi_crc7() 1572 return (crc); in sdspi_crc7() 1582 uint16 crc = 0; in sdspi_crc16() local 1587 bit = crc & CRC16_CRCHIGHBIT; in sdspi_crc16() 1588 crc <<= 1; in sdspi_crc16() 1590 if (bit) crc ^= CRC16_POLYNOM; in sdspi_crc16() [all …]
|
/hardware/broadcom/wlan/bcm4329/src/include/ |
D | bcmutils.h | 567 extern uint8 hndcrc8(uint8 *p, uint nbytes, uint8 crc); 568 extern uint16 hndcrc16(uint8 *p, uint nbytes, uint16 crc); 569 extern uint32 hndcrc32(uint8 *p, uint nbytes, uint32 crc);
|