/hal_espressif-3.6.0/components/xtensa/esp32s3/include/xtensa/config/ |
D | tie-asm.h | 76 .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 80 xchal_sa_align \ptr, 0, 1016, 4, 4 82 s32i \at1, \ptr, .Lxchal_ofs_+0 85 xchal_sa_align \ptr, 0, 1016, 4, 4 90 xchal_sa_align \ptr, 0, 1012, 4, 4 92 s32i \at1, \ptr, .Lxchal_ofs_+0 94 s32i \at1, \ptr, .Lxchal_ofs_+4 97 xchal_sa_align \ptr, 0, 1012, 4, 4 102 xchal_sa_align \ptr, 0, 996, 4, 4 104 s32i \at1, \ptr, .Lxchal_ofs_+0 [all …]
|
/hal_espressif-3.6.0/components/xtensa/esp32/include/xtensa/config/ |
D | tie-asm.h | 76 .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 80 xchal_sa_align \ptr, 0, 1016, 4, 4 82 s32i \at1, \ptr, .Lxchal_ofs_+0 85 xchal_sa_align \ptr, 0, 1016, 4, 4 90 xchal_sa_align \ptr, 0, 1012, 4, 4 92 s32i \at1, \ptr, .Lxchal_ofs_+0 94 s32i \at1, \ptr, .Lxchal_ofs_+4 97 xchal_sa_align \ptr, 0, 1012, 4, 4 102 xchal_sa_align \ptr, 0, 996, 4, 4 104 s32i \at1, \ptr, .Lxchal_ofs_+0 [all …]
|
/hal_espressif-3.6.0/zephyr/esp_shared/src/common/ |
D | heap_caps.c | 90 void *ptr = NULL; in z_esp_alloc_internal() local 92 ptr = k_aligned_alloc(sizeof(void *), size); in z_esp_alloc_internal() 95 if (ptr == NULL) { in z_esp_alloc_internal() 96 ptr = z_esp_aligned_alloc(&_internal_heap_1, align, size); in z_esp_alloc_internal() 99 return ptr; in z_esp_alloc_internal() 104 void *ptr = NULL; in z_esp_calloc_internal() local 108 ptr = k_aligned_alloc(sizeof(void *), bounds); in z_esp_calloc_internal() 109 if (ptr != NULL) { in z_esp_calloc_internal() 110 (void)memset(ptr, 0, bounds); in z_esp_calloc_internal() 115 if (ptr == NULL) { in z_esp_calloc_internal() [all …]
|
/hal_espressif-3.6.0/components/newlib/ |
D | stdatomic.c | 126 #define FETCH_ADD(n, type) type __atomic_fetch_add_ ## n (type* ptr, type value, int memorder) \ 129 type ret = *ptr; \ 130 *ptr = *ptr + value; \ 135 #define ADD_FETCH(n, type) type __atomic_add_fetch_ ## n (type* ptr, type value, int memorder) \ 138 type ret = *ptr + value; \ 139 *ptr = ret; \ 144 #define FETCH_SUB(n, type) type __atomic_fetch_sub_ ## n (type* ptr, type value, int memorder) \ 147 type ret = *ptr; \ 148 *ptr = *ptr - value; \ 153 #define SUB_FETCH(n, type) type __atomic_sub_fetch_ ## n (type* ptr, type value, int memorder) \ [all …]
|
D | heap.c | 20 extern void *heap_caps_realloc_default( void *ptr, size_t size ); 32 void* realloc(void* ptr, size_t size) in realloc() argument 34 return heap_caps_realloc_default(ptr, size); in realloc() 37 void free(void *ptr) in free() argument 39 heap_caps_free(ptr); in free() 47 void _free_r(struct _reent *r, void* ptr) in _free_r() argument 49 heap_caps_free(ptr); in _free_r() 52 void* _realloc_r(struct _reent *r, void* ptr, size_t size) in _realloc_r() argument 54 return heap_caps_realloc_default( ptr, size ); in _realloc_r()
|
/hal_espressif-3.6.0/components/app_trace/ |
D | app_trace_membufs_proto.c | 125 uint8_t *ptr = esp_apptrace_rb_consume(&proto->rb_pend, read_sz); in esp_apptrace_membufs_swap() local 126 if (!ptr) { in esp_apptrace_membufs_swap() 131 read_sz, *(ptr+0), *(ptr+1), *(ptr+2), *(ptr+3), *(ptr+4), in esp_apptrace_membufs_swap() 132 …*(ptr+5), *(ptr+6), *(ptr+7), *(ptr+8), *(ptr+9), *(ptr+10), *(ptr+11), *(ptr+12), *(ptr+13), *(pt… 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() 156 uint8_t *ptr = NULL; in esp_apptrace_membufs_down_buffer_get() local 162 ptr = esp_apptrace_rb_consume(&proto->rb_down, *size); in esp_apptrace_membufs_down_buffer_get() 163 if (!ptr) { in esp_apptrace_membufs_down_buffer_get() 184 return ptr; in esp_apptrace_membufs_down_buffer_get() 187 …membufs_down_buffer_put(esp_apptrace_membufs_proto_data_t *proto, uint8_t *ptr, esp_apptrace_tmo_t… in esp_apptrace_membufs_down_buffer_put() argument [all …]
|
D | app_trace.c | 115 esp_err_t esp_apptrace_down_buffer_put(esp_apptrace_dest_t dest, uint8_t *ptr, uint32_t user_tmo) in esp_apptrace_down_buffer_put() argument 124 if (ptr == NULL) { in esp_apptrace_down_buffer_put() 140 return ch->hw->put_down_buffer(ch->hw_data, ptr, &tmo); in esp_apptrace_down_buffer_put() 172 uint8_t * ptr = ch->hw->get_down_buffer(ch->hw_data, &act_sz, &tmo); in esp_apptrace_read() local 173 if (ptr && act_sz > 0) { in esp_apptrace_read() 175 memcpy(buf, ptr, act_sz); in esp_apptrace_read() 176 res = ch->hw->put_down_buffer(ch->hw_data, ptr, &tmo); in esp_apptrace_read() 213 esp_err_t esp_apptrace_buffer_put(esp_apptrace_dest_t dest, uint8_t *ptr, uint32_t user_tmo) in esp_apptrace_buffer_put() argument 222 if (ptr == NULL) { in esp_apptrace_buffer_put() 238 return ch->hw->put_up_buffer(ch->hw_data, ptr, &tmo); in esp_apptrace_buffer_put() [all …]
|
D | host_file_io.c | 82 …uint8_t *ptr = esp_apptrace_buffer_get(dest, sizeof(*hdr) + args_len, ESP_APPTRACE_TMO_INFINITE); … in esp_apptrace_file_cmd_send() local 83 if (ptr == NULL) { in esp_apptrace_file_cmd_send() 87 hdr = (esp_apptrace_fcmd_hdr_t *)ptr; in esp_apptrace_file_cmd_send() 90 prep_args(ptr + sizeof(hdr->cmd), args); in esp_apptrace_file_cmd_send() 94 ret = esp_apptrace_buffer_put(dest, ptr, ESP_APPTRACE_TMO_INFINITE);//TODO: finite tmo in esp_apptrace_file_cmd_send() 204 size_t esp_apptrace_fwrite(esp_apptrace_dest_t dest, const void *ptr, size_t size, size_t nmemb, vo… in esp_apptrace_fwrite() argument 210 if (ptr == NULL) { in esp_apptrace_fwrite() 214 cmd_args.buf = (void *)ptr; in esp_apptrace_fwrite() 243 size_t esp_apptrace_fread(esp_apptrace_dest_t dest, void *ptr, size_t size, size_t nmemb, void *str… in esp_apptrace_fread() argument 249 if (ptr == NULL) { in esp_apptrace_fread() [all …]
|
/hal_espressif-3.6.0/components/heap/ |
D | heap_caps.c | 28 IRAM_ATTR static void *heap_caps_realloc_base( void *ptr, size_t size, uint32_t caps); 167 void* ptr = heap_caps_malloc_base(size, caps); in heap_caps_malloc() local 169 if (!ptr){ in heap_caps_malloc() 173 return ptr; in heap_caps_malloc() 222 IRAM_ATTR void *heap_caps_realloc_default( void *ptr, size_t size ) in heap_caps_realloc_default() argument 225 return heap_caps_realloc( ptr, size, MALLOC_CAP_DEFAULT | MALLOC_CAP_INTERNAL ); in heap_caps_realloc_default() 233 r=heap_caps_realloc_base( ptr, size, MALLOC_CAP_DEFAULT | MALLOC_CAP_INTERNAL); in heap_caps_realloc_default() 235 r=heap_caps_realloc_base( ptr, size, MALLOC_CAP_DEFAULT | MALLOC_CAP_SPIRAM); in heap_caps_realloc_default() 240 r=heap_caps_realloc_base( ptr, size, MALLOC_CAP_DEFAULT); in heap_caps_realloc_default() 273 IRAM_ATTR void *heap_caps_realloc_prefer( void *ptr, size_t size, size_t num, ... ) in heap_caps_realloc_prefer() argument [all …]
|
D | heap_tlsf.c | 111 static inline __attribute__((__always_inline__)) void* align_ptr(const void* ptr, size_t align) in align_ptr() argument 114 (tlsf_cast(tlsfptr_t, ptr) + (align - 1)) & ~(align - 1); in align_ptr() 498 static void integrity_walker(void* ptr, size_t size, int used, void* user) in integrity_walker() argument 500 block_header_t* block = block_from_ptr(ptr); in integrity_walker() 569 static void default_walker(void* ptr, size_t size, int used, void* user) in default_walker() argument 572 …printf("\t%p %s size: %x (%p)\n", ptr, used ? "used" : "free", (unsigned int)size, block_from_ptr(… in default_walker() 592 size_t tlsf_block_size(void* ptr) in tlsf_block_size() argument 595 if (ptr) in tlsf_block_size() 597 const block_header_t* block = block_from_ptr(ptr); in tlsf_block_size() 821 void* ptr = block_to_ptr(block); in tlsf_memalign_offs() local [all …]
|
/hal_espressif-3.6.0/components/heap/test/ |
D | test_malloc_caps.c | 110 uint8_t *ptr; variable 121 ptr = heap_caps_malloc(largest_free_size, MALLOC_CAP_IRAM_8BIT); 123 TEST_ASSERT((((int)ptr)&0xFF000000)==0x40000000); 125 …(heap_caps_get_free_size(MALLOC_CAP_IRAM_8BIT) == (free_size - heap_caps_get_allocated_size(ptr))); 126 …RT(heap_caps_get_free_size(MALLOC_CAP_32BIT) == (free_size32 - heap_caps_get_allocated_size(ptr))); 128 free(ptr); 195 void *ptr = heap_caps_malloc(stupid_allocation_size, MALLOC_CAP_DEFAULT); 196 (void)ptr; 214 void *ptr = heap_caps_malloc(stupid_allocation_size, MALLOC_CAP_DEFAULT); 218 ptr = heap_caps_realloc(ptr, stupid_allocation_size, MALLOC_CAP_DEFAULT); [all …]
|
/hal_espressif-3.6.0/components/wifi_provisioning/src/ |
D | handlers.c | 143 esp_err_t get_wifi_prov_handlers(wifi_prov_config_handlers_t *ptr) in get_wifi_prov_handlers() argument 145 if (!ptr) { in get_wifi_prov_handlers() 148 ptr->get_status_handler = get_status_handler; in get_wifi_prov_handlers() 149 ptr->set_config_handler = set_config_handler; in get_wifi_prov_handlers() 150 ptr->apply_config_handler = apply_config_handler; in get_wifi_prov_handlers() 151 ptr->ctx = NULL; in get_wifi_prov_handlers() 194 esp_err_t get_wifi_scan_handlers(wifi_prov_scan_handlers_t *ptr) in get_wifi_scan_handlers() argument 196 if (!ptr) { in get_wifi_scan_handlers() 199 ptr->scan_start = scan_start; in get_wifi_scan_handlers() 200 ptr->scan_status = scan_status; in get_wifi_scan_handlers() [all …]
|
/hal_espressif-3.6.0/components/mbedtls/test/ |
D | test_sha.c | 101 const void* ptr; variable 116 esp_err_t err = spi_flash_mmap(0x0, LEN, SPI_FLASH_MMAP_DATA, &ptr, &handle); 119 TEST_ASSERT_NOT_NULL(ptr); 123 esp_sha(SHA1, ptr, LEN, sha1_espsha); 124 int r = mbedtls_sha1_ret(ptr, LEN, sha1_mbedtls); 127 esp_sha(SHA2_256, ptr, LEN, sha256_espsha); 128 r = mbedtls_sha256_ret(ptr, LEN, sha256_mbedtls, 0); 132 esp_sha(SHA2_512, ptr, LEN, sha512_espsha); 133 r = mbedtls_sha512_ret(ptr, LEN, sha512_mbedtls, 0);
|
/hal_espressif-3.6.0/components/bt/host/bluedroid/device/ |
D | bdaddr.c | 68 const uint8_t *ptr = addr->address; in bdaddr_to_string() local 70 ptr[0], ptr[1], ptr[2], in bdaddr_to_string() 71 ptr[3], ptr[4], ptr[5]); in bdaddr_to_string() 104 uint8_t *ptr = new_addr.address; in string_to_bdaddr() local 110 ptr[i] = (uint8_t) ptr_32[i]; in string_to_bdaddr()
|
/hal_espressif-3.6.0/components/xtensa/esp32s2/include/xtensa/config/ |
D | tie-asm.h | 80 .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 84 xchal_sa_align \ptr, 0, 1016, 4, 4 86 s32i \at1, \ptr, .Lxchal_ofs_+0 89 xchal_sa_align \ptr, 0, 1016, 4, 4 114 .macro xchal_ncp_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 118 xchal_sa_align \ptr, 0, 1016, 4, 4 119 l32i \at1, \ptr, .Lxchal_ofs_+0 123 xchal_sa_align \ptr, 0, 1016, 4, 4
|
/hal_espressif-3.6.0/components/bt/host/bluedroid/external/sbc/decoder/include/ |
D | oi_bitstream.h | 74 #define OI_BITSTREAM_GetWritePtr(bs) ((bs)->ptr.w - 3) 75 #define OI_BITSTREAM_GetReadPtr(bs) ((bs)->ptr.r - 3) 80 #define OI_BITSTREAM_READUINT(result, bits, ptr, value, bitPtr) \ argument 91 value = ((value) << 8) | *ptr++; \ 98 #define OI_BITSTREAM_WRITEUINT(ptr, value, bitPtr, datum, bits) \ argument 105 *ptr++ = (OI_UINT8)(value >> 24);\ 110 #define OI_BITSTREAM_WRITEFLUSH(ptr, value, bitPtr) \ argument 114 *ptr++ = (OI_UINT8)(value >> 24);\
|
/hal_espressif-3.6.0/examples/system/himem/main/ |
D | himem_example_main.c | 64 uint32_t *ptr = NULL; in test_region() local 66 ESP_ERROR_CHECK(esp_himem_map(mh, rh, i, 0, ESP_HIMEM_BLKSZ, 0, (void**)&ptr)); in test_region() 67 fill_mem_seed(i ^ seed, ptr, ESP_HIMEM_BLKSZ); // in test_region() 68 ESP_ERROR_CHECK(esp_himem_unmap(rh, ptr, ESP_HIMEM_BLKSZ)); in test_region() 72 uint32_t *ptr; in test_region() local 74 ESP_ERROR_CHECK(esp_himem_map(mh, rh, i, 0, ESP_HIMEM_BLKSZ, 0, (void**)&ptr)); in test_region() 75 if (!check_mem_seed(i ^ seed, ptr, ESP_HIMEM_BLKSZ, i)) { in test_region() 79 ESP_ERROR_CHECK(esp_himem_unmap(rh, ptr, ESP_HIMEM_BLKSZ)); in test_region()
|
/hal_espressif-3.6.0/components/esp_hw_support/test/ |
D | test_himem.c | 57 uint32_t *ptr = NULL; in test_region() local 58 ESP_ERROR_CHECK(esp_himem_map(mh, rh, i, 0, ESP_HIMEM_BLKSZ, 0, (void**)&ptr)); in test_region() 59 fill_mem_seed(i ^ seed, ptr, ESP_HIMEM_BLKSZ); in test_region() 60 ESP_ERROR_CHECK(esp_himem_unmap(rh, ptr, ESP_HIMEM_BLKSZ)); in test_region() 63 uint32_t *ptr; in test_region() local 64 ESP_ERROR_CHECK(esp_himem_map(mh, rh, i, 0, ESP_HIMEM_BLKSZ, 0, (void**)&ptr)); in test_region() 65 if (!check_mem_seed(i ^ seed, ptr, ESP_HIMEM_BLKSZ)) { in test_region() 70 ESP_ERROR_CHECK(esp_himem_unmap(rh, ptr, ESP_HIMEM_BLKSZ)); in test_region()
|
/hal_espressif-3.6.0/components/espcoredump/test_apps/main/ |
D | test_core_dump.c | 25 unsigned long *ptr = (unsigned long *)0; in bad_ptr_func() local 34 printf("Write to bad address 0x%lx.\n", (unsigned long)ptr); in bad_ptr_func() 35 *ptr = 0xDEADBEEF; in bad_ptr_func() 53 unsigned short *ptr = (unsigned short *)0x5; in recur_func() local 69 printf("Write to unaligned address 0x%lx.\n", (unsigned long)ptr); in recur_func() 70 *ptr = 0xDEAD; in recur_func()
|
/hal_espressif-3.6.0/components/freertos/port/ |
D | port_common.c | 135 bool xPortCheckValidTCBMem(const void *ptr) in xPortCheckValidTCBMem() argument 137 return esp_ptr_internal(ptr) && esp_ptr_byte_accessible(ptr); in xPortCheckValidTCBMem() 140 bool xPortcheckValidStackMem(const void *ptr) in xPortcheckValidStackMem() argument 143 return esp_ptr_byte_accessible(ptr); in xPortcheckValidStackMem() 145 return esp_ptr_internal(ptr) && esp_ptr_byte_accessible(ptr); in xPortcheckValidStackMem()
|
/hal_espressif-3.6.0/components/app_trace/port/riscv/ |
D | port.c | 46 static esp_err_t esp_apptrace_riscv_up_buffer_put(esp_apptrace_riscv_data_t *hw_data, uint8_t *ptr,… 49 …pptrace_riscv_down_buffer_put(esp_apptrace_riscv_data_t *hw_data, uint8_t *ptr, esp_apptrace_tmo_t… 179 uint8_t *ptr; in esp_apptrace_riscv_up_buffer_get() local 189 ptr = esp_apptrace_membufs_up_buffer_get(&hw_data->membufs, size, tmo); in esp_apptrace_riscv_up_buffer_get() 195 return ptr; in esp_apptrace_riscv_up_buffer_get() 198 static esp_err_t esp_apptrace_riscv_up_buffer_put(esp_apptrace_riscv_data_t *hw_data, uint8_t *ptr,… in esp_apptrace_riscv_up_buffer_put() argument 204 esp_err_t res = esp_apptrace_membufs_up_buffer_put(&hw_data->membufs, ptr, tmo); in esp_apptrace_riscv_up_buffer_put() 218 uint8_t *ptr; in esp_apptrace_riscv_down_buffer_get() local 228 ptr = esp_apptrace_membufs_down_buffer_get(&hw_data->membufs, size, tmo); in esp_apptrace_riscv_down_buffer_get() 234 return ptr; in esp_apptrace_riscv_down_buffer_get() [all …]
|
/hal_espressif-3.6.0/components/app_trace/port/xtensa/ |
D | port.c | 195 static esp_err_t esp_apptrace_trax_up_buffer_put(esp_apptrace_trax_data_t *hw_data, uint8_t *ptr, e… 198 static esp_err_t esp_apptrace_trax_down_buffer_put(esp_apptrace_trax_data_t *hw_data, uint8_t *ptr,… 354 uint8_t *ptr; in esp_apptrace_trax_up_buffer_get() local 364 ptr = esp_apptrace_membufs_up_buffer_get(&hw_data->membufs, size, tmo); in esp_apptrace_trax_up_buffer_get() 370 return ptr; in esp_apptrace_trax_up_buffer_get() 373 static esp_err_t esp_apptrace_trax_up_buffer_put(esp_apptrace_trax_data_t *hw_data, uint8_t *ptr, e… in esp_apptrace_trax_up_buffer_put() argument 379 esp_err_t res = esp_apptrace_membufs_up_buffer_put(&hw_data->membufs, ptr, tmo); in esp_apptrace_trax_up_buffer_put() 393 uint8_t *ptr; in esp_apptrace_trax_down_buffer_get() local 403 ptr = esp_apptrace_membufs_down_buffer_get(&hw_data->membufs, size, tmo); in esp_apptrace_trax_down_buffer_get() 409 return ptr; in esp_apptrace_trax_down_buffer_get() [all …]
|
/hal_espressif-3.6.0/components/bt/esp_ble_mesh/mesh_common/include/ |
D | mesh_util.h | 67 #define PART_OF_ARRAY(array, ptr) \ argument 68 ((ptr) && ((ptr) >= &array[0] && (ptr) < &array[ARRAY_SIZE(array)])) 72 #define CONTAINER_OF(ptr, type, field) \ argument 73 ((type *)(((char *)(ptr)) - offsetof(type, field)))
|
/hal_espressif-3.6.0/components/heap/include/ |
D | esp_heap_caps.h | 81 void heap_caps_free( void *ptr); 100 void *heap_caps_realloc( void *ptr, size_t size, uint32_t caps); 124 void __attribute__((deprecated)) heap_caps_aligned_free(void *ptr); 339 void *heap_caps_realloc_prefer( void *ptr, size_t size, size_t num, ... ); 392 size_t heap_caps_get_allocated_size( void *ptr );
|
/hal_espressif-3.6.0/components/esp_gdbstub/src/ |
D | packet.c | 84 uint32_t esp_gdbstub_gethex(const unsigned char **ptr, int bits) in esp_gdbstub_gethex() argument 95 c = **ptr; in esp_gdbstub_gethex() 96 (*ptr)++; in esp_gdbstub_gethex() 108 (*ptr)--; in esp_gdbstub_gethex() 114 (*ptr)--; in esp_gdbstub_gethex()
|