Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 25 of 88) sorted by relevance

1234

/hal_espressif-latest/components/xtensa/esp32s3/include/xtensa/config/
Dtie-asm.h76 .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-latest/components/xtensa/esp32/include/xtensa/config/
Dtie-asm.h76 .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-latest/zephyr/port/heap/
Dheap_caps_zephyr.c55 void *ptr = k_malloc(size); in heap_caps_malloc_base() local
57 if (!ptr && size > 0) { in heap_caps_malloc_base()
61 return ptr; in heap_caps_malloc_base()
86 static void *heap_caps_realloc_base( void *ptr, size_t size, uint32_t caps) in heap_caps_realloc_base() argument
88 ptr = k_realloc(ptr, size); in heap_caps_realloc_base()
90 if (ptr == NULL && size > 0) { in heap_caps_realloc_base()
94 return ptr; in heap_caps_realloc_base()
97 void *heap_caps_realloc( void *ptr, size_t size, uint32_t caps) in heap_caps_realloc() argument
99 return heap_caps_realloc_base(ptr, size, caps); in heap_caps_realloc()
102 void *heap_caps_realloc_default( void *ptr, size_t size ) in heap_caps_realloc_default() argument
[all …]
/hal_espressif-latest/components/heap/
Dheap_caps_linux.c48 void *ptr = malloc(size); in heap_caps_malloc_base() local
50 if (!ptr && size > 0) { in heap_caps_malloc_base()
54 return ptr; in heap_caps_malloc_base()
81 static void *heap_caps_realloc_base( void *ptr, size_t size, uint32_t caps) in heap_caps_realloc_base() argument
83 ptr = realloc(ptr, size); in heap_caps_realloc_base()
85 if (ptr == NULL && size > 0) { in heap_caps_realloc_base()
89 return ptr; in heap_caps_realloc_base()
92 void *heap_caps_realloc( void *ptr, size_t size, uint32_t caps) in heap_caps_realloc() argument
94 return heap_caps_realloc_base(ptr, size, caps); in heap_caps_realloc()
97 void *heap_caps_realloc_default( void *ptr, size_t size ) in heap_caps_realloc_default() argument
[all …]
Dheap_caps.c30 static void *heap_caps_realloc_base( void *ptr, size_t size, uint32_t caps );
197 void* ptr = heap_caps_malloc_base(size, caps); in heap_caps_malloc() local
200 if (!ptr && size > 0){ in heap_caps_malloc()
204 return ptr; in heap_caps_malloc()
253 HEAP_IRAM_ATTR void *heap_caps_realloc_default( void *ptr, size_t size ) in heap_caps_realloc_default() argument
256 return heap_caps_realloc( ptr, size, MALLOC_CAP_DEFAULT | MALLOC_CAP_INTERNAL ); in heap_caps_realloc_default()
264 r=heap_caps_realloc_base( ptr, size, MALLOC_CAP_DEFAULT | MALLOC_CAP_INTERNAL); in heap_caps_realloc_default()
266 r=heap_caps_realloc_base( ptr, size, MALLOC_CAP_DEFAULT | MALLOC_CAP_SPIRAM); in heap_caps_realloc_default()
271 r=heap_caps_realloc_base( ptr, size, MALLOC_CAP_DEFAULT); in heap_caps_realloc_default()
309 HEAP_IRAM_ATTR void *heap_caps_realloc_prefer( void *ptr, size_t size, size_t num, ... ) in heap_caps_realloc_prefer() argument
[all …]
Dmulti_heap.c112 void *ptr = block_to_ptr(block); in assert_valid_block() local
114 MULTI_HEAP_ASSERT((ptr >= pool) && in assert_valid_block()
115 (ptr < pool + heap->pool_size), in assert_valid_block()
116 (uintptr_t)ptr); in assert_valid_block()
354 __attribute__((noinline)) static void multi_heap_dump_tlsf(void* ptr, size_t size, int used, void* … in multi_heap_dump_tlsf() argument
358 (void *)ptr, in multi_heap_dump_tlsf()
391 __attribute__((noinline)) static void multi_heap_get_info_tlsf(void* ptr, size_t size, int used, vo… in multi_heap_get_info_tlsf() argument
/hal_espressif-latest/components/newlib/
Dstdatomic.c137 #define FETCH_ADD(n, type) type __atomic_fetch_add_ ## n (volatile void* ptr, type value, int memor…
140 type ret = *(volatile type*)ptr; \
141 *(volatile type*)ptr = *(volatile type*)ptr + value; \
146 #define ADD_FETCH(n, type) type __atomic_add_fetch_ ## n (volatile void* ptr, type value, int memor…
149 type ret = *(volatile type*)ptr + value; \
150 *(volatile type*)ptr = ret; \
155 #define FETCH_SUB(n, type) type __atomic_fetch_sub_ ## n (volatile void* ptr, type value, int memor…
158 type ret = *(volatile type*)ptr; \
159 *(volatile type*)ptr = *(volatile type*)ptr - value; \
164 #define SUB_FETCH(n, type) type __atomic_sub_fetch_ ## n (volatile void* ptr, type value, int memor…
[all …]
Dheap.c20 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-latest/components/xtensa/esp32s2/include/xtensa/config/
Dtie-asm.h80 .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-latest/components/bt/host/bluedroid/external/sbc/decoder/include/
Doi_bitstream.h74 #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-latest/components/bt/host/bluedroid/device/
Dbdaddr.c68 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-latest/components/heap/include/
Desp_heap_caps.h72 __attribute__((weak)) HEAP_IRAM_ATTR void esp_heap_trace_alloc_hook(void* ptr, size_t size, uint32_…
80 __attribute__((weak)) HEAP_IRAM_ATTR void esp_heap_trace_free_hook(void* ptr);
106 void heap_caps_free( void *ptr);
125 void *heap_caps_realloc( void *ptr, size_t size, uint32_t caps);
149 void __attribute__((deprecated)) heap_caps_aligned_free(void *ptr);
370 void *heap_caps_realloc_prefer( void *ptr, size_t size, size_t num, ... );
423 size_t heap_caps_get_allocated_size( void *ptr );
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_common/include/
Dmesh_util.h68 #define PART_OF_ARRAY(array, ptr) \ argument
69 ((ptr) && ((ptr) >= &array[0] && (ptr) < &array[ARRAY_SIZE(array)]))
73 #define CONTAINER_OF(ptr, type, field) \ argument
74 ((type *)(((char *)(ptr)) - offsetof(type, field)))
/hal_espressif-latest/components/esp_rom/patches/
Desp_rom_tlsf.c69 static inline __attribute__((always_inline)) block_header_t* block_from_ptr(const void* ptr) in block_from_ptr() argument
72 tlsf_cast(unsigned char*, ptr) - block_start_offset); in block_from_ptr()
95 static void integrity_walker(void* ptr, size_t size, int used, void* user) in integrity_walker() argument
97 block_header_t* block = block_from_ptr(ptr); in integrity_walker()
159 void* (*tlsf_realloc)(tlsf_t tlsf, void* ptr, size_t size);
160 void (*tlsf_free)(tlsf_t tlsf, void* ptr);
162 size_t (*tlsf_block_size)(void* ptr);
/hal_espressif-latest/components/spi_flash/
Dflash_mmap.c61 void *ptr = NULL; in spi_flash_mmap() local
84 … ret = esp_mmu_map(src_addr, size, MMU_TARGET_FLASH0, caps, ESP_MMU_MMAP_FLAG_PADDR_SHARED, &ptr); in spi_flash_mmap()
86 vaddr_list[0] = (uint32_t)ptr; in spi_flash_mmap()
101 *out_ptr = ptr; in spi_flash_mmap()
199 void *ptr = NULL; in spi_flash_mmap_pages() local
200 …r_blocks[i][0], paddr_blocks[i][1], MMU_TARGET_FLASH0, caps, ESP_MMU_MMAP_FLAG_PADDR_SHARED, &ptr); in spi_flash_mmap_pages()
202 vaddr_list[i] = (uint32_t)ptr; in spi_flash_mmap_pages()
212 vaddr_list[i] = (uint32_t)ptr; in spi_flash_mmap_pages()
285 void *ptr = NULL; in spi_flash_phys2cache() local
304 ret = esp_mmu_paddr_to_vaddr(phys_offs, target, type, &ptr); in spi_flash_phys2cache()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/external/sbc/decoder/srce/
Dbitstream-decode.c47 bs->ptr.r = buffer + 3; in OI_BITSTREAM_ReadInit()
55 OI_BITSTREAM_READUINT(result, bits, bs->ptr.r, bs->value, bs->bitPtr); in OI_BITSTREAM_ReadUINT()
72 bs->value = (bs->value << 8) | *bs->ptr.r++; in OI_BITSTREAM_ReadUINT4Aligned()
86 bs->value = (bs->value << 8) | *bs->ptr.r++; in OI_BITSTREAM_ReadUINT8Aligned()
/hal_espressif-latest/components/bt/porting/ext/tinycrypt/src/
Decc_platform_specific.c88 char *ptr = (char *)dest; in default_CSPRNG() local
91 ssize_t bytes_read = read(fd, ptr, left); in default_CSPRNG()
97 ptr += bytes_read; in default_CSPRNG()
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_common/tinycrypt/src/
Decc_platform_specific.c90 char *ptr = (char *)dest; in default_CSPRNG() local
93 ssize_t bytes_read = read(fd, ptr, left); in default_CSPRNG()
99 ptr += bytes_read; in default_CSPRNG()
/hal_espressif-latest/zephyr/esp32s2/src/wifi/
Desp_wifi_adapter.c54 void *ptr = esp_wifi_malloc_func(size); in wifi_malloc() local
56 if (ptr == NULL) { in wifi_malloc()
60 return ptr; in wifi_malloc()
63 IRAM_ATTR void *wifi_realloc(void *ptr, size_t size) in wifi_realloc() argument
71 void *ptr = esp_wifi_calloc_func(n, size); in wifi_calloc() local
73 if (ptr == NULL) { in wifi_calloc()
77 return ptr; in wifi_calloc()
82 void *ptr = wifi_malloc(size); in wifi_zalloc_wrapper() local
84 if (ptr) { in wifi_zalloc_wrapper()
85 memset(ptr, 0, size); in wifi_zalloc_wrapper()
[all …]
/hal_espressif-latest/zephyr/esp32s3/src/wifi/
Desp_wifi_adapter.c56 void *ptr = esp_wifi_malloc_func(size); in wifi_malloc() local
58 if (ptr == NULL) { in wifi_malloc()
62 return ptr; in wifi_malloc()
65 IRAM_ATTR void *wifi_realloc(void *ptr, size_t size) in wifi_realloc() argument
73 void *ptr = esp_wifi_calloc_func(n, size); in wifi_calloc() local
75 if (ptr == NULL) { in wifi_calloc()
79 return ptr; in wifi_calloc()
84 void *ptr = wifi_malloc(size); in wifi_zalloc_wrapper() local
86 if (ptr) { in wifi_zalloc_wrapper()
87 memset(ptr, 0, size); in wifi_zalloc_wrapper()
[all …]
/hal_espressif-latest/zephyr/esp32c2/src/wifi/
Desp_wifi_adapter.c58 void *ptr = esp_wifi_malloc_func(size); in wifi_malloc() local
60 if (ptr == NULL) { in wifi_malloc()
64 return ptr; in wifi_malloc()
67 IRAM_ATTR void *wifi_realloc(void *ptr, size_t size) in wifi_realloc() argument
69 ARG_UNUSED(ptr); in wifi_realloc()
78 void *ptr = esp_wifi_calloc_func(n, size); in wifi_calloc() local
80 if (ptr == NULL) { in wifi_calloc()
84 return ptr; in wifi_calloc()
366 static void *IRAM_ATTR realloc_internal_wrapper(void *ptr, size_t size) in realloc_internal_wrapper() argument
368 ARG_UNUSED(ptr); in realloc_internal_wrapper()
[all …]
/hal_espressif-latest/zephyr/esp32c3/src/wifi/
Desp_wifi_adapter.c58 void *ptr = esp_wifi_malloc_func(size); in wifi_malloc() local
60 if (ptr == NULL) { in wifi_malloc()
64 return ptr; in wifi_malloc()
67 IRAM_ATTR void *wifi_realloc(void *ptr, size_t size) in wifi_realloc() argument
69 ARG_UNUSED(ptr); in wifi_realloc()
78 void *ptr = esp_wifi_calloc_func(n, size); in wifi_calloc() local
80 if (ptr == NULL) { in wifi_calloc()
84 return ptr; in wifi_calloc()
366 static void *IRAM_ATTR realloc_internal_wrapper(void *ptr, size_t size) in realloc_internal_wrapper() argument
368 ARG_UNUSED(ptr); in realloc_internal_wrapper()
[all …]
/hal_espressif-latest/zephyr/esp32c6/src/wifi/
Desp_wifi_adapter.c62 void *ptr = esp_wifi_malloc_func(size); in wifi_malloc() local
64 if (ptr == NULL) { in wifi_malloc()
68 return ptr; in wifi_malloc()
71 IRAM_ATTR void *wifi_realloc(void *ptr, size_t size) in wifi_realloc() argument
73 ARG_UNUSED(ptr); in wifi_realloc()
82 void *ptr = esp_wifi_calloc_func(n, size); in wifi_calloc() local
84 if (ptr == NULL) { in wifi_calloc()
88 return ptr; in wifi_calloc()
370 static void *IRAM_ATTR realloc_internal_wrapper(void *ptr, size_t size) in realloc_internal_wrapper() argument
372 ARG_UNUSED(ptr); in realloc_internal_wrapper()
[all …]
/hal_espressif-latest/components/bt/porting/include/os/
Dutil.h37 #define CONTAINER_OF(ptr, type, field) \ argument
38 ((type *)(((char *)(ptr)) - offsetof(type, field)))
/hal_espressif-latest/zephyr/port/wifi/wpa_supplicant/
Dos_xtensa.c67 void forced_memzero(void *ptr, size_t len) in forced_memzero() argument
69 mbedtls_platform_zeroize(ptr, len); in forced_memzero()

1234