Home
last modified time | relevance | path

Searched refs:ptr (Results 76 – 100 of 191) sorted by relevance

12345678

/Zephyr-latest/lib/libc/newlib/
Dlibc-hooks.c31 int _lseek(int file, int ptr, int dir);
256 int _lseek(int file, int ptr, int dir) in _lseek() argument
306 void *ret, *ptr; in _sbrk() local
308 ptr = ((char *)HEAP_BASE) + heap_sz; in _sbrk()
312 ret = ptr; in _sbrk()
315 heap_listener_notify_resize(HEAP_ID_LIBC, ptr, (char *)ptr + count); in _sbrk()
531 _off_t _lseek_r(struct _reent *r, int file, _off_t ptr, int dir) in _lseek_r() argument
535 return _lseek(file, ptr, dir); in _lseek_r()
/Zephyr-latest/tests/kernel/mem_slab/mslab_api/src/
Dtest_mslab_api.c147 void *ptr[BLK_NUM]; /* Pointer to memory block */ in helper_thread() local
153 (void)memset(ptr, 0, sizeof(ptr)); in helper_thread()
164 zassert_equal(k_mem_slab_alloc(&kmslab, &ptr[i], K_NO_WAIT), 0, in helper_thread()
171 k_mem_slab_free(&kmslab, ptr[0]); in helper_thread()
178 k_mem_slab_free(&kmslab, ptr[i]); in helper_thread()
/Zephyr-latest/tests/subsys/fs/fs_api/src/
Dtest_fs.c89 static ssize_t temp_read(struct fs_file_t *zfp, void *ptr, size_t size) in temp_read() argument
93 if (zfp == NULL || ptr == NULL) { in temp_read()
101 memcpy(ptr, read_pos, br); in temp_read()
108 static ssize_t temp_write(struct fs_file_t *zfp, const void *ptr, size_t size) in temp_write() argument
112 if (zfp == NULL || ptr == NULL) { in temp_write()
126 memcpy(buffer + file_length, ptr, bw); in temp_write()
/Zephyr-latest/subsys/net/ip/
Dicmpv4.c93 uint8_t ptr; in icmpv4_update_record_route() local
113 ptr = opt_data[offset++]; in icmpv4_update_record_route()
119 if (ptr >= opt_len) { in icmpv4_update_record_route()
121 if (net_pkt_write_u8(reply, ptr)) { in icmpv4_update_record_route()
142 if ((ptr + addr_len) > opt_len) { in icmpv4_update_record_route()
147 if (net_pkt_write_u8(reply, ptr + addr_len)) { in icmpv4_update_record_route()
153 skip = ptr - ptr_offset; in icmpv4_update_record_route()
204 uint8_t ptr; in icmpv4_update_time_stamp() local
224 ptr = opt_data[offset++]; in icmpv4_update_time_stamp()
235 if (ptr >= opt_len) { in icmpv4_update_time_stamp()
[all …]
/Zephyr-latest/tests/subsys/display/cfb/basic/src/
Dutils.c33 const uint8_t *ptr = read_buffer + (display_width * (y / 8) + x); in display_pixel() local
39 return !(*ptr & mono_pixel_order(y % 8)); in display_pixel()
42 return !!(*ptr & mono_pixel_order(y % 8)); in display_pixel()
47 const uint32_t *ptr = img + (width * y + x); in image_pixel() local
49 return !!(*ptr & 0xFFFFFF); in image_pixel()
/Zephyr-latest/subsys/usb/device/class/netusb/
Dfunction_eem.c143 uint8_t *ptr = rx_buf; in eem_read_cb() local
153 eem_hdr = sys_get_le16(ptr); in eem_read_cb()
163 ptr += sizeof(uint16_t); in eem_read_cb()
187 if (net_pkt_write(pkt, ptr, eem_size - sizeof(sentinel))) { in eem_read_cb()
197 ptr += eem_size; in eem_read_cb()
/Zephyr-latest/drivers/wifi/infineon/
Dairoc_whd_hal_common.c77 void whd_mem_free(void *ptr) in whd_mem_free() argument
79 k_free(ptr); in whd_mem_free()
/Zephyr-latest/subsys/llext/
Dllext_priv.h42 static inline void llext_free(void *ptr) in llext_free() argument
46 k_heap_free(&llext_heap, ptr); in llext_free()
/Zephyr-latest/tests/drivers/i2c/i2c_emul/src/
Dtest_forwarding_buf.cpp52 uint8_t **ptr, uint32_t *len) { in ZTEST() argument
53 *ptr = expected; in ZTEST()
122 uint8_t **ptr, uint32_t *len) { in ZTEST() argument
127 *ptr = (uint8_t *)&phase; in ZTEST()
/Zephyr-latest/tests/net/lib/http_server/crime/src/
Dmain.c68 char *ptr; in test_crime() local
89 ptr = (char *)zsock_inet_ntop(AF_INET, &sa.sin_addr, buf, sizeof(buf)); in test_crime()
90 zassert_not_equal(ptr, NULL, "inet_ntop() failed (%d)", errno); in test_crime()
/Zephyr-latest/kernel/
Dmem_slab.c47 struct sys_memory_stats *ptr = stats; in k_mem_slab_stats_query() local
51 ptr->free_bytes = (slab->info.num_blocks - slab->info.num_used) * in k_mem_slab_stats_query()
53 ptr->allocated_bytes = slab->info.num_used * slab->info.block_size; in k_mem_slab_stats_query()
55 ptr->max_allocated_bytes = slab->info.max_used * slab->info.block_size; in k_mem_slab_stats_query()
57 ptr->max_allocated_bytes = 0; in k_mem_slab_stats_query()
207 static bool slab_ptr_is_good(struct k_mem_slab *slab, const void *ptr) in slab_ptr_is_good() argument
213 const char *p = ptr; in slab_ptr_is_good()
Dkheap.c138 void *k_heap_realloc(struct k_heap *heap, void *ptr, size_t bytes, k_timeout_t timeout) in k_heap_realloc() argument
145 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_heap, realloc, heap, ptr, bytes, timeout); in k_heap_realloc()
150 ret = sys_heap_aligned_realloc(&heap->heap, ptr, sizeof(void *), bytes); in k_heap_realloc()
162 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_heap, realloc, heap, ptr, bytes, timeout, ret); in k_heap_realloc()
/Zephyr-latest/drivers/sdhc/
Dsam_hsmci.c425 const uint8_t *ptr = data; in hsmci_do_manual_transfer() local
432 hsmci->HSMCI_TDR = *ptr; in hsmci_do_manual_transfer()
433 ptr++; in hsmci_do_manual_transfer()
436 const uint32_t *ptr = data; in hsmci_do_manual_transfer() local
443 hsmci->HSMCI_TDR = *ptr; in hsmci_do_manual_transfer()
444 ptr++; in hsmci_do_manual_transfer()
450 uint8_t *ptr = data; in hsmci_do_manual_transfer() local
457 *ptr = hsmci->HSMCI_RDR; in hsmci_do_manual_transfer()
458 ptr++; in hsmci_do_manual_transfer()
461 uint32_t *ptr = data; in hsmci_do_manual_transfer() local
[all …]
/Zephyr-latest/drivers/i2c/target/
Deeprom_target.c177 uint8_t *ptr, uint32_t len) in eeprom_target_buf_write_received() argument
187 data->buffer_idx = (data->buffer_idx << 8) | *ptr++; in eeprom_target_buf_write_received()
193 memcpy(&data->buffer[data->buffer_idx], ptr, len); in eeprom_target_buf_write_received()
198 uint8_t **ptr, uint32_t *len) in eeprom_target_buf_read_requested() argument
204 *ptr = &data->buffer[data->buffer_idx]; in eeprom_target_buf_read_requested()
/Zephyr-latest/tests/kernel/common/src/
Dprintk.c176 void *ptr = (void *)0xBEEF; variable
217 printk("0x%x %p %-2p\n", hex, ptr, (char *)42); in ZTEST()
251 "0x%x %p %-2p\n", hex, ptr, (char *)42); in ZTEST()
/Zephyr-latest/lib/heap/
Dheap_stress.c24 void *ptr; member
135 sr.blocks[sr.blocks_alloced].ptr = p; in sys_heap_stress()
142 void *p = sr.blocks[b].ptr; in sys_heap_stress()
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_bap_broadcast.c853 uint8_t *ptr; in btp_send_broadcast_receive_state_ev() local
873 ptr = ev->subgroups; in btp_send_broadcast_receive_state_ev()
877 sys_put_le32(subgroup->bis_sync >> 1, ptr); in btp_send_broadcast_receive_state_ev()
878 ptr += sizeof(subgroup->bis_sync); in btp_send_broadcast_receive_state_ev()
879 *ptr = subgroup->metadata_len; in btp_send_broadcast_receive_state_ev()
880 ptr += sizeof(subgroup->metadata_len); in btp_send_broadcast_receive_state_ev()
881 memcpy(ptr, subgroup->metadata, subgroup->metadata_len); in btp_send_broadcast_receive_state_ev()
882 ptr += subgroup->metadata_len; in btp_send_broadcast_receive_state_ev()
885 len = sizeof(*ev) + ptr - ev->subgroups; in btp_send_broadcast_receive_state_ev()
1414 const uint8_t *ptr; in btp_bap_broadcast_assistant_add_src() local
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull_scan_aux.c202 uint8_t *ptr; in ull_scan_aux_setup() local
445 ptr = h->data; in ull_scan_aux_setup()
454 ull_sync_setup_addr_check(sync, scan, pdu->tx_addr, ptr, in ull_scan_aux_setup()
457 ull_sync_setup_addr_check(sync, scan, pdu->tx_addr, ptr, 0U); in ull_scan_aux_setup()
463 ptr += BDADDR_SIZE; in ull_scan_aux_setup()
467 ptr += BDADDR_SIZE; in ull_scan_aux_setup()
471 ptr += sizeof(struct pdu_cte_info); in ull_scan_aux_setup()
476 adi = (void *)ptr; in ull_scan_aux_setup()
477 ptr += sizeof(*adi); in ull_scan_aux_setup()
482 aux_ptr = (void *)ptr; in ull_scan_aux_setup()
[all …]
/Zephyr-latest/samples/sensor/amg88xx/src/
Dmain.c28 void print_buffer(void *ptr, size_t l) in print_buffer() argument
30 struct sensor_value *tv = ptr; in print_buffer()
/Zephyr-latest/soc/espressif/common/include/
Desp_heap_runtime.h34 void *esp_heap_runtime_realloc(void *ptr, size_t bytes);
/Zephyr-latest/tests/lib/ringbuffer/src/
Dmain.c854 uint8_t *ptr; in ZTEST() local
867 len = ring_buf_put_claim(&ringbuf_raw, &ptr, req_len); in ZTEST()
871 len = ring_buf_put_claim(&ringbuf_raw, &ptr, req_len); in ZTEST()
872 len2 = ring_buf_put_claim(&ringbuf_raw, &ptr, req_len); in ZTEST()
889 uint8_t *ptr; in ZTEST() local
905 len = ring_buf_get_claim(&ringbuf_raw, &ptr, 2); in ZTEST()
908 len = ring_buf_get_claim(&ringbuf_raw, &ptr, RINGBUFFER_SIZE); in ZTEST()
909 len2 = ring_buf_get_claim(&ringbuf_raw, &ptr, RINGBUFFER_SIZE); in ZTEST()
943 uint8_t *ptr; in ZTEST() local
972 ring_buf_put_claim(&rbuf, &ptr, 1); in ZTEST()
[all …]
/Zephyr-latest/include/zephyr/posix/net/
Dif.h25 void if_freenameindex(struct if_nameindex *ptr);
/Zephyr-latest/include/zephyr/arch/xtensa/
Darch.h165 static inline bool arch_mem_coherent(void *ptr) in arch_mem_coherent() argument
167 size_t addr = (size_t) ptr; in arch_mem_coherent()
/Zephyr-latest/lib/utils/
Djson.c823 void *ptr = (char *)val + descr->offset; in json_arr_parse() local
826 descr->array.n_elements, ptr, val); in json_arr_parse()
1136 void *ptr = (char *)val + descr->offset; in encode() local
1141 return bool_encode(ptr, append_bytes, data); in encode()
1143 return str_encode(ptr, append_bytes, data); in encode()
1145 return arr_encode(descr->array.element_descr, ptr, in encode()
1150 ptr, append_bytes, data); in encode()
1152 return num_encode(ptr, append_bytes, data); in encode()
1154 return int64_encode(ptr, append_bytes, data); in encode()
1156 return uint64_encode(ptr, append_bytes, data); in encode()
[all …]
/Zephyr-latest/samples/arch/smp/pktqueue/src/
Dpktqueue.h14 uint8_t *ptr; /* Pointer to header */ member

12345678