Home
last modified time | relevance | path

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

123

/subsys/net/lib/zperf/
A Dzperf_session.c25 struct session *ptr; in get_free_session() local
35 ptr = &sessions[proto][i]; in get_free_session()
41 oldest = ptr->last_time; in get_free_session()
59 ptr = NULL; in get_free_session()
67 if (ptr != NULL) { in get_free_session()
71 ptr->ip.family = AF_INET; in get_free_session()
76 ptr->ip.family = AF_INET6; in get_free_session()
83 return ptr; in get_free_session()
111 active = ptr; in get_session()
121 active = ptr; in get_session()
[all …]
/subsys/net/lib/shell/
A Dpkt.c13 static bool is_pkt_part_of_slab(const struct k_mem_slab *slab, const char *ptr) in is_pkt_part_of_slab() argument
19 if ((ptr < slab->buffer) || (ptr > slab->buffer + last_offset)) { in is_pkt_part_of_slab()
24 ptr_offset = ptr - slab->buffer; in is_pkt_part_of_slab()
33 const void *ptr; member
48 if (is_pkt_part_of_slab(slab, info->ptr)) { in check_context_pool()
55 static bool is_pkt_ptr_valid(const void *ptr) in is_pkt_ptr_valid() argument
61 if (is_pkt_part_of_slab(rx, ptr) || is_pkt_part_of_slab(tx, ptr)) { in is_pkt_ptr_valid()
68 info.ptr = ptr; in is_pkt_ptr_valid()
84 intptr_t ptr = 0; in get_net_pkt() local
98 ptr |= buf[i] << 8 * (len - 1 - i); in get_net_pkt()
[all …]
/subsys/portability/cmsis_rtos_v1/
A Dcmsis_mempool.c31 void *ptr; in osPoolAlloc() local
34 &ptr, TIME_OUT) == 0) { in osPoolAlloc()
35 return ptr; in osPoolAlloc()
47 void *ptr; in osPoolCAlloc() local
50 &ptr, TIME_OUT) == 0) { in osPoolCAlloc()
51 (void)memset(ptr, 0, osPool->item_sz); in osPoolCAlloc()
52 return ptr; in osPoolCAlloc()
A Dcmsis_mailq.c34 char *ptr; in osMailAlloc() local
44 (void **)&ptr, K_NO_WAIT); in osMailAlloc()
48 (void **)&ptr, K_FOREVER); in osMailAlloc()
52 (void **)&ptr, K_MSEC(millisec)); in osMailAlloc()
56 return ptr; in osMailAlloc()
68 char *ptr; in osMailCAlloc() local
78 (void **)&ptr, K_NO_WAIT); in osMailCAlloc()
82 (void **)&ptr, K_FOREVER); in osMailCAlloc()
86 (void **)&ptr, K_MSEC(millisec)); in osMailCAlloc()
90 (void)memset(ptr, 0, queue_def->item_sz); in osMailCAlloc()
[all …]
/subsys/net/ip/
A Dutils.c91 *ptr = '\0'; in net_byte_to_hex()
93 return ptr; in net_byte_to_hex()
122 ptr = net_byte_to_hex(ptr, (char)ll[i], 'A', true); in net_sprint_ll_addr_buf()
123 *ptr++ = ':'; in net_sprint_ll_addr_buf()
232 ptr += l; in z_impl_net_addr_ntop()
270 ptr = net_byte_to_hex(ptr, bh, 'a', false); in z_impl_net_addr_ntop()
273 ptr = net_byte_to_hex(ptr, bl, 'a', true); in z_impl_net_addr_ntop()
278 ptr = net_byte_to_hex(ptr, bl, 'a', false); in z_impl_net_addr_ntop()
291 *ptr = '\0'; in z_impl_net_addr_ntop()
815 if ((ptr + 1) < (str + str_len) && *(ptr + 1) == ':') { in parse_ipv6()
[all …]
A 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()
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()
244 if (net_pkt_write_u8(reply, ptr)) { in icmpv4_update_time_stamp()
[all …]
/subsys/demand_paging/backing_store/
A Dbacking_store_qemu_x86_tiny.c27 uintptr_t ptr = location; in location_to_flash() local
30 ptr -= CONFIG_KERNEL_VM_BASE + CONFIG_KERNEL_VM_OFFSET; in location_to_flash()
33 ptr += CONFIG_FLASH_BASE_ADDRESS; in location_to_flash()
35 __ASSERT_NO_MSG(ptr >= CONFIG_FLASH_BASE_ADDRESS); in location_to_flash()
36 __ASSERT_NO_MSG(ptr < (CONFIG_FLASH_BASE_ADDRESS in location_to_flash()
40 return UINT_TO_POINTER(ptr); in location_to_flash()
/subsys/pmci/mctp/
A Dmctp_memory.c23 void *ptr = sys_heap_alloc(&mctp_heap.heap, bytes); in mctp_heap_alloc() local
27 return ptr; in mctp_heap_alloc()
30 static void mctp_heap_free(void *ptr) in mctp_heap_free() argument
34 sys_heap_free(&mctp_heap.heap, ptr); in mctp_heap_free()
39 static void *mctp_heap_realloc(void *ptr, size_t bytes) in mctp_heap_realloc() argument
43 void *new_ptr = sys_heap_realloc(&mctp_heap.heap, ptr, bytes); in mctp_heap_realloc()
/subsys/testsuite/ztest/include/zephyr/
A Dztest_assert.h303 #define zassert_is_null(ptr, ...) zassert((ptr) == NULL, #ptr " is not NULL", ##__VA_ARGS__) argument
310 #define zassert_not_null(ptr, ...) zassert((ptr) != NULL, #ptr " is NULL", ##__VA_ARGS__) argument
469 #define zassume_is_null(ptr, ...) zassume((ptr) == NULL, #ptr " is not NULL", ##__VA_ARGS__) argument
479 #define zassume_not_null(ptr, ...) zassume((ptr) != NULL, #ptr " is NULL", ##__VA_ARGS__) argument
639 #define zexpect_is_null(ptr, ...) zexpect((ptr) == NULL, #ptr " is not NULL", ##__VA_ARGS__) argument
647 #define zexpect_not_null(ptr, ...) zexpect((ptr) != NULL, #ptr " is NULL", ##__VA_ARGS__) argument
/subsys/debug/gdbstub/
A Dgdbstub.c648 CHECK_ERROR(ptr == NULL || *ptr != (c)); \ in z_gdb_main_loop()
649 ptr++; \ in z_gdb_main_loop()
654 arg = strtoul((const char *)ptr, (char **)&ptr, 16); \ in z_gdb_main_loop()
655 CHECK_ERROR(ptr == NULL); \ in z_gdb_main_loop()
659 uint8_t *ptr; in z_gdb_main_loop() local
681 ptr = buf; in z_gdb_main_loop()
684 printk("gdbstub:%s got '%c'(0x%x) command\n", __func__, *ptr, *ptr); in z_gdb_main_loop()
687 switch (*ptr++) { in z_gdb_main_loop()
732 pkt_len = gdb_mem_write(ptr, addr, data_len); in z_gdb_main_loop()
770 pkt_len = arch_gdb_reg_writeall(ctx, ptr, pkt_len - 1); in z_gdb_main_loop()
[all …]
/subsys/net/l2/ieee802154/
A Dieee802154_6lo_fragment.c85 ptr[0] |= ((size & 0x7FF) >> 8); in set_datagram_size()
86 ptr[1] = (uint8_t)size; in set_datagram_size()
89 static inline void set_datagram_tag(uint8_t *ptr, uint16_t tag) in set_datagram_tag() argument
91 ptr[0] = tag >> 8; in set_datagram_tag()
92 ptr[1] = (uint8_t)tag; in set_datagram_tag()
214 static inline uint8_t get_datagram_type(uint8_t *ptr) in get_datagram_type() argument
216 return ptr[0] & NET_FRAG_DISPATCH_MASK; in get_datagram_type()
219 static inline uint16_t get_datagram_size(uint8_t *ptr) in get_datagram_size() argument
221 return ((ptr[0] & 0x1F) << 8) | ptr[1]; in get_datagram_size()
224 static inline uint16_t get_datagram_tag(uint8_t *ptr) in get_datagram_tag() argument
[all …]
/subsys/ipc/ipc_service/lib/
A Dpbuf.c300 volatile uint32_t *ptr = pb->cfg->handshake_loc; in pbuf_handshake_read() local
302 __ASSERT_NO_MSG(ptr); in pbuf_handshake_read()
303 sys_cache_data_invd_range((void *)ptr, sizeof(*ptr)); in pbuf_handshake_read()
305 return *ptr; in pbuf_handshake_read()
310 volatile uint32_t *ptr = pb->cfg->handshake_loc; in pbuf_handshake_write() local
312 __ASSERT_NO_MSG(ptr); in pbuf_handshake_write()
313 *ptr = value; in pbuf_handshake_write()
315 sys_cache_data_flush_range((void *)ptr, sizeof(*ptr)); in pbuf_handshake_write()
/subsys/testsuite/coverage/
A Dcoverage.c51 uint8_t *ptr = (uint8_t *)&v; in print_u32() local
53 print_u8(*ptr); in print_u32()
54 print_u8(*(ptr+1)); in print_u32()
55 print_u8(*(ptr+2)); in print_u32()
56 print_u8(*(ptr+3)); in print_u32()
291 void dump_on_console_data(char *ptr, size_t len) in dump_on_console_data() argument
293 if (ptr != NULL) { in dump_on_console_data()
295 print_u8((uint8_t)*ptr++); in dump_on_console_data()
/subsys/testsuite/ztest/src/
A Dztest_posix.c108 struct ztest_suite_node *ptr; in z_ztest_list_tests() local
114 for (ptr = _ztest_suite_node_list_start; ptr < _ztest_suite_node_list_end; ++ptr) { in z_ztest_list_tests()
116 while ((test = z_ztest_get_next_test(ptr->name, test)) != NULL) { in z_ztest_list_tests()
A Dztest.c1034 for (struct ztest_suite_node *ptr = _ztest_suite_node_list_start; in __ztest_show_suite_summary() local
1035 ptr < _ztest_suite_node_list_end; ++ptr) { in __ztest_show_suite_summary()
1037 __ztest_show_suite_summary_oneline(ptr); in __ztest_show_suite_summary()
1038 __ztest_show_suite_summary_verbose(ptr); in __ztest_show_suite_summary()
1047 struct ztest_suite_stats *stats = ptr->stats; in __ztest_run_test_suite()
1051 if (ztest_api.should_suite_run(state, ptr)) { in __ztest_run_test_suite()
1052 int fail = z_ztest_run_test_suite_ptr(ptr, shuffle, in __ztest_run_test_suite()
1097 ptr < _ztest_suite_node_list_end; ++ptr) { in z_impl_ztest_run_test_suites()
1228 struct ztest_suite_node *ptr; in cmd_list_cases() local
1232 for (ptr = _ztest_suite_node_list_start; ptr < _ztest_suite_node_list_end; ++ptr) { in cmd_list_cases()
[all …]
/subsys/fs/
A Dfat_fs.c122 void *ptr; in fatfs_open() local
124 if (k_mem_slab_alloc(&fatfs_filep_pool, &ptr, K_NO_WAIT) == 0) { in fatfs_open()
125 (void)memset(ptr, 0, sizeof(FIL)); in fatfs_open()
126 zfp->filep = ptr; in fatfs_open()
136 k_mem_slab_free(&fatfs_filep_pool, ptr); in fatfs_open()
198 res = f_read(zfp->filep, ptr, size, &br); in fatfs_read()
225 res = f_write(zfp->filep, ptr, size, &bw); in fatfs_write()
348 void *ptr; in fatfs_opendir() local
351 (void)memset(ptr, 0, sizeof(DIR)); in fatfs_opendir()
352 zdp->dirp = ptr; in fatfs_opendir()
[all …]
/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/
A Decb.c36 void *ptr; member
69 ep->in[0].ptr = ep->clear_text; in do_ecb()
72 ep->in[1].ptr = NULL; in do_ecb()
76 ep->out[0].ptr = ep->cipher_text; in do_ecb()
79 ep->out[1].ptr = NULL; in do_ecb()
165 in[0].ptr = e->in_clear_text_be; in ecb_encrypt_nonblocking()
168 in[1].ptr = NULL; in ecb_encrypt_nonblocking()
172 out[0].ptr = e->out_cipher_text_be; in ecb_encrypt_nonblocking()
175 out[1].ptr = NULL; in ecb_encrypt_nonblocking()
/subsys/net/lib/tftp/
A Dtftp_client.c25 char *ptr = (char *)buf; in make_request() local
29 sys_put_be16(request, ptr); in make_request()
30 ptr += 2; in make_request()
33 strncpy(ptr, remote_file, TFTP_MAX_FILENAME_SIZE); in make_request()
34 ptr += strlen(remote_file); in make_request()
35 *ptr++ = '\0'; in make_request()
43 strncpy(ptr, mode, TFTP_MAX_MODE_SIZE); in make_request()
44 ptr += strlen(mode); in make_request()
45 *ptr++ = '\0'; in make_request()
47 return ptr - (char *)buf; in make_request()
/subsys/llext/
A Dllext_priv.h93 static inline void llext_free(void *ptr) in llext_free() argument
99 k_heap_free(&llext_data_heap, ptr); in llext_free()
111 static inline void llext_free_instr(void *ptr) in llext_free_instr() argument
117 k_heap_free(&llext_instr_heap, ptr); in llext_free_instr()
/subsys/portability/cmsis_rtos_v2/
A Dmempool.c99 void *ptr; in osMemoryPoolAlloc() local
111 retval = k_mem_slab_alloc((struct k_mem_slab *)(&mslab->z_mslab), (void **)&ptr, in osMemoryPoolAlloc()
114 retval = k_mem_slab_alloc((struct k_mem_slab *)(&mslab->z_mslab), (void **)&ptr, in osMemoryPoolAlloc()
117 retval = k_mem_slab_alloc((struct k_mem_slab *)(&mslab->z_mslab), (void **)&ptr, in osMemoryPoolAlloc()
122 return ptr; in osMemoryPoolAlloc()
/subsys/logging/backends/
A Dlog_backend_efi_console.c28 uint8_t *ptr = data; in char_out() local
31 efi_console_putchar(*ptr); in char_out()
33 ptr++; in char_out()
/subsys/usb/device/class/netusb/
A 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()
/subsys/bluetooth/controller/ll_sw/
A Dull_scan_aux.c203 uint8_t *ptr; in ull_scan_aux_setup() local
452 ptr = h->data; in ull_scan_aux_setup()
481 ptr += BDADDR_SIZE; in ull_scan_aux_setup()
485 ptr += BDADDR_SIZE; in ull_scan_aux_setup()
494 adi = (void *)ptr; in ull_scan_aux_setup()
507 si = (void *)ptr; in ull_scan_aux_setup()
528 ptr++; in ull_scan_aux_setup()
1619 uint8_t *ptr; in ull_scan_aux_setup() local
1848 ptr = h->data; in ull_scan_aux_setup()
1903 si = (void *)ptr; in ull_scan_aux_setup()
[all …]
/subsys/net/l2/ethernet/dsa/
A Ddsa_tag_netc.c34 uint8_t *ptr; in dsa_tag_netc_recv() local
46 ptr = net_buf_pull(pkt->frags, sizeof(netc_swt_tag_host_t)); in dsa_tag_netc_recv()
48 ptr[i] = *(uint8_t *)((uintptr_t)header + i); in dsa_tag_netc_recv()
/subsys/debug/coredump/
A Dcoredump_backend_flash_partition.c174 uint8_t *ptr = dst; in data_read() local
193 (void)memcpy(ptr, data_read_buf, copy_sz); in data_read()
203 ptr += copy_sz; in data_read()
512 uint8_t *ptr = buf; in coredump_flash_backend_buffer_output() local
531 (void)memmove(tmp_buf, ptr, copy_sz); in coredump_flash_backend_buffer_output()
545 ptr += copy_sz; in coredump_flash_backend_buffer_output()

Completed in 32 milliseconds

123