/hal_espressif-2.7.6/components/spi_flash/test/ |
D | test_flash_encryption.c | 20 static size_t start; variable 24 if (start == 0) { in setup_tests() 26 start = part->address; in setup_tests() 27 printf("Test data partition @ 0x%x\n", start); in setup_tests() 36 spi_flash_erase_sector(start / SPI_FLASH_SEC_SIZE)); 45 spi_flash_write_encrypted(start+1, fortyeight_bytes, 32)); 48 spi_flash_write_encrypted(start, fortyeight_bytes, 15)); 51 verify_erased_flash(start, 0x20); 54 test_encrypted_write(start, fortyeight_bytes, 0x20); 55 verify_erased_flash(start + 0x20, 0x20); [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 | 34 static size_t start; variable 38 if (start == 0) { in setup_tests() 40 start = part->address; in setup_tests() 41 printf("Test data partition @ 0x%x\n", start); in setup_tests() 49 static void fill(char *dest, int32_t start, int32_t len) in fill() argument 52 *(dest + i) = (char) (start + i); in fill() 81 ESP_ERROR_CHECK(spi_flash_erase_sector((start + src_off) / SPI_FLASH_SEC_SIZE)); in test_read() 83 esp_rom_spiflash_result_t rc = esp_rom_spiflash_write(start, src_buf, sizeof(src_buf)); in test_read() 89 ESP_ERROR_CHECK(spi_flash_read(start + src_off, dst_buf + dst_off, len)); in test_read() 195 ESP_ERROR_CHECK(spi_flash_erase_sector((start + dst_off) / SPI_FLASH_SEC_SIZE)); in test_write() [all …]
|
/hal_espressif-2.7.6/components/soc/ |
D | memory_layout_utils.c | 59 return (int)r_a->start - (int)r_b->start; in s_compare_reserved_regions() 71 reserved[0].start = (intptr_t)layout->dram0_rtos_reserved_start; in s_prepare_reserved_regions() 89 reserved[i].start, reserved[i].end); in s_prepare_reserved_regions() 90 … reserved[i].start = reserved[i].start & ~3; /* expand all reserved areas to word boundaries */ in s_prepare_reserved_regions() 92 assert(reserved[i].start <= reserved[i].end); in s_prepare_reserved_regions() 94 assert(reserved[i + 1].start > reserved[i].start); in s_prepare_reserved_regions() 95 if (reserved[i].end > reserved[i + 1].start) { in s_prepare_reserved_regions() 98 reserved[i].start, reserved[i].end, reserved[i + 1].start, in s_prepare_reserved_regions() 126 … ESP_EARLY_LOGV(TAG, "Examining memory region 0x%08x - 0x%08x", in.start, in.start + in.size); in soc_get_available_memory_regions() 127 intptr_t in_start = in.start; in soc_get_available_memory_regions() [all …]
|
/hal_espressif-2.7.6/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 …]
|
D | multi_heap_poisoning.c | 336 multi_heap_handle_t multi_heap_register(void *start, size_t size) in multi_heap_register() argument 339 if (start != NULL) { in multi_heap_register() 340 memset(start, FREE_FILL_PATTERN, size); in multi_heap_register() 343 return multi_heap_register_impl(start, size); in multi_heap_register() 391 bool multi_heap_internal_check_block_poisoning(void *start, size_t size, bool is_free, bool print_e… in multi_heap_internal_check_block_poisoning() argument 395 return verify_fill_pattern(start, size, print_errors, true, false); in multi_heap_internal_check_block_poisoning() 400 void *data = (void *)((intptr_t)start + sizeof(poison_head_t)); in multi_heap_internal_check_block_poisoning() 415 void multi_heap_internal_poison_fill_region(void *start, size_t size, bool is_free) in multi_heap_internal_poison_fill_region() argument 417 memset(start, is_free ? FREE_FILL_PATTERN : MALLOC_FILL_PATTERN, size); in multi_heap_internal_poison_fill_region()
|
/hal_espressif-2.7.6/components/esp_http_client/lib/ |
D | http_utils.c | 66 char *end, *start; in http_utils_trim_whitespace() local 70 start = *str; in http_utils_trim_whitespace() 71 if (start == NULL) { in http_utils_trim_whitespace() 75 while (isspace((unsigned char)*start)) start ++; in http_utils_trim_whitespace() 77 if (*start == 0) { // All spaces? in http_utils_trim_whitespace() 83 end = (char *)(start + strlen(start) - 1); in http_utils_trim_whitespace() 84 while (end > start && isspace((unsigned char)*end)) { in http_utils_trim_whitespace() 90 memmove(*str, start, strlen(start) + 1); in http_utils_trim_whitespace() 110 int http_utils_str_starts_with(const char *str, const char *start) in http_utils_str_starts_with() argument 114 int start_len = strlen(start); in http_utils_str_starts_with() [all …]
|
/hal_espressif-2.7.6/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()
|
D | core_dump_flash.c | 30 uint32_t start; member 92 s_core_flash_config.partition.start = core_part->address; in esp_core_dump_flash_init() 123 … err = esp_core_dump_flash_custom_write(s_core_flash_config.partition.start + wr_data->off, in esp_core_dump_flash_write_data() 165 …err = esp_core_dump_flash_custom_write(s_core_flash_config.partition.start + wr_data->off, data + … in esp_core_dump_flash_write_data() 232 …ase flash %d bytes @ 0x%x", sec_num * SPI_FLASH_SEC_SIZE, s_core_flash_config.partition.start + 0); in esp_core_dump_flash_write_prepare() 234 …err = ESP_COREDUMP_FLASH_ERASE(s_core_flash_config.partition.start + 0, sec_num * SPI_FLASH_SEC_SI… in esp_core_dump_flash_write_prepare() 261 err = esp_core_dump_flash_custom_write(s_core_flash_config.partition.start + wr_data->off, in esp_core_dump_flash_write_end() 290 err = esp_core_dump_flash_custom_write(s_core_flash_config.partition.start + wr_data->off, in esp_core_dump_flash_write_end() 296 …err = esp_core_dump_flash_custom_write(s_core_flash_config.partition.start + wr_data->off, checksu… in esp_core_dump_flash_write_end() 321 …if (s_core_flash_config.partition.start == 0 || s_core_flash_config.partition.size < sizeof(uint32… in esp_core_dump_to_flash() [all …]
|
/hal_espressif-2.7.6/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-2.7.6/components/spi_flash/ |
D | flash_mmap.c | 191 int start; in spi_flash_mmap_pages() local 195 for (start = region_begin; start < end; ++start) { in spi_flash_mmap_pages() 199 for (pos = start; pos < start + page_count; ++pos, ++pageno) { in spi_flash_mmap_pages() 208 if (pos - start == page_count) { in spi_flash_mmap_pages() 213 if (start == end) { in spi_flash_mmap_pages() 219 for (int i = start; i != start + page_count; ++i, ++pageno) { in spi_flash_mmap_pages() 252 new_entry->page = start; in spi_flash_mmap_pages() 256 temp_ptr = (void*) (region_addr + (start - region_begin) * SPI_FLASH_MMU_PAGE_SIZE); in spi_flash_mmap_pages() 412 int start, end, page_delta; in spi_flash_phys2cache() local 416 start = SOC_MMU_DROM0_PAGES_START; in spi_flash_phys2cache() [all …]
|
D | esp_flash_api.c | 80 esp_err_t (*start)(esp_flash_t *chip); member 89 .start = spiflash_start_default, 109 if (chip->os_func != NULL && chip->os_func->start != NULL) { in spiflash_start_default() 110 esp_err_t err = chip->os_func->start(chip->os_func_data); in spiflash_start_default() 151 esp_err_t acquire_err = rom_spiflash_api_funcs->start(chip); in flash_end_flush_cache() 219 err = rom_spiflash_api_funcs->start(chip); in esp_flash_init() 239 esp_err_t err = rom_spiflash_api_funcs->start(chip); in read_id_core() 302 err = rom_spiflash_api_funcs->start(chip); in detect_spi_flash_chip() 353 err = rom_spiflash_api_funcs->start(chip); in esp_flash_get_size() 379 err = rom_spiflash_api_funcs->start(chip); in esp_flash_erase_chip() [all …]
|
/hal_espressif-2.7.6/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 68 if (start == NULL || length == 0) { in essl_send_packet() [all …]
|
/hal_espressif-2.7.6/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-2.7.6/components/efuse/src/esp32c3/ |
D | esp_efuse_utility.c | 91 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in esp_efuse_utility_burn_efuses() 102 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in esp_efuse_utility_burn_efuses() 106 … ets_efuse_rs_calculate((void *)range_write_addr_blocks[num_block].start, block_rs); in esp_efuse_utility_burn_efuses() 109 …nge_write_addr_blocks[num_block].end - range_write_addr_blocks[num_block].start) + sizeof(uint32_t… in esp_efuse_utility_burn_efuses() 110 … memcpy((void *)EFUSE_PGM_DATA0_REG, (void *)range_write_addr_blocks[num_block].start, data_len); in esp_efuse_utility_burn_efuses() 130 …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() 133 …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-2.7.6/components/efuse/src/esp32s2/ |
D | esp_efuse_utility.c | 85 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in esp_efuse_utility_burn_efuses() 96 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in esp_efuse_utility_burn_efuses() 100 … ets_efuse_rs_calculate((void *)range_write_addr_blocks[num_block].start, block_rs); in esp_efuse_utility_burn_efuses() 103 …nge_write_addr_blocks[num_block].end - range_write_addr_blocks[num_block].start) + sizeof(uint32_t… in esp_efuse_utility_burn_efuses() 104 … memcpy((void *)EFUSE_PGM_DATA0_REG, (void *)range_write_addr_blocks[num_block].start, data_len); in esp_efuse_utility_burn_efuses() 124 …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() 127 …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-2.7.6/components/efuse/src/esp32s3/ |
D | esp_efuse_utility.c | 85 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in esp_efuse_utility_burn_efuses() 96 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in esp_efuse_utility_burn_efuses() 100 … ets_efuse_rs_calculate((void *)range_write_addr_blocks[num_block].start, block_rs); in esp_efuse_utility_burn_efuses() 103 …nge_write_addr_blocks[num_block].end - range_write_addr_blocks[num_block].start) + sizeof(uint32_t… in esp_efuse_utility_burn_efuses() 104 … memcpy((void *)EFUSE_PGM_DATA0_REG, (void *)range_write_addr_blocks[num_block].start, data_len); in esp_efuse_utility_burn_efuses() 124 …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() 127 …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-2.7.6/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-2.7.6/components/mbedtls/port/ |
D | esp_timing.c | 43 struct timeval start; member 52 gettimeofday( &t->start, NULL ); in mbedtls_timing_get_timer() 60 delta = ( now.tv_sec - t->start.tv_sec ) * 1000ul in mbedtls_timing_get_timer() 61 + ( now.tv_usec - t->start.tv_usec ) / 1000; in mbedtls_timing_get_timer()
|
/hal_espressif-2.7.6/components/efuse/src/esp32/ |
D | esp_efuse_utility.c | 92 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in esp_efuse_utility_burn_efuses() 101 REG_WRITE(range_write_addr_blocks[num_block].start + k * 4, out_buf[k]); in esp_efuse_utility_burn_efuses() 105 …for (uint32_t addr_wr_block = range_write_addr_blocks[num_block].start; addr_wr_block <= range_wri… in esp_efuse_utility_burn_efuses() 155 …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() 168 …for (uint32_t addr_rd_block = range_read_addr_blocks[num_block].start; addr_rd_block <= range_read… in read_r_data() 211 … REG_WRITE(range_write_addr_blocks[num_block].start + (num_reg + r) * 4, reg[r]); in esp_efuse_utility_apply_new_coding_scheme() 225 REG_WRITE(range_write_addr_blocks[num_block].start + i * 4, buf_32[i]); in esp_efuse_utility_apply_new_coding_scheme() 226 … 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-2.7.6/components/bootloader_support/src/ |
D | bootloader_random.c | 33 uint32_t start, now; in bootloader_fill_random() local 47 start = cpu_hal_get_cycle_count(); in bootloader_fill_random() 51 } while (now - start < 80 * 32 * 2); /* extra factor of 2 is precautionary */ in bootloader_fill_random()
|
/hal_espressif-2.7.6/components/espcoredump/include_core_dump/ |
D | esp_core_dump_common.h | 103 int esp_core_dump_get_user_ram_info(coredump_region_t region, uint32_t *start); 143 static inline uint32_t esp_core_dump_get_memory_len(uint32_t start, uint32_t end) in esp_core_dump_get_memory_len() argument 145 const uint32_t len = end - start; in esp_core_dump_get_memory_len()
|
/hal_espressif-2.7.6/docs/zh_CN/api-guides/ |
D | app_trace.rst | 175 ``esp32 apptrace [start <options>] | [stop] | [status] | [dump <cores_num> <outfile>]`` 179 ``start`` 191 ``start <outfile> [poll_period [trace_size [stop_tmo [wait4halt [skip_size]]]]`` 218 esp32 apptrace start file://trace.log 1 2048 5 0 0 230 esp32 apptrace start file://trace.log 1 -1 -1 0 0 238 esp32 apptrace start file://trace.log 0 -1 -1 0 0 246 esp32 apptrace start file://trace.log 0 2048 -1 1 0 355 ``esp32 sysview [start <options>] | [stop] | [status]`` 359 ``start`` 368 ``start <outfile1> [outfile2] [poll_period [trace_size [stop_tmo]]]`` [all …]
|
/hal_espressif-2.7.6/components/mbedtls/esp_crt_bundle/ |
D | gen_crt_bundle.py | 107 start = False 110 if strg == '-----BEGIN CERTIFICATE-----\n' and start is False: 112 start = True 113 elif strg == '-----END CERTIFICATE-----\n' and start is True: 115 start = False 118 if start is True:
|