• Home
  • Raw
  • Download

Lines Matching refs:kvalue

58 	struct bpf_struct_ops_value kvalue;  member
250 struct bpf_struct_ops_value *uvalue, *kvalue; in bpf_struct_ops_map_sys_lookup_elem() local
256 kvalue = &st_map->kvalue; in bpf_struct_ops_map_sys_lookup_elem()
258 state = smp_load_acquire(&kvalue->state); in bpf_struct_ops_map_sys_lookup_elem()
270 refcount_set(&uvalue->refcnt, refcount_read(&kvalue->refcnt)); in bpf_struct_ops_map_sys_lookup_elem()
357 struct bpf_struct_ops_value *uvalue, *kvalue; in bpf_struct_ops_map_update_elem() local
389 kvalue = (struct bpf_struct_ops_value *)&st_map->kvalue; in bpf_struct_ops_map_update_elem()
393 if (kvalue->state != BPF_STRUCT_OPS_STATE_INIT) { in bpf_struct_ops_map_update_elem()
401 kdata = &kvalue->data; in bpf_struct_ops_map_update_elem()
494 refcount_set(&kvalue->refcnt, 1); in bpf_struct_ops_map_update_elem()
505 smp_store_release(&kvalue->state, BPF_STRUCT_OPS_STATE_INUSE); in bpf_struct_ops_map_update_elem()
521 memset(kvalue, 0, map->value_size); in bpf_struct_ops_map_update_elem()
534 prev_state = cmpxchg(&st_map->kvalue.state, in bpf_struct_ops_map_delete_elem()
539 st_map->st_ops->unreg(&st_map->kvalue.data); in bpf_struct_ops_map_delete_elem()
540 if (refcount_dec_and_test(&st_map->kvalue.refcnt)) in bpf_struct_ops_map_delete_elem()
663 struct bpf_struct_ops_value *kvalue; in bpf_struct_ops_get() local
665 kvalue = container_of(kdata, struct bpf_struct_ops_value, data); in bpf_struct_ops_get()
667 return refcount_inc_not_zero(&kvalue->refcnt); in bpf_struct_ops_get()
680 struct bpf_struct_ops_value *kvalue; in bpf_struct_ops_put() local
682 kvalue = container_of(kdata, struct bpf_struct_ops_value, data); in bpf_struct_ops_put()
683 if (refcount_dec_and_test(&kvalue->refcnt)) { in bpf_struct_ops_put()
686 st_map = container_of(kvalue, struct bpf_struct_ops_map, in bpf_struct_ops_put()
687 kvalue); in bpf_struct_ops_put()