• Home
  • Raw
  • Download

Lines Matching refs:owner

27 static int mem_charge(struct bpf_local_storage_map *smap, void *owner, u32 size)  in mem_charge()  argument
34 return map->ops->map_local_storage_charge(smap, owner, size); in mem_charge()
37 static void mem_uncharge(struct bpf_local_storage_map *smap, void *owner, in mem_uncharge() argument
43 map->ops->map_local_storage_uncharge(smap, owner, size); in mem_uncharge()
47 owner_storage(struct bpf_local_storage_map *smap, void *owner) in owner_storage() argument
51 return map->ops->map_owner_storage_ptr(owner); in owner_storage()
75 bpf_selem_alloc(struct bpf_local_storage_map *smap, void *owner, in bpf_selem_alloc() argument
80 if (charge_mem && mem_charge(smap, owner, smap->elem_size)) in bpf_selem_alloc()
92 mem_uncharge(smap, owner, smap->elem_size); in bpf_selem_alloc()
123 void *owner; in bpf_selem_unlink_storage_nolock() local
126 owner = local_storage->owner; in bpf_selem_unlink_storage_nolock()
133 mem_uncharge(smap, owner, smap->elem_size); in bpf_selem_unlink_storage_nolock()
138 mem_uncharge(smap, owner, sizeof(struct bpf_local_storage)); in bpf_selem_unlink_storage_nolock()
139 local_storage->owner = NULL; in bpf_selem_unlink_storage_nolock()
142 RCU_INIT_POINTER(*owner_storage(smap, owner), NULL); in bpf_selem_unlink_storage_nolock()
302 int bpf_local_storage_alloc(void *owner, in bpf_local_storage_alloc() argument
311 err = mem_charge(smap, owner, sizeof(*storage)); in bpf_local_storage_alloc()
324 storage->owner = owner; in bpf_local_storage_alloc()
330 (struct bpf_local_storage **)owner_storage(smap, owner); in bpf_local_storage_alloc()
362 mem_uncharge(smap, owner, sizeof(*storage)); in bpf_local_storage_alloc()
372 bpf_local_storage_update(void *owner, struct bpf_local_storage_map *smap, in bpf_local_storage_update() argument
391 local_storage = rcu_dereference_check(*owner_storage(smap, owner), in bpf_local_storage_update()
399 selem = bpf_selem_alloc(smap, owner, value, true, gfp_flags); in bpf_local_storage_update()
403 err = bpf_local_storage_alloc(owner, smap, selem, gfp_flags); in bpf_local_storage_update()
406 mem_uncharge(smap, owner, smap->elem_size); in bpf_local_storage_update()
431 selem = bpf_selem_alloc(smap, owner, value, true, gfp_flags); in bpf_local_storage_update()
471 selem = bpf_selem_alloc(smap, owner, value, !old_sdata, gfp_flags); in bpf_local_storage_update()
498 mem_uncharge(smap, owner, smap->elem_size); in bpf_local_storage_update()