Home
last modified time | relevance | path

Searched refs:crc (Results 1 – 7 of 7) sorted by relevance

/hardware/nxp/nfc/halimpl/utils/
Dsparse_crc32.cc102 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()
Dsparse_crc32.h22 uint32_t sparse_crc32(uint32_t crc, const void* buf, int size);
/hardware/qcom/msm8998/gpt-utils/
Dgpt-utils.cpp292 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/
Dbcmutils.c1339 (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()
Ducode_download.c45 dload_ptr->crc = 0; in dload_generic_data()
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/
Dbcmutils.h785 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);
Dwlioctl.h280 uint32 crc; member