Lines Matching refs:ref_ptr
12 struct prog_test_ref_kfunc __kptr *ref_ptr; member
230 bpf_this_cpu_ptr(v->ref_ptr); in mark_ref_as_untrusted_or_null()
246 p = v->ref_ptr; in reject_untrusted_store_to_ref()
250 *(struct prog_test_ref_kfunc * volatile *)&v->ref_ptr = p; in reject_untrusted_store_to_ref()
266 p = v->ref_ptr; in reject_untrusted_xchg()
269 bpf_kptr_xchg(&v->ref_ptr, p); in reject_untrusted_xchg()
278 struct prog_test_ref_kfunc *ref_ptr; in reject_bad_type_xchg() local
286 ref_ptr = bpf_kfunc_call_test_acquire(&(unsigned long){0}); in reject_bad_type_xchg()
287 if (!ref_ptr) in reject_bad_type_xchg()
289 bpf_kptr_xchg(&v->ref_memb_ptr, ref_ptr); in reject_bad_type_xchg()
297 struct prog_test_ref_kfunc *ref_ptr; in reject_member_of_ref_xchg() local
305 ref_ptr = bpf_kfunc_call_test_acquire(&(unsigned long){0}); in reject_member_of_ref_xchg()
306 if (!ref_ptr) in reject_member_of_ref_xchg()
308 bpf_kptr_xchg(&v->ref_memb_ptr, &ref_ptr->memb); in reject_member_of_ref_xchg()
362 bpf_kptr_xchg(&v->ref_ptr, p); in kptr_xchg_ref_state()
381 p = bpf_kptr_xchg(&v->ref_ptr, p); in kptr_xchg_possibly_null()