Searched refs:crc (Results 1 – 11 of 11) sorted by relevance
/hardware/nxp/nfc/halimpl/utils/ |
D | sparse_crc32.cc | 102 uint32_t crc; in sparse_crc32() local 104 crc = crc_in ^ ~0U; in sparse_crc32() 105 while (size--) crc = crc32_tab[(crc ^ *p++) & 0xFF] ^ (crc >> 8); in sparse_crc32() 106 return crc ^ ~0U; in sparse_crc32()
|
D | sparse_crc32.h | 22 uint32_t sparse_crc32(uint32_t crc, const void* buf, int size);
|
/hardware/st/secure_element2/secure_element/1.0/esehal/src/ |
D | checksum.c | 42 crc_ccitt(uint16_t crc, const void *s, size_t n) in crc_ccitt() argument 91 crc = (uint8_t)(crc >> 8) ^ fast[(uint8_t)(crc ^ *p++)]; in crc_ccitt() 92 return crc; in crc_ccitt()
|
D | checksum.h | 37 unsigned crc_ccitt(uint16_t crc, const void *s, size_t n);
|
D | iso7816_t1.c | 122 uint16_t crc = crc_ccitt(0xFFFF, buf, n); in do_chk() local 123 buf[n++] = (uint8_t)(crc >> 8); in do_chk() 124 buf[n++] = (uint8_t)(crc); in do_chk() 143 uint16_t crc = crc_ccitt(0xFFFF, buf, n); in chk_is_good() local 144 match = (crc == (buf[n + 1] | (buf[n] << 8))); in chk_is_good()
|
/hardware/interfaces/boot/1.1/default/boot_control/ |
D | libboot_control.cpp | 56 uint32_t crc = i; in CRC32() local 58 uint32_t mask = -(crc & 1); in CRC32() 59 crc = (crc >> 1) ^ (0xEDB88320 & mask); in CRC32() 61 crc_table[i] = crc; in CRC32()
|
/hardware/qcom/msm8998/gpt-utils/ |
D | gpt-utils.cpp | 292 uint32_t crc; in gpt2_set_boot_chain() local 341 crc = crc32(0, pentries, pentries_array_size); in gpt2_set_boot_chain() 342 if (GET_4_BYTES(gpt_header + PARTITION_CRC_OFFSET) != crc) { in gpt2_set_boot_chain() 364 crc = crc32(0, pentries, pentries_array_size); in gpt2_set_boot_chain() 365 PUT_4_BYTES(gpt_header + PARTITION_CRC_OFFSET, crc); in gpt2_set_boot_chain() 369 crc = crc32(0, gpt_header, gpt_header_size); in gpt2_set_boot_chain() 370 PUT_4_BYTES(gpt_header + HEADER_CRC_OFFSET, crc); in gpt2_set_boot_chain() 405 uint32_t crc; in gpt_get_state() local 438 crc = GET_4_BYTES(gpt_header + HEADER_CRC_OFFSET); in gpt_get_state() 441 if (crc32(0, gpt_header, gpt_header_size) != crc) in gpt_get_state() [all …]
|
/hardware/broadcom/wlan/bcmdhd/dhdutil/ |
D | bcmutils.c | 1339 (c) = ((c) >> 8) ^ crc##n##_table[((c) ^ (x)) & 0xff] 1345 uint8 crc /* either CRC8_INIT_VALUE or previous return value */ in hndcrc8() argument 1352 crc = crc8_table[(crc ^ *pdata++) & 0xff]; in hndcrc8() 1354 return crc; in hndcrc8() 1418 uint16 crc /* either CRC16_INIT_VALUE or previous return value */ in hndcrc16() argument 1422 CRC_INNER_LOOP(16, crc, *pdata++); in hndcrc16() 1423 return crc; in hndcrc16() 1498 hndcrc32(uint8 *pdata, uint nbytes, uint32 crc) in hndcrc32() argument 1503 CRC_INNER_LOOP(32, crc, *pdata++); in hndcrc32() 1505 return crc; in hndcrc32()
|
D | ucode_download.c | 45 dload_ptr->crc = 0; in dload_generic_data()
|
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/ |
D | bcmutils.h | 785 extern uint8 hndcrc8(uint8 *p, uint nbytes, uint8 crc); 786 extern uint16 hndcrc16(uint8 *p, uint nbytes, uint16 crc); 787 extern uint32 hndcrc32(uint8 *p, uint nbytes, uint32 crc);
|
D | wlioctl.h | 280 uint32 crc; member
|