Lines Matching refs:pptr

80 				     void __percpu *pptr)  in htab_elem_set_ptr()  argument
82 *(void __percpu **)(l->key + key_size) = pptr; in htab_elem_set_ptr()
108 void __percpu *pptr; in htab_free_elems() local
110 pptr = htab_elem_get_ptr(get_htab_elem(htab, i), in htab_free_elems()
112 free_percpu(pptr); in htab_free_elems()
152 void __percpu *pptr; in prealloc_init() local
154 pptr = __alloc_percpu_gfp(size, 8, GFP_USER | __GFP_NOWARN); in prealloc_init()
155 if (!pptr) in prealloc_init()
158 pptr); in prealloc_init()
204 struct htab_elem *__percpu *pptr, *l_new; in alloc_extra_elems() local
208 pptr = __alloc_percpu_gfp(sizeof(struct htab_elem *), 8, in alloc_extra_elems()
210 if (!pptr) in alloc_extra_elems()
219 *per_cpu_ptr(pptr, cpu) = l_new; in alloc_extra_elems()
221 htab->extra_elems = pptr; in alloc_extra_elems()
697 static void pcpu_copy_value(struct bpf_htab *htab, void __percpu *pptr, in pcpu_copy_value() argument
702 memcpy(this_cpu_ptr(pptr), value, htab->map.value_size); in pcpu_copy_value()
708 bpf_long_memcpy(per_cpu_ptr(pptr, cpu), in pcpu_copy_value()
729 void __percpu *pptr; in alloc_htab_elem() local
772 pptr = htab_elem_get_ptr(l_new, key_size); in alloc_htab_elem()
775 pptr = __alloc_percpu_gfp(size, 8, in alloc_htab_elem()
777 if (!pptr) { in alloc_htab_elem()
784 pcpu_copy_value(htab, pptr, value, onallcpus); in alloc_htab_elem()
787 htab_elem_set_ptr(l_new, key_size, pptr); in alloc_htab_elem()
1286 void __percpu *pptr; in bpf_percpu_hash_copy() local
1303 pptr = htab_elem_get_ptr(l, map->key_size); in bpf_percpu_hash_copy()
1306 per_cpu_ptr(pptr, cpu), size); in bpf_percpu_hash_copy()
1337 void __percpu *pptr; in htab_percpu_map_seq_show_elem() local
1350 pptr = htab_elem_get_ptr(l, map->key_size); in htab_percpu_map_seq_show_elem()
1354 per_cpu_ptr(pptr, cpu), m); in htab_percpu_map_seq_show_elem()