Lines Matching refs:ptr
13 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()
101 return (struct net_pkt *)ptr; in get_net_pkt()