Lines Matching refs:res
89 struct node_data *res;
95 res = bpf_obj_new(typeof(*res));
96 if (!res)
98 res->key = val;
100 res = bpf_kptr_xchg(&mapval->node, res);
101 if (res)
102 bpf_obj_drop(res);
116 struct plain_local *res;
123 res = bpf_obj_new(typeof(*res));
124 if (!res)
126 res->key = 41;
128 res = bpf_kptr_xchg(&mapval->plain, res);
129 if (res)
130 bpf_obj_drop(res);
137 struct local_with_root *res;
146 res = bpf_obj_new(typeof(*res));
147 if (!res)
149 res->key = 41;
153 bpf_obj_drop(res);
157 bpf_spin_lock(&res->l);
158 bpf_rbtree_add(&res->r, &n->node, less);
159 bpf_spin_unlock(&res->l);
161 res = bpf_kptr_xchg(&mapval->local_root, res);
162 if (res) {
163 bpf_obj_drop(res);
173 struct node_data *res;
181 res = bpf_kptr_xchg(&mapval->node, NULL);
182 if (res) {
183 retval = res->key;
184 bpf_obj_drop(res);
193 struct prog_test_ref_kfunc *res;
201 res = bpf_kptr_xchg(&mapval->val, NULL);
202 if (res)
203 bpf_kfunc_call_test_release(res);