/hal_espressif-2.7.6/components/spi_flash/test/ |
D | test_flash_encryption.c | 16 static void test_encrypted_write(size_t offset, const uint8_t *data, size_t length); 17 static void test_encrypted_write_new_impl(size_t offset, const uint8_t *data, size_t length); 18 static void verify_erased_flash(size_t offset, size_t length); 79 static void test_encrypted_write(size_t offset, const uint8_t *data, size_t length) in test_encrypted_write() argument 82 printf("encrypt %d bytes at 0x%x\n", length, offset); in test_encrypted_write() 84 spi_flash_write_encrypted(offset, data, length)); in test_encrypted_write() 87 spi_flash_read_encrypted(offset, readback, length)); in test_encrypted_write() 140 static void test_encrypted_write_new_impl(size_t offset, const uint8_t *data, size_t length) in test_encrypted_write_new_impl() argument 143 printf("encrypt %d bytes at 0x%x\n", length, offset); in test_encrypted_write_new_impl() 145 esp_flash_write_encrypted(NULL, offset, data, length)); in test_encrypted_write_new_impl() [all …]
|
D | test_spi_flash.c | 30 uint32_t offset; member 53 const uint32_t sector = start / SPI_FLASH_SEC_SIZE + ctx->offset; in flash_test_task() 67 for (uint32_t offset = 0; offset < SPI_FLASH_SEC_SIZE; offset += 4) { in flash_test_task() local 68 … if (spi_flash_write(sector * SPI_FLASH_SEC_SIZE + offset, (const uint8_t *) &val, 4) != ESP_OK) { in flash_test_task() 69 printf("Write failed at offset=%d\r\n", offset); in flash_test_task() 79 for (uint32_t offset = 0; offset < SPI_FLASH_SEC_SIZE; offset += 4) { in flash_test_task() local 80 … if (spi_flash_read(sector * SPI_FLASH_SEC_SIZE + offset, (uint8_t *) &val_read, 4) != ESP_OK) { in flash_test_task() 81 printf("Read failed at offset=%d\r\n", offset); in flash_test_task() 86 printf("Read invalid value=%08x at offset=%d\r\n", val_read, offset); in flash_test_task() 102 { .offset = 0x10 + 6, .done = done }, [all …]
|
/hal_espressif-2.7.6/components/partition_table/test/ |
D | test_partition.c | 46 for (size_t offset = 0; offset < p->size; offset += block_size) { variable 48 size_t left = p->size - offset; 55 TEST_ASSERT_EQUAL(ESP_OK, esp_partition_write(p, offset, data, block_size)); 59 for (size_t offset = 0; offset < p->size; offset += block_size) { variable 61 size_t left = p->size - offset; 65 TEST_ASSERT_EQUAL(ESP_OK, esp_partition_read(p, offset, data, block_size)); 80 for (size_t offset = 0; offset < p->size; offset += block_size) { variable 82 size_t left = p->size - offset; 87 size_t pos = offset + i * 4;
|
/hal_espressif-2.7.6/components/hal/esp32s3/include/hal/ |
D | dac_ll.h | 168 static inline void dac_ll_cw_set_dc_offset(dac_channel_t channel, int8_t offset) in dac_ll_cw_set_dc_offset() argument 172 offset = 0 - offset; in dac_ll_cw_set_dc_offset() 174 SENS.sar_dac_ctrl2.dac_dc1 = offset ? offset : (-128 - offset); in dac_ll_cw_set_dc_offset() 177 offset = 0 - offset; in dac_ll_cw_set_dc_offset() 179 SENS.sar_dac_ctrl2.dac_dc2 = offset ? offset : (-128 - offset); in dac_ll_cw_set_dc_offset()
|
/hal_espressif-2.7.6/components/partition_table/ |
D | gen_esp32part.py | 119 if e.offset is not None and e.offset < last_end: 122 % (e.offset, last_end)) 125 % (e.line_no, e.offset, last_end)) 126 if e.offset is None: 130 e.offset = last_end 132 e.size = -e.size - e.offset 133 last_end = e.offset + e.size 197 for p in sorted(self, key=lambda x:x.offset): 198 if p.offset < offset_part_table + PARTITION_TABLE_SIZE: 199 …raise InputError('Partition offset 0x%x is below 0x%x' % (p.offset, offset_part_table + PARTITION_… [all …]
|
D | Makefile.projbuild | 30 PARTITION_TABLE_OFFSET_ARG := --offset $(PARTITION_TABLE_OFFSET) 72 --partition-table-offset $(PARTITION_TABLE_OFFSET) \ 73 get_partition_info --partition-type data --partition-subtype phy --info offset)) 75 --partition-table-offset $(PARTITION_TABLE_OFFSET) \ 76 get_partition_info --partition-boot-default --info offset)) 78 --partition-table-offset $(PARTITION_TABLE_OFFSET) \ 79 get_partition_info --partition-type data --partition-subtype ota --info offset)) 81 --partition-table-offset $(PARTITION_TABLE_OFFSET) \ 84 --partition-table-offset $(PARTITION_TABLE_OFFSET) \ 85 get_partition_info --partition-type app --partition-subtype factory --info offset))
|
/hal_espressif-2.7.6/components/hal/esp32/include/hal/ |
D | dac_ll.h | 168 static inline void dac_ll_cw_set_dc_offset(dac_channel_t channel, int8_t offset) in dac_ll_cw_set_dc_offset() argument 172 offset = 0 - offset; in dac_ll_cw_set_dc_offset() 174 SENS.sar_dac_ctrl2.dac_dc1 = offset ? offset : (-128 - offset); in dac_ll_cw_set_dc_offset() 177 offset = 0 - offset; in dac_ll_cw_set_dc_offset() 179 SENS.sar_dac_ctrl2.dac_dc2 = offset ? offset : (-128 - offset); in dac_ll_cw_set_dc_offset()
|
/hal_espressif-2.7.6/components/bt/host/bluedroid/stack/avrc/ |
D | avrc_api.c | 105 return (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_get_data_ptr() 120 const int offset = MAX(AVCT_MSG_OFFSET, p_pkt->offset); in avrc_copy_packet() local 123 (BT_HDR *)osi_malloc((UINT16)(BT_HDR_SIZE + offset + pkt_len)); in avrc_copy_packet() 128 p_pkt_copy->offset = offset; in avrc_copy_packet() 160 p_orig_data = ((UINT8 *)(p_fcb->p_fmsg + 1) + p_fcb->p_fmsg->offset); in avrc_prep_end_frag() 165 p_pkt_new->offset += (AVRC_MAX_CTRL_DATA_LEN - AVRC_VENDOR_HDR_SIZE - AVRC_MIN_META_HDR_SIZE); in avrc_prep_end_frag() 166 p_data = (UINT8 *)(p_pkt_new + 1) + p_pkt_new->offset; in avrc_prep_end_frag() 201 int offset_len = MAX(AVCT_MSG_OFFSET, p_pkt->offset); in avrc_send_continue_frag() 206 p_pkt->offset = AVCT_MSG_OFFSET; in avrc_send_continue_frag() 209 p_old = (UINT8 *)(p_pkt_old + 1) + p_pkt_old->offset; in avrc_send_continue_frag() [all …]
|
D | avrc_opt.c | 64 p_cmd->offset = AVCT_MSG_OFFSET; in avrc_vendor_msg() 65 p_data = (UINT8 *)(p_cmd + 1) + p_cmd->offset; in avrc_vendor_msg() 73 p_cmd->len = (UINT16) (p_data + p_msg->vendor_len - (UINT8 *)(p_cmd + 1) - p_cmd->offset); in avrc_vendor_msg() 106 p_cmd->offset = AVCT_MSG_OFFSET; in AVRC_UnitCmd() 107 p_data = (UINT8 *)(p_cmd + 1) + p_cmd->offset; in AVRC_UnitCmd() 113 p_cmd->len = p_data + AVRC_UNIT_OPRND_BYTES - (UINT8 *)(p_cmd + 1) - p_cmd->offset; in AVRC_UnitCmd() 150 p_cmd->offset = AVCT_MSG_OFFSET; in AVRC_SubCmd() 151 p_data = (UINT8 *)(p_cmd + 1) + p_cmd->offset; in AVRC_SubCmd() 158 p_cmd->len = p_data + AVRC_SUB_OPRND_BYTES - (UINT8 *)(p_cmd + 1) - p_cmd->offset; in AVRC_SubCmd()
|
D | avrc_bld_ct.c | 50 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_next_cmd() 82 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_set_abs_volume_cmd() 108 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_register_change_notfn() 134 UINT16 offset = 0; in avrc_bld_init_cmd_buffer() local 137 offset = AVRC_MSG_PASS_THRU_OFFSET; in avrc_bld_init_cmd_buffer() 141 offset = AVRC_MSG_VENDOR_OFFSET; in avrc_bld_init_cmd_buffer() 152 p_pkt->offset = offset; in avrc_bld_init_cmd_buffer() 153 p_data = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_init_cmd_buffer() 192 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_set_player_value_cmd() 222 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset; in avrc_bld_get_element_attr_cmd() [all …]
|
/hal_espressif-2.7.6/components/bt/host/bluedroid/stack/gatt/ |
D | att_protocol.c | 58 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_mtu_cmd() 80 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_exec_write_cmd() 118 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_err_cmd() 141 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_browse_cmd() 170 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_read_by_type_value_cmd() 206 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_read_multi_cmd() 228 BT_HDR *attp_build_handle_cmd(UINT8 op_code, UINT16 handle, UINT16 offset) in attp_build_handle_cmd() argument 236 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_handle_cmd() 245 UINT16_TO_STREAM (p, offset); in attp_build_handle_cmd() 269 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_opcode_cmd() [all …]
|
/hal_espressif-2.7.6/components/hal/esp32s2/include/hal/ |
D | dac_ll.h | 189 static inline void dac_ll_cw_set_dc_offset(dac_channel_t channel, int8_t offset) in dac_ll_cw_set_dc_offset() argument 193 offset = 0 - offset; in dac_ll_cw_set_dc_offset() 195 SENS.sar_dac_ctrl2.dac_dc1 = offset ? offset : (-128 - offset); in dac_ll_cw_set_dc_offset() 198 offset = 0 - offset; in dac_ll_cw_set_dc_offset() 200 SENS.sar_dac_ctrl2.dac_dc2 = offset ? offset : (-128 - offset); in dac_ll_cw_set_dc_offset()
|
/hal_espressif-2.7.6/components/bt/host/bluedroid/hci/ |
D | packet_fragmenter.c | 75 uint8_t *stream = packet->data + packet->offset; in fragment_and_dispatch() 106 packet->offset += max_data_size; in fragment_and_dispatch() 111 stream = packet->data + packet->offset; in fragment_and_dispatch() 141 uint8_t *stream = packet->data + packet->offset; in reassemble_and_dispatch() 176 partial_packet->offset = packet->len; in reassemble_and_dispatch() 178 memcpy(partial_packet->data, packet->data + packet->offset, packet->len); in reassemble_and_dispatch() 195 packet->offset += HCI_ACL_PREAMBLE_SIZE; // skip ACL preamble in reassemble_and_dispatch() 197 uint16_t projected_offset = partial_packet->offset + packet->len; in reassemble_and_dispatch() 200 packet->len = partial_packet->len - partial_packet->offset; in reassemble_and_dispatch() 205 partial_packet->data + partial_packet->offset, in reassemble_and_dispatch() [all …]
|
/hal_espressif-2.7.6/components/efuse/src/ |
D | esp_efuse_fields.c | 50 void esp_efuse_init(uint32_t offset, uint32_t size) in esp_efuse_init() argument 52 esp_efuse_flash_offset = offset; in esp_efuse_init() 59 uint32_t offset = esp_efuse_flash_offset; in emulate_secure_version_read() local 60 if (offset == 0) { in emulate_secure_version_read() 64 const uint32_t *efuse_place_in_flash = bootloader_mmap(offset, esp_efuse_flash_size); in emulate_secure_version_read() 66 …ESP_LOGE(TAG, "secure_version can not be read from (0x%x, 0x%x) flash", offset, esp_efuse_flash_si… in emulate_secure_version_read() 79 uint32_t offset = esp_efuse_flash_offset; in emulate_secure_version_write() local 80 if (offset == 0) { in emulate_secure_version_write() 84 …esp_err_t err = bootloader_flash_write(offset, &secure_version_wr, sizeof(secure_version_wr), fals… in emulate_secure_version_write()
|
/hal_espressif-2.7.6/components/esp_eth/src/ |
D | esp_eth_mac_w5500.c | 163 …esp_err_t w5500_write_buffer(emac_w5500_t *emac, const void *buffer, uint32_t len, uint16_t offset) in w5500_write_buffer() argument 168 offset %= W5500_TX_MEM_SIZE; in w5500_write_buffer() 169 if (offset + len > W5500_TX_MEM_SIZE) { in w5500_write_buffer() 170 remain = (offset + len) % W5500_TX_MEM_SIZE; in w5500_write_buffer() 171 len = W5500_TX_MEM_SIZE - offset; in w5500_write_buffer() 172 …MAC_CHECK(w5500_write(emac, W5500_MEM_SOCK_TX(0, offset), buf, len) == ESP_OK, "write TX buffer fa… in w5500_write_buffer() 173 offset += len; in w5500_write_buffer() 176 …MAC_CHECK(w5500_write(emac, W5500_MEM_SOCK_TX(0, offset), buf, remain) == ESP_OK, "write TX buffer… in w5500_write_buffer() 182 static esp_err_t w5500_read_buffer(emac_w5500_t *emac, void *buffer, uint32_t len, uint16_t offset) in w5500_read_buffer() argument 187 offset %= W5500_RX_MEM_SIZE; in w5500_read_buffer() [all …]
|
/hal_espressif-2.7.6/components/lwip/test_afl_host/ |
D | network_mock.c | 36 int pbuf_try_get_at(const struct pbuf* p, u16_t offset) in pbuf_try_get_at() argument 39 struct pbuf* q = pbuf_skip(p, offset, &q_idx); in pbuf_try_get_at() 48 void pbuf_put_at(struct pbuf* p, u16_t offset, u8_t data) in pbuf_put_at() argument 51 struct pbuf* q = pbuf_skip(p, offset, &q_idx); in pbuf_put_at() 59 u8_t pbuf_get_at(const struct pbuf* p, u16_t offset) in pbuf_get_at() argument 62 struct pbuf* q = pbuf_skip(p, offset, &q_idx); in pbuf_get_at() 76 err_t pbuf_take_at(struct pbuf *buf, const void *dataptr, u16_t len, u16_t offset) in pbuf_take_at() argument 181 u16_t pbuf_copy_partial(const struct pbuf *buf, void *dataptr, u16_t len, u16_t offset) in pbuf_copy_partial() argument 199 if ((offset != 0) && (offset >= p->len)) { in pbuf_copy_partial() 201 offset -= p->len; in pbuf_copy_partial() [all …]
|
/hal_espressif-2.7.6/components/bt/host/bluedroid/bta/hf_client/ |
D | bta_hf_client_at.c | 630 int offset; in bta_hf_client_parse_uint32() local 632 res = sscanf(buffer, "%u%n", &value, &offset); in bta_hf_client_parse_uint32() 637 buffer += offset; in bta_hf_client_parse_uint32() 658 int offset; in bta_hf_client_parse_cind_values() local 661 while ((res = sscanf(buffer, "%u%n", &value, &offset)) > 0) { in bta_hf_client_parse_cind_values() 665 buffer += offset; in bta_hf_client_parse_cind_values() 686 int offset; in bta_hf_client_parse_cind_list() local 697 … while ((res = sscanf(buffer, "(\"%128[^\"]\",(%u%*[-,]%u))%n", name, &min, &max, &offset)) > 2) { in bta_hf_client_parse_cind_list() 699 buffer += offset; in bta_hf_client_parse_cind_list() 788 int offset; in bta_hf_client_parse_ciev() local [all …]
|
/hal_espressif-2.7.6/components/bt/host/bluedroid/stack/hcic/ |
D | hcicmds.c | 52 p->offset = 0; in btsnd_hcic_inquiry() 77 p->offset = 0; in btsnd_hcic_inq_cancel() 98 p->offset = 0; in btsnd_hcic_per_inq_mode() 125 p->offset = 0; in btsnd_hcic_exit_per_inq() 152 p->offset = 0; in btsnd_hcic_create_conn() 186 p->offset = 0; in btsnd_hcic_disconnect() 210 p->offset = 0; in btsnd_hcic_add_SCO_conn() 235 p->offset = 0; in btsnd_hcic_create_conn_cancel() 258 p->offset = 0; in btsnd_hcic_accept_conn() 283 p->offset = 0; in btsnd_hcic_reject_conn() [all …]
|
/hal_espressif-2.7.6/components/bt/host/bluedroid/stack/rfcomm/ |
D | rfc_ts_frames.c | 54 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_sabme() 87 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_ua() 120 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_dm() 153 p_buf->offset = L2CAP_MIN_OFFSET; in rfc_send_disc() 182 p_buf->offset -= RFCOMM_CTRL_FRAME_LEN; in rfc_send_buf_uih() 184 p_buf->offset--; in rfc_send_buf_uih() 194 p_buf->offset--; in rfc_send_buf_uih() 197 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset; in rfc_send_buf_uih() 216 p_data = (UINT8 *)(p_buf + 1) + p_buf->offset + p_buf->len++; in rfc_send_buf_uih() 218 *p_data = RFCOMM_UIH_FCS ((UINT8 *)(p_buf + 1) + p_buf->offset, dlci); in rfc_send_buf_uih() [all …]
|
/hal_espressif-2.7.6/components/bt/host/bluedroid/external/sbc/decoder/srce/ |
D | synthesis-sbc.c | 266 OI_UINT offset = context->common.filterBufferOffset; in OI_SBC_SynthFrame_80() local 271 if (offset == 0) { in OI_SBC_SynthFrame_80() 276 offset = context->common.filterBufferLen - 80; in OI_SBC_SynthFrame_80() 278 offset -= 1 * 8; in OI_SBC_SynthFrame_80() 282 DCT2_8(context->common.filterBuffer[ch] + offset, s); in OI_SBC_SynthFrame_80() 283 SYNTH80(pcm + ch, context->common.filterBuffer[ch] + offset, pcmStrideShift); in OI_SBC_SynthFrame_80() 288 context->common.filterBufferOffset = offset; in OI_SBC_SynthFrame_80() 297 OI_UINT offset = context->common.filterBufferOffset; in OI_SBC_SynthFrame_4SB() local 302 if (offset == 0) { in OI_SBC_SynthFrame_4SB() 307 offset = context->common.filterBufferLen - 80; in OI_SBC_SynthFrame_4SB() [all …]
|
/hal_espressif-2.7.6/components/ulp/test/esp32/ |
D | test_ulp.c | 296 const int offset = 6; variable 298 I_MOVI(R1, offset), // r1 <- offset 307 assert(offset >= size && "data offset needs to be greater or equal to program size"); 316 RTC_SLOW_MEM[offset] = 0; 323 uint32_t counter = RTC_SLOW_MEM[offset] & 0xffff; 350 size_t offset = 20; variable 352 RTC_SLOW_MEM[offset] = (CONFIG_ESP32_ULP_COPROC_RESERVE_MEM) / 4 - offset - 8; 354 RTC_SLOW_MEM[offset + 1] = 0; 357 I_MOVI(R1, offset), // r1 <- offset 366 I_ST(R0, R2, offset + 4), [all …]
|
/hal_espressif-2.7.6/components/freertos/test/ |
D | test_freertos_debug_functions.c | 30 int offset = core * NO_OF_QUEUES_PER_CORE; in test_queue_registry_task() local 33 handles[i + offset] = xQueueCreate(1,1); //Create queues in test_queue_registry_task() 34 names[i + offset] = calloc(QUEUE_NAME_MAX_LENGTH, sizeof(char)); in test_queue_registry_task() 35 sprintf(names[i + offset], "Queue%d%d", core, i); in test_queue_registry_task() 40 …vQueueAddToRegistry(handles[i + offset] , names[i + offset]); //Register queues to queue registry in test_queue_registry_task() 48 vQueueDelete(handles[i + offset]); //Internally calls vQueueUnregisterQueue in test_queue_registry_task()
|
/hal_espressif-2.7.6/components/wpa_supplicant/src/crypto/ |
D | crypto_mbedtls-bignum.c | 67 int num_bytes, offset; in crypto_bignum_to_bin() local 79 offset = padlen - num_bytes; in crypto_bignum_to_bin() 81 offset = 0; in crypto_bignum_to_bin() 84 os_memset(buf, 0, offset); in crypto_bignum_to_bin() 85 mbedtls_mpi_write_binary((mbedtls_mpi *) a, buf + offset, mbedtls_mpi_size((mbedtls_mpi *)a) ); in crypto_bignum_to_bin() 87 return num_bytes + offset; in crypto_bignum_to_bin() 232 int num_bytes, offset; in crypto_bignum_to_string() local 242 offset = padlen - num_bytes; in crypto_bignum_to_string() 244 offset = 0; in crypto_bignum_to_string() 247 os_memset(buf, 0, offset); in crypto_bignum_to_string() [all …]
|
/hal_espressif-2.7.6/components/bt/host/bluedroid/stack/avct/ |
D | avct_lcb_act.c | 63 p = (UINT8 *)(p_buf + 1) + p_buf->offset; in avct_lcb_msg_asmbl() 99 sizeof(BT_HDR) + p_buf->offset + p_buf->len); in avct_lcb_msg_asmbl() 104 p = (UINT8 *)(p_lcb->p_rx_msg + 1) + p_lcb->p_rx_msg->offset; in avct_lcb_msg_asmbl() 110 p_lcb->p_rx_msg->offset += p_lcb->p_rx_msg->len; in avct_lcb_msg_asmbl() 133 p_buf->offset += AVCT_HDR_LEN_CONT; in avct_lcb_msg_asmbl() 137 if ((p_lcb->p_rx_msg->offset + p_buf->len) > buf_len) { in avct_lcb_msg_asmbl() 146 memcpy((UINT8 *)(p_lcb->p_rx_msg + 1) + p_lcb->p_rx_msg->offset, in avct_lcb_msg_asmbl() 147 (UINT8 *)(p_buf + 1) + p_buf->offset, p_buf->len); in avct_lcb_msg_asmbl() 150 p_lcb->p_rx_msg->offset -= p_lcb->p_rx_msg->len; in avct_lcb_msg_asmbl() 155 p_lcb->p_rx_msg->offset += p_buf->len; in avct_lcb_msg_asmbl() [all …]
|
/hal_espressif-2.7.6/components/nvs_flash/src/ |
D | compressed_enum_table.hpp | 40 size_t offset = (index % ITEMS_PER_WORD) * Nbits; in get() local 42 return static_cast<Tenum>((mData[wordIndex] >> offset) & VALUE_MASK); in get() 49 size_t offset = (index % ITEMS_PER_WORD) * Nbits; in set() local 51 uint32_t v = static_cast<uint32_t>(val) << offset; in set() 52 mData[wordIndex] = (mData[wordIndex] & ~(VALUE_MASK << offset)) | v; in set()
|