/hal_espressif-3.5.0/components/spi_flash/test/ |
D | test_flash_encryption.c | 28 static size_t start; variable 33 start = part->address; in setup_tests() 34 printf("Test data partition @ 0x%x\n", start); in setup_tests() 55 spi_flash_erase_sector(start / SPI_FLASH_SEC_SIZE)); 64 spi_flash_write_encrypted(start+1, fortyeight_bytes, 32)); 67 spi_flash_write_encrypted(start, fortyeight_bytes, 15)); 70 verify_erased_flash(start, 0x20); 73 test_encrypted_write(start, fortyeight_bytes, 0x20); 74 verify_erased_flash(start + 0x20, 0x20); 78 spi_flash_read_encrypted(start+0x10, buf, 0x10); [all …]
|
D | test_mmap.c | 19 static uint32_t start; variable 44 if (start == 0) { in setup_mmap_tests() 46 start = part->address; in setup_mmap_tests() 48 printf("Test data partition @ 0x%x - 0x%x\n", start, end); in setup_mmap_tests() 50 TEST_ASSERT(end > start); in setup_mmap_tests() 51 TEST_ASSERT(end - start >= 512*1024); in setup_mmap_tests() 69 for (int block = start / 0x10000; block < end / 0x10000; ++block) { in setup_mmap_tests() 79 if (block == start / 0x10000 && sector == 0 && word == 0) { in setup_mmap_tests() 100 printf("Mapping %x (+%x)\n", start, end - start); 102 ESP_ERROR_CHECK( spi_flash_mmap(start, end - start, SPI_FLASH_MMAP_DATA, &ptr1, &handle1) ); [all …]
|
D | test_read_write.c | 37 static size_t start; variable 41 if (start == 0) { in setup_tests() 43 start = part->address; in setup_tests() 44 printf("Test data partition @ 0x%x\n", start); in setup_tests() 52 static void fill(char *dest, int32_t start, int32_t len) in fill() argument 55 *(dest + i) = (char) (start + i); in fill() 84 ESP_ERROR_CHECK(spi_flash_erase_sector((start + src_off) / SPI_FLASH_SEC_SIZE)); in test_read() 86 esp_rom_spiflash_result_t rc = esp_rom_spiflash_write(start, src_buf, sizeof(src_buf)); in test_read() 92 ESP_ERROR_CHECK(spi_flash_read(start + src_off, dst_buf + dst_off, len)); in test_read() 215 ESP_ERROR_CHECK(spi_flash_erase_sector((start + dst_off) / SPI_FLASH_SEC_SIZE)); in test_write() [all …]
|
/hal_espressif-3.5.0/components/heap/port/ |
D | memory_layout_utils.c | 65 return (int)r_a->start - (int)r_b->start; in s_compare_reserved_regions() 77 reserved[0].start = (intptr_t)layout->dram0_rtos_reserved_start; in s_prepare_reserved_regions() 95 reserved[i].start, reserved[i].end); in s_prepare_reserved_regions() 96 … reserved[i].start = reserved[i].start & ~3; /* expand all reserved areas to word boundaries */ in s_prepare_reserved_regions() 98 assert(reserved[i].start <= reserved[i].end); in s_prepare_reserved_regions() 100 assert(reserved[i + 1].start > reserved[i].start); in s_prepare_reserved_regions() 101 if (reserved[i].end > reserved[i + 1].start) { in s_prepare_reserved_regions() 104 reserved[i].start, reserved[i].end, reserved[i + 1].start, in s_prepare_reserved_regions() 132 … ESP_EARLY_LOGV(TAG, "Examining memory region 0x%08x - 0x%08x", in.start, in.start + in.size); in soc_get_available_memory_regions() 133 intptr_t in_start = in.start; in soc_get_available_memory_regions() [all …]
|
/hal_espressif-3.5.0/components/heap/ |
D | heap_caps_init.c | 32 size_t heap_size = region->end - region->start; in register_heap() 34 region->heap = multi_heap_register((void *)region->start, heap_size); in register_heap() 72 if (b->start == (intptr_t)(a->start + a->size) && b->type == a->type ) { in heap_caps_init() 74 b->start = a->start; in heap_caps_init() 106 heap->start = region->start; in heap_caps_init() 107 heap->end = region->start + region->size; in heap_caps_init() 118 region->start, region->size, region->size / 1024, type->name); in heap_caps_init() 155 esp_err_t heap_caps_add_region(intptr_t start, intptr_t end) in heap_caps_add_region() argument 157 if (start == 0) { in heap_caps_add_region() 164 if (region->start <= start && (intptr_t)(region->start + region->size) > start) { in heap_caps_add_region() [all …]
|
/hal_espressif-3.5.0/components/espcoredump/src/ |
D | core_dump_binary.c | 69 if (!esp_core_dump_mem_seg_is_sane(seg->start, seg->size)) { in esp_core_dump_save_mem_segment() 71 seg->start, seg->size); in esp_core_dump_save_mem_segment() 81 err = write_cfg->write(write_cfg->priv, (void*)seg->start, seg->size); in esp_core_dump_save_mem_segment() 84 seg->start, seg->size, err); in esp_core_dump_save_mem_segment() 88 seg->start, seg->size); in esp_core_dump_save_mem_segment() 127 mem_seg.size, mem_seg.start); in esp_core_dump_write_binary() 128 data_len += esp_core_dump_get_memory_len(mem_seg.start, mem_seg.start+mem_seg.size); in esp_core_dump_write_binary() 147 uint32_t start = 0; in esp_core_dump_write_binary() local 148 int data_sz = esp_core_dump_get_user_ram_info(i, &start); in esp_core_dump_write_binary() 155 …a_len += sizeof(core_dump_mem_seg_header_t) + esp_core_dump_get_memory_len(start, start + data_sz); in esp_core_dump_write_binary() [all …]
|
D | core_dump_common.c | 30 #define COREDUMP_GET_MEMORY_SIZE(end, start) (end - start) argument 178 stack->start = task->stack_start; in esp_core_dump_switch_task_stack_to_isr() 256 int esp_core_dump_get_user_ram_info(coredump_region_t region, uint32_t *start) in esp_core_dump_get_user_ram_info() argument 260 ESP_COREDUMP_DEBUG_ASSERT(start != NULL); in esp_core_dump_get_user_ram_info() 264 *start = (uint32_t)&_coredump_dram_start; in esp_core_dump_get_user_ram_info() 269 *start = (uint32_t)&_coredump_iram_start; in esp_core_dump_get_user_ram_info() 274 *start = (uint32_t)&_coredump_rtc_start; in esp_core_dump_get_user_ram_info() 279 *start = (uint32_t)&_coredump_rtc_fast_start; in esp_core_dump_get_user_ram_info()
|
/hal_espressif-3.5.0/components/jsmn/src/ |
D | jsmn.c | 43 tok->start = tok->end = -1; in jsmn_alloc_token() 55 int start, int end) { in jsmn_fill_token() argument 57 token->start = start; in jsmn_fill_token() 68 int start; in jsmn_parse_primitive() local 70 start = parser->pos; in jsmn_parse_primitive() 83 parser->pos = start; in jsmn_parse_primitive() 89 parser->pos = start; in jsmn_parse_primitive() 100 parser->pos = start; in jsmn_parse_primitive() 103 jsmn_fill_token(token, JSMN_PRIMITIVE, start, parser->pos); in jsmn_parse_primitive() 118 int start = parser->pos; in jsmn_parse_string() local [all …]
|
/hal_espressif-3.5.0/components/esp_http_client/lib/ |
D | http_utils.c | 82 char *end, *start; in http_utils_trim_whitespace() local 86 start = *str; in http_utils_trim_whitespace() 87 if (start == NULL) { in http_utils_trim_whitespace() 91 while (isspace((unsigned char)*start)) start ++; in http_utils_trim_whitespace() 93 if (*start == 0) { // All spaces? in http_utils_trim_whitespace() 99 end = (char *)(start + strlen(start) - 1); in http_utils_trim_whitespace() 100 while (end > start && isspace((unsigned char)*end)) { in http_utils_trim_whitespace() 106 memmove(*str, start, strlen(start) + 1); in http_utils_trim_whitespace() 126 int http_utils_str_starts_with(const char *str, const char *start) in http_utils_str_starts_with() argument 130 int start_len = strlen(start); in http_utils_str_starts_with() [all …]
|
/hal_espressif-3.5.0/components/spi_flash/ |
D | flash_mmap.c | 208 int start; in spi_flash_mmap_pages() local 212 for (start = region_begin; start < end; ++start) { in spi_flash_mmap_pages() 216 for (pos = start; pos < start + page_count; ++pos, ++pageno) { in spi_flash_mmap_pages() 225 if (pos - start == page_count) { in spi_flash_mmap_pages() 230 if (start == end) { in spi_flash_mmap_pages() 236 for (int i = start; i != start + page_count; ++i, ++pageno) { in spi_flash_mmap_pages() 269 new_entry->page = start; in spi_flash_mmap_pages() 273 temp_ptr = (void*) (region_addr + (start - region_begin) * SPI_FLASH_MMU_PAGE_SIZE); in spi_flash_mmap_pages() 429 int start, end, page_delta; in spi_flash_phys2cache() local 433 start = SOC_MMU_DROM0_PAGES_START; in spi_flash_phys2cache() [all …]
|
D | esp_flash_api.c | 98 esp_err_t (*start)(esp_flash_t *chip); member 107 .start = spiflash_start_default, 127 if (chip->os_func != NULL && chip->os_func->start != NULL) { in spiflash_start_default() 128 esp_err_t err = chip->os_func->start(chip->os_func_data); in spiflash_start_default() 169 esp_err_t acquire_err = rom_spiflash_api_funcs->start(chip); in flash_end_flush_cache() 247 err = rom_spiflash_api_funcs->start(chip); in esp_flash_init() 325 err = rom_spiflash_api_funcs->start(chip); in esp_flash_init_main() 345 esp_err_t err = rom_spiflash_api_funcs->start(chip); in read_id_core() 397 esp_err_t err = rom_spiflash_api_funcs->start(chip); in read_unique_id() 443 err = rom_spiflash_api_funcs->start(chip); in detect_spi_flash_chip() [all …]
|
/hal_espressif-3.5.0/components/esp_serial_slave_link/ |
D | essl.c | 20 #define TIME_EXPIRED_SINCE_CORE(start, end, timeout, max) (bool)((end)>=(start)? \ argument 21 ((end)-(start)>(timeout)) :\ 22 ((max)-(timeout)>(start)-(end))) 24 #define TIME_EXPIRED_SINCE(start, end, timeout) TIME_EXPIRED_SINCE_CORE(start, end, timeout, UINT32… argument 28 #define TIME_REMAIN_CORE(start, end, timeout, max) ((end)>=(start)?\ argument 29 MINUS_UNTIL_ZERO(timeout, (end)-(start)):\ 30 MINUS_UNTIL_ZERO((start)-(end), (max)-(timeout))) 32 #define TIME_REMAIN(start, end, timeout) TIME_REMAIN_CORE(start, end, timeout, UINT32_MAX) argument 63 esp_err_t essl_send_packet(essl_handle_t handle, const void *start, size_t length, uint32_t wait_ms) in essl_send_packet() argument 65 if (handle == NULL || start == NULL || length == 0) { in essl_send_packet() [all …]
|
/hal_espressif-3.5.0/components/app_trace/ |
D | app_trace_membufs_proto.c | 61 proto->blocks[i].start = blocks_cfg[i].start; in esp_apptrace_membufs_init() 97 esp_hostdata_hdr_t *hdr = (esp_hostdata_hdr_t *)proto->blocks[new_block_num].start; in esp_apptrace_membufs_swap() 101 uint8_t *p = proto->blocks[new_block_num].start + proto->blocks[new_block_num].sz; in esp_apptrace_membufs_swap() 103 hdr->block_sz, proto->blocks[new_block_num].start, in esp_apptrace_membufs_swap() 104 *(proto->blocks[new_block_num].start+0), *(proto->blocks[new_block_num].start+1), in esp_apptrace_membufs_swap() 105 *(proto->blocks[new_block_num].start+2), *(proto->blocks[new_block_num].start+3), in esp_apptrace_membufs_swap() 106 *(proto->blocks[new_block_num].start+4), *(proto->blocks[new_block_num].start+5), in esp_apptrace_membufs_swap() 107 *(proto->blocks[new_block_num].start+6), *(proto->blocks[new_block_num].start+7), in esp_apptrace_membufs_swap() 133 … memcpy(proto->blocks[new_block_num].start + proto->state.markers[new_block_num], ptr, read_sz); in esp_apptrace_membufs_swap() 253 ptr = ESP_APPTRACE_INBLOCK(proto)->start + ESP_APPTRACE_INBLOCK_MARKER(proto); in esp_apptrace_membufs_wait4buf() [all …]
|
/hal_espressif-3.5.0/components/freertos/test/ |
D | test_spinlocks.c | 20 static uint32_t start, end; variable 23 start = cpu_hal_get_cycle_count(); \ 29 OPERATION, (end - start)/REPEAT_OPS, \ 30 (end - start), REPEAT_OPS); \ 45 …NCE_LESS_THAN(FREERTOS_SPINLOCK_CYCLES_PER_OP_UNICORE, "%d cycles/op", ((end - start)/REPEAT_OPS)); 48 …TEST_PERFORMANCE_LESS_THAN(FREERTOS_SPINLOCK_CYCLES_PER_OP_PSRAM, "%d cycles/op", ((end - start)/R… 50 …TEST_PERFORMANCE_LESS_THAN(FREERTOS_SPINLOCK_CYCLES_PER_OP, "%d cycles/op", ((end - start)/REPEAT_…
|
/hal_espressif-3.5.0/components/esp_lcd/src/ |
D | esp_lcd_common.h | 66 static inline void lcd_com_reverse_buffer_bytes(uint8_t *buf, int start, int end) in lcd_com_reverse_buffer_bytes() argument 69 while (start < end) { in lcd_com_reverse_buffer_bytes() 70 temp = buf[start]; in lcd_com_reverse_buffer_bytes() 71 buf[start] = buf[end]; in lcd_com_reverse_buffer_bytes() 73 start++; in lcd_com_reverse_buffer_bytes()
|
/hal_espressif-3.5.0/components/efuse/esp32h2/ |
D | esp_efuse_utility.c | 84 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in esp_efuse_utility_burn_chip() 98 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in esp_efuse_utility_burn_chip() 102 … ets_efuse_rs_calculate((void *)range_write_addr_blocks[num_block].start, block_rs); in esp_efuse_utility_burn_chip() 105 …nge_write_addr_blocks[num_block].end - range_write_addr_blocks[num_block].start) + sizeof(uint32_t… in esp_efuse_utility_burn_chip() 106 … memcpy((void *)EFUSE_PGM_DATA0_REG, (void *)range_write_addr_blocks[num_block].start, data_len); in esp_efuse_utility_burn_chip() 126 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in esp_efuse_utility_apply_new_coding_scheme() 129 …for (uint32_t addr_rd_block = range_read_addr_blocks[num_block].start; addr_rd_block <= range_read… in esp_efuse_utility_apply_new_coding_scheme()
|
/hal_espressif-3.5.0/components/efuse/esp32s2/ |
D | esp_efuse_utility.c | 77 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in esp_efuse_utility_burn_chip() 91 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in esp_efuse_utility_burn_chip() 95 … ets_efuse_rs_calculate((void *)range_write_addr_blocks[num_block].start, block_rs); in esp_efuse_utility_burn_chip() 98 …nge_write_addr_blocks[num_block].end - range_write_addr_blocks[num_block].start) + sizeof(uint32_t… in esp_efuse_utility_burn_chip() 99 … memcpy((void *)EFUSE_PGM_DATA0_REG, (void *)range_write_addr_blocks[num_block].start, data_len); in esp_efuse_utility_burn_chip() 119 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in esp_efuse_utility_apply_new_coding_scheme() 122 …for (uint32_t addr_rd_block = range_read_addr_blocks[num_block].start; addr_rd_block <= range_read… in esp_efuse_utility_apply_new_coding_scheme()
|
/hal_espressif-3.5.0/examples/system/eventfd/ |
D | README.md | 42 I (4340) eventfd_example: Elapsed since test start: 2003 ms 44 I (4830) eventfd_example: Elapsed since test start: 2499 ms 46 I (5830) eventfd_example: Elapsed since test start: 3493 ms 48 I (7330) eventfd_example: Elapsed since test start: 4999 ms 55 I (9330) eventfd_example: Elapsed since test start: 6993 ms 57 I (9830) eventfd_example: Elapsed since test start: 7499 ms 59 I (11840) eventfd_example: Elapsed since test start: 9503 ms 61 I (12330) eventfd_example: Elapsed since test start: 9999 ms
|
/hal_espressif-3.5.0/components/spi_flash/sim/ |
D | SpiFlash.cpp | 165 int start = 0; in write() local 173 start = dest_addr / this->get_sector_size(); in write() 174 end = size > 0 ? (dest_addr + size - 1) / this->get_sector_size() : start; in write() 176 for (int i = start; i <= end; i++) { in write() 203 int start = 0; in read() local 211 start = src_addr / this->get_sector_size(); in read() 212 end = size > 0 ? (src_addr + size - 1) / this->get_sector_size() : start; in read() 214 for (int i = start; i <= end; i++) { in read()
|
/hal_espressif-3.5.0/components/efuse/esp32c3/ |
D | esp_efuse_utility.c | 102 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in esp_efuse_utility_burn_chip() 116 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in esp_efuse_utility_burn_chip() 120 … ets_efuse_rs_calculate((void *)range_write_addr_blocks[num_block].start, block_rs); in esp_efuse_utility_burn_chip() 123 …nge_write_addr_blocks[num_block].end - range_write_addr_blocks[num_block].start) + sizeof(uint32_t… in esp_efuse_utility_burn_chip() 124 … memcpy((void *)EFUSE_PGM_DATA0_REG, (void *)range_write_addr_blocks[num_block].start, data_len); in esp_efuse_utility_burn_chip() 144 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in esp_efuse_utility_apply_new_coding_scheme() 147 …for (uint32_t addr_rd_block = range_read_addr_blocks[num_block].start; addr_rd_block <= range_read… in esp_efuse_utility_apply_new_coding_scheme()
|
/hal_espressif-3.5.0/components/efuse/esp32s3/ |
D | esp_efuse_utility.c | 102 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in esp_efuse_utility_burn_chip() 116 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in esp_efuse_utility_burn_chip() 120 … ets_efuse_rs_calculate((void *)range_write_addr_blocks[num_block].start, block_rs); in esp_efuse_utility_burn_chip() 123 …nge_write_addr_blocks[num_block].end - range_write_addr_blocks[num_block].start) + sizeof(uint32_t… in esp_efuse_utility_burn_chip() 124 … memcpy((void *)EFUSE_PGM_DATA0_REG, (void *)range_write_addr_blocks[num_block].start, data_len); in esp_efuse_utility_burn_chip() 144 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in esp_efuse_utility_apply_new_coding_scheme() 147 …for (uint32_t addr_rd_block = range_read_addr_blocks[num_block].start; addr_rd_block <= range_read… in esp_efuse_utility_apply_new_coding_scheme()
|
/hal_espressif-3.5.0/components/efuse/esp32/ |
D | esp_efuse_utility.c | 84 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in esp_efuse_utility_burn_chip() 93 REG_WRITE(range_write_addr_blocks[num_block].start + k * 4, out_buf[k]); in esp_efuse_utility_burn_chip() 97 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in esp_efuse_utility_burn_chip() 150 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in read_w_data_and_check_fill() 163 …for (uint32_t addr_rd_block = range_read_addr_blocks[num_block].start; addr_rd_block <= range_read… in read_r_data() 206 … REG_WRITE(range_write_addr_blocks[num_block].start + (num_reg + r) * 4, reg[r]); in esp_efuse_utility_apply_new_coding_scheme() 220 REG_WRITE(range_write_addr_blocks[num_block].start + i * 4, buf_32[i]); in esp_efuse_utility_apply_new_coding_scheme() 221 … REG_WRITE(range_write_addr_blocks[num_block].start + (i + 4) * 4, buf_32[i]); in esp_efuse_utility_apply_new_coding_scheme()
|
/hal_espressif-3.5.0/components/esp_system/port/arch/xtensa/ |
D | debug_helpers.c | 109 esp_backtrace_frame_t start = { 0 }; in esp_backtrace_print() local 110 esp_backtrace_get_start(&(start.pc), &(start.sp), &(start.next_pc)); in esp_backtrace_print() 111 return esp_backtrace_print_from_frame(depth, &start, false); in esp_backtrace_print()
|
/hal_espressif-3.5.0/components/esp_system/test_eh_frame_parser/ |
D | main.c | 88 uintptr_t start; member 99 .start = (uintptr_t) &browse_list, 104 .start = (uintptr_t) &is_odd, 109 .start = (uintptr_t) &is_even, 128 return current_fun.start <= pc && pc <= current_fun.end; in is_pc_in_function() 290 uint8_t* instructions = (uint8_t*) funs[i].start; in initialize_functions_info()
|
/hal_espressif-3.5.0/components/wpa_supplicant/src/common/ |
D | mbo.c | 129 u8 start, u8 end) in wpas_mbo_non_pref_chan_attr_body() argument 133 wpabuf_put_u8(mbo, wpa_s->non_pref_chan[start].oper_class); in wpas_mbo_non_pref_chan_attr_body() 135 for (i = start; i < end; i++) in wpas_mbo_non_pref_chan_attr_body() 138 wpabuf_put_u8(mbo, wpa_s->non_pref_chan[start].preference); in wpas_mbo_non_pref_chan_attr_body() 139 wpabuf_put_u8(mbo, wpa_s->non_pref_chan[start].reason); in wpas_mbo_non_pref_chan_attr_body() 151 struct wpabuf *mbo, u8 start, u8 end) in wpas_mbo_non_pref_chan_attr() argument 153 size_t size = end - start + 3; in wpas_mbo_non_pref_chan_attr() 159 wpas_mbo_non_pref_chan_attr_body(wpa_s, mbo, start, end); in wpas_mbo_non_pref_chan_attr() 173 struct wpabuf *mbo, u8 start, in wpas_mbo_non_pref_chan_subelement() argument 176 size_t size = end - start + 7; in wpas_mbo_non_pref_chan_subelement() [all …]
|