Lines Matching refs:mapval
92 struct map_value *mapval; in create_and_stash() local
95 mapval = bpf_map_lookup_elem(&some_nodes, &idx); in create_and_stash()
96 if (!mapval) in create_and_stash()
118 res = bpf_kptr_xchg(&mapval->node, res); in create_and_stash()
133 struct map_value *mapval; in stash_plain() local
137 mapval = bpf_map_lookup_elem(&some_nodes, &idx); in stash_plain()
138 if (!mapval) in stash_plain()
146 res = bpf_kptr_xchg(&mapval->plain, res); in stash_plain()
156 struct map_value *mapval; in stash_local_with_root() local
160 mapval = bpf_map_lookup_elem(&some_nodes, &idx); in stash_local_with_root()
161 if (!mapval) in stash_local_with_root()
179 res = bpf_kptr_xchg(&mapval->local_root, res); in stash_local_with_root()
191 struct map_value *mapval; in unstash_rb_node() local
196 mapval = bpf_map_lookup_elem(&some_nodes, &key); in unstash_rb_node()
197 if (!mapval) in unstash_rb_node()
200 res = bpf_kptr_xchg(&mapval->node, NULL); in unstash_rb_node()
220 struct map_value *mapval; in stash_test_ref_kfunc() local
223 mapval = bpf_map_lookup_elem(&some_nodes, &key); in stash_test_ref_kfunc()
224 if (!mapval) in stash_test_ref_kfunc()
227 res = bpf_kptr_xchg(&mapval->val, NULL); in stash_test_ref_kfunc()