Lines Matching refs:map
26 struct bpf_map *map = &smap->map; in mem_charge() local
28 if (!map->ops->map_local_storage_charge) in mem_charge()
31 return map->ops->map_local_storage_charge(smap, owner, size); in mem_charge()
37 struct bpf_map *map = &smap->map; in mem_uncharge() local
39 if (map->ops->map_local_storage_uncharge) in mem_uncharge()
40 map->ops->map_local_storage_uncharge(smap, owner, size); in mem_uncharge()
46 struct bpf_map *map = &smap->map; in owner_storage() local
48 return map->ops->map_owner_storage_ptr(owner); in owner_storage()
80 selem = bpf_map_kzalloc(&smap->map, smap->elem_size, in bpf_selem_alloc()
84 copy_map_value(&smap->map, SDATA(selem)->data, value); in bpf_selem_alloc()
283 storage = bpf_map_kzalloc(&smap->map, sizeof(*storage), in bpf_local_storage_alloc()
352 !map_value_has_spin_lock(&smap->map))) in bpf_local_storage_update()
387 copy_map_value_locked(&smap->map, old_sdata->data, in bpf_local_storage_update()
412 copy_map_value_locked(&smap->map, old_sdata->data, value, in bpf_local_storage_update()
577 bpf_map_init_from_attr(&smap->map, attr); in bpf_local_storage_map_alloc()
602 int bpf_local_storage_map_check_btf(const struct bpf_map *map, in bpf_local_storage_map_check_btf() argument