/hal_espressif-latest/components/esp_rom/linux/ |
D | esp_rom_crc.c | 166 uint32_t esp_rom_crc32_le(uint32_t crc, uint8_t const * buf,uint32_t len) in esp_rom_crc32_le() argument 169 crc = ~crc; in esp_rom_crc32_le() 171 crc = crc32_le_table[(crc^buf[i])&0xff]^(crc>>8); in esp_rom_crc32_le() 173 return ~crc; in esp_rom_crc32_le() 176 uint32_t esp_rom_crc32_be(uint32_t crc, uint8_t const * buf,uint32_t len) in esp_rom_crc32_be() argument 179 crc = ~crc; in esp_rom_crc32_be() 181 crc = crc32_be_table[(crc>>24)^buf[i]]^(crc<<8); in esp_rom_crc32_be() 183 return ~crc; in esp_rom_crc32_be() 186 uint16_t esp_rom_crc16_le(uint16_t crc, uint8_t const * buf, uint32_t len) in esp_rom_crc16_le() argument 189 crc = ~crc; in esp_rom_crc16_le() [all …]
|
D | esp_rom_efuse.c | 12 unsigned char crc = 0; in esp_crc8() local 15 crc = crc ^ (*p++); in esp_crc8() 18 if ((crc) & 0x01) { in esp_crc8() 19 crc = (crc >> 1) ^ (0x8c) ; in esp_crc8() 21 crc = crc >> 1; in esp_crc8() 26 return (crc); in esp_crc8()
|
/hal_espressif-latest/components/esp_rom/patches/ |
D | esp_rom_crc.c | 92 uint8_t esp_rom_crc8_be(uint8_t crc, uint8_t const *buf, uint32_t len) in esp_rom_crc8_be() argument 95 crc = ~crc; in esp_rom_crc8_be() 97 crc = crc8_be_table[crc ^ buf[i]]; in esp_rom_crc8_be() 99 return ~crc; in esp_rom_crc8_be() 102 uint16_t esp_rom_crc16_be(uint16_t crc, uint8_t const *buf, uint32_t len) in esp_rom_crc16_be() argument 105 crc = ~crc; in esp_rom_crc16_be() 107 crc = crc16_be_table[(crc >> 8)^buf[i]] ^ (crc << 8); in esp_rom_crc16_be() 109 return ~crc; in esp_rom_crc16_be() 112 uint32_t esp_rom_crc32_be(uint32_t crc, uint8_t const *buf, uint32_t len) in esp_rom_crc32_be() argument 115 crc = ~crc; in esp_rom_crc32_be() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/external/sbc/decoder/srce/ |
D | framing.c | 115 OI_UINT crc; in crc_iterate() local 118 crc = crc8_wide[idx >> 1]; in crc_iterate() 120 crc &= 0xff; in crc_iterate() 122 crc >>= 8; in crc_iterate() 125 return crc; in crc_iterate() 130 OI_UINT crc; in crc_iterate_top4() local 133 crc = crc8_wide[idx >> 1]; in crc_iterate_top4() 135 crc &= 0xff; in crc_iterate_top4() 137 crc >>= 8; in crc_iterate_top4() 140 return (oldcrc << 4) ^ crc; in crc_iterate_top4() [all …]
|
D | decoder-sbc.c | 247 OI_UINT8 crc; in OI_CODEC_SBC_DecodeFrame() local 301 crc = OI_SBC_CalculateChecksum(&context->common.frameInfo, *frameData); in OI_CODEC_SBC_DecodeFrame() 302 if (crc != context->common.frameInfo.crc) { in OI_CODEC_SBC_DecodeFrame() 303 TRACE(("CRC Mismatch: calc=%02x read=%02x\n", crc, context->common.frameInfo.crc)); in OI_CODEC_SBC_DecodeFrame() 344 OI_UINT8 crc; in OI_CODEC_SBC_SkipFrame() local 358 crc = OI_SBC_CalculateChecksum(&context->common.frameInfo, *frameData); in OI_CODEC_SBC_SkipFrame() 359 if (crc != context->common.frameInfo.crc) { in OI_CODEC_SBC_SkipFrame()
|
D | decoder-private.c | 125 frame->crc = data[3]; in OI_SBC_ReadHeader() 157 frame->crc = data[3]; in OI_SBC_ReadHeader()
|
/hal_espressif-latest/components/esp_hw_support/include/ |
D | esp_crc.h | 25 static inline uint32_t esp_crc32_le(uint32_t crc, uint8_t const *buf, uint32_t len) in esp_crc32_le() argument 27 return esp_rom_crc32_le(crc, buf, len); in esp_crc32_le() 38 static inline uint32_t esp_crc32_be(uint32_t crc, uint8_t const *buf, uint32_t len) in esp_crc32_be() argument 40 return esp_rom_crc32_be(crc, buf, len); in esp_crc32_be() 51 static inline uint16_t esp_crc16_le(uint16_t crc, uint8_t const *buf, uint32_t len) in esp_crc16_le() argument 53 return esp_rom_crc16_le(crc, buf, len); in esp_crc16_le() 64 static inline uint16_t esp_crc16_be(uint16_t crc, uint8_t const *buf, uint32_t len) in esp_crc16_be() argument 66 return esp_rom_crc16_be(crc, buf, len); in esp_crc16_be() 77 static inline uint8_t esp_crc8_le(uint8_t crc, uint8_t const *buf, uint32_t len) in esp_crc8_le() argument 79 return esp_rom_crc8_le(crc, buf, len); in esp_crc8_le() [all …]
|
/hal_espressif-latest/components/spi_flash/sim/stubs/esp32/ |
D | crc.cpp | 50 extern "C" unsigned int crc32_le(unsigned int crc, unsigned char const * buf,unsigned int len) in crc32_le() argument 53 crc = ~crc; in crc32_le() 55 crc = crc32_le_table[(crc^buf[i])&0xff]^(crc>>8); in crc32_le() 57 return ~crc; in crc32_le()
|
/hal_espressif-latest/components/esp_rom/include/esp32s3/rom/ |
D | crc.h | 49 uint32_t crc32_le(uint32_t crc, uint8_t const *buf, uint32_t len); 62 uint32_t crc32_be(uint32_t crc, uint8_t const *buf, uint32_t len); 75 uint16_t crc16_le(uint16_t crc, uint8_t const *buf, uint32_t len); 88 uint16_t crc16_be(uint16_t crc, uint8_t const *buf, uint32_t len); 101 uint8_t crc8_le(uint8_t crc, uint8_t const *buf, uint32_t len); 114 uint8_t crc8_be(uint8_t crc, uint8_t const *buf, uint32_t len);
|
/hal_espressif-latest/components/esp_rom/include/ |
D | esp_rom_crc.h | 70 uint32_t esp_rom_crc32_le(uint32_t crc, uint8_t const *buf, uint32_t len); 80 uint32_t esp_rom_crc32_be(uint32_t crc, uint8_t const *buf, uint32_t len); 90 uint16_t esp_rom_crc16_le(uint16_t crc, uint8_t const *buf, uint32_t len); 100 uint16_t esp_rom_crc16_be(uint16_t crc, uint8_t const *buf, uint32_t len); 110 uint8_t esp_rom_crc8_le(uint8_t crc, uint8_t const *buf, uint32_t len); 120 uint8_t esp_rom_crc8_be(uint8_t crc, uint8_t const *buf, uint32_t len);
|
/hal_espressif-latest/components/esp_rom/include/esp32c2/rom/ |
D | crc.h | 43 uint32_t crc32_le(uint32_t crc, uint8_t const *buf, uint32_t len); 56 uint32_t crc32_be(uint32_t crc, uint8_t const *buf, uint32_t len); 69 uint16_t crc16_le(uint16_t crc, uint8_t const *buf, uint32_t len); 82 uint16_t crc16_be(uint16_t crc, uint8_t const *buf, uint32_t len); 95 uint8_t crc8_le(uint8_t crc, uint8_t const *buf, uint32_t len); 108 uint8_t crc8_be(uint8_t crc, uint8_t const *buf, uint32_t len);
|
/hal_espressif-latest/components/esp_rom/include/esp32c3/rom/ |
D | crc.h | 51 uint32_t crc32_le(uint32_t crc, uint8_t const *buf, uint32_t len); 64 uint32_t crc32_be(uint32_t crc, uint8_t const *buf, uint32_t len); 77 uint16_t crc16_le(uint16_t crc, uint8_t const *buf, uint32_t len); 90 uint16_t crc16_be(uint16_t crc, uint8_t const *buf, uint32_t len); 103 uint8_t crc8_le(uint8_t crc, uint8_t const *buf, uint32_t len); 116 uint8_t crc8_be(uint8_t crc, uint8_t const *buf, uint32_t len);
|
/hal_espressif-latest/components/esp_rom/include/esp32c6/rom/ |
D | crc.h | 43 uint32_t crc32_le(uint32_t crc, uint8_t const *buf, uint32_t len); 56 uint32_t crc32_be(uint32_t crc, uint8_t const *buf, uint32_t len); 69 uint16_t crc16_le(uint16_t crc, uint8_t const *buf, uint32_t len); 82 uint16_t crc16_be(uint16_t crc, uint8_t const *buf, uint32_t len); 95 uint8_t crc8_le(uint8_t crc, uint8_t const *buf, uint32_t len); 108 uint8_t crc8_be(uint8_t crc, uint8_t const *buf, uint32_t len);
|
/hal_espressif-latest/components/esp_rom/include/esp32h2/rom/ |
D | crc.h | 43 uint32_t crc32_le(uint32_t crc, uint8_t const *buf, uint32_t len); 56 uint32_t crc32_be(uint32_t crc, uint8_t const *buf, uint32_t len); 69 uint16_t crc16_le(uint16_t crc, uint8_t const *buf, uint32_t len); 82 uint16_t crc16_be(uint16_t crc, uint8_t const *buf, uint32_t len); 95 uint8_t crc8_le(uint8_t crc, uint8_t const *buf, uint32_t len); 108 uint8_t crc8_be(uint8_t crc, uint8_t const *buf, uint32_t len);
|
/hal_espressif-latest/components/esp_rom/include/esp32/rom/ |
D | crc.h | 84 uint32_t crc32_le(uint32_t crc, uint8_t const *buf, uint32_t len); 97 uint32_t crc32_be(uint32_t crc, uint8_t const *buf, uint32_t len); 110 uint16_t crc16_le(uint16_t crc, uint8_t const *buf, uint32_t len); 123 uint16_t crc16_be(uint16_t crc, uint8_t const *buf, uint32_t len); 136 uint8_t crc8_le(uint8_t crc, uint8_t const *buf, uint32_t len); 149 uint8_t crc8_be(uint8_t crc, uint8_t const *buf, uint32_t len);
|
/hal_espressif-latest/components/esp_rom/include/esp32s2/rom/ |
D | crc.h | 51 uint32_t crc32_le(uint32_t crc, uint8_t const *buf, uint32_t len); 64 uint16_t crc16_le(uint16_t crc, uint8_t const *buf, uint32_t len); 77 uint8_t crc8_le(uint8_t crc, uint8_t const *buf, uint32_t len);
|
/hal_espressif-latest/components/bootloader_support/src/ |
D | bootloader_common_loader.c | 46 …return bootloader_common_ota_select_invalid(s) == false && s->crc == bootloader_common_ota_select_… in bootloader_common_ota_select_valid() 131 return sizeof(rtc_retain_mem_t) - sizeof(bootloader_common_get_rtc_retain_mem()->crc); in rtc_retain_mem_size() 138 …8_t*)rtc_retain_mem, rtc_retain_mem_size()) == rtc_retain_mem->crc && rtc_retain_mem->crc != UINT3… in is_retain_mem_valid() 144 …rtc_retain_mem->crc = esp_rom_crc32_le(UINT32_MAX, (uint8_t*)rtc_retain_mem, rtc_retain_mem_size()… in update_rtc_retain_mem_crc()
|
D | bootloader_utility.c | 395 …if ((otadata[0].ota_seq == UINT32_MAX || otadata[0].crc != bootloader_common_ota_select_crc(&otada… 396 …(otadata[1].ota_seq == UINT32_MAX || otadata[1].crc != bootloader_common_ota_select_crc(&otadata[1… 408 …if ((otadata[0].ota_seq == UINT32_MAX || otadata[0].crc != bootloader_common_ota_select_crc(&otada… 409 …(otadata[1].ota_seq == UINT32_MAX || otadata[1].crc != bootloader_common_ota_select_crc(&otadata[1… 475 otadata.crc = bootloader_common_ota_select_crc(&otadata);
|
/hal_espressif-latest/components/driver/spi/sdspi/ |
D | sdspi_host.c | 776 uint16_t crc = UINT16_MAX; in start_command_read_blocks() local 777 memcpy(&crc, rx_data + will_receive, sizeof(crc)); in start_command_read_blocks() 780 pre_scan_data_size = receive_extra_bytes - sizeof(crc); in start_command_read_blocks() 781 pre_scan_data_ptr = rx_data + will_receive + sizeof(crc); in start_command_read_blocks() 793 if (crc_of_data != crc) { in start_command_read_blocks() 794 ESP_LOGE(TAG, "data CRC failed, got=0x%04x expected=0x%04x", crc_of_data, crc); in start_command_read_blocks() 898 uint16_t crc = sdspi_crc16(data, will_send); in start_command_write_blocks() local 899 const int size_crc_response = sizeof(crc) + 1; in start_command_write_blocks() 906 memcpy(t_crc_rsp.tx_data, &crc, sizeof(crc)); in start_command_write_blocks()
|
/hal_espressif-latest/components/bootloader_support/include/ |
D | esp_image_format.h | 62 uint32_t crc; /*!< Check sum crc32 */ member 66 ESP_STATIC_ASSERT(offsetof(rtc_retain_mem_t, crc) == sizeof(rtc_retain_mem_t) - sizeof(uint32_t), "…
|
D | esp_flash_partitions.h | 67 uint32_t crc; /* CRC32 of ota_seq field only */ member
|
/hal_espressif-latest/components/wpa_supplicant/src/crypto/ |
D | crypto_ops.c | 50 static uint32_t esp_supp_crc32(uint32_t crc, uint8_t const *buf, uint32_t len) in esp_supp_crc32() argument 52 return esp_rom_crc32_le(crc, buf, len); in esp_supp_crc32()
|
/hal_espressif-latest/components/spi_flash/sim/stubs/ |
D | Makefile.files | 5 esp32/crc.cpp \
|
/hal_espressif-latest/tools/esptool_py/esptool/ |
D | bin_image.py | 614 crc = esp8266_crc32(f.read()) 616 f.write(struct.pack(b"<I", crc)) 623 crc = binascii.crc32(data, 0) & 0xFFFFFFFF 624 if crc & 0x80000000: 625 return crc ^ 0xFFFFFFFF 627 return crc + 1
|
/hal_espressif-latest/components/bt/host/bluedroid/external/sbc/decoder/include/ |
D | oi_codec_sbc.h | 147 OI_UINT8 crc; /**< Parity check byte used for error detection. */ member
|