Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/bluetooth/hci/
Dhci_nxp_setup.c65 unsigned long crc_accum; in fw_upload_gen_crc32_table() local
68 crc_accum = ((unsigned long)i << 24); in fw_upload_gen_crc32_table()
70 if (crc_accum & 0x80000000L) { in fw_upload_gen_crc32_table()
71 crc_accum = (crc_accum << 1) ^ POLYNOMIAL; in fw_upload_gen_crc32_table()
73 crc_accum = (crc_accum << 1); in fw_upload_gen_crc32_table()
76 crc_table[i] = crc_accum; in fw_upload_gen_crc32_table()
89 static unsigned long fw_upload_update_crc32(unsigned long crc_accum, char *data_blk_ptr, in fw_upload_update_crc32() argument
95 i = ((unsigned int)(crc_accum >> 24) ^ *data_blk_ptr++) & 0xff; in fw_upload_update_crc32()
96 crc_accum = (crc_accum << 8) ^ crc_table[i]; in fw_upload_update_crc32()
98 return crc_accum; in fw_upload_update_crc32()