Lines Matching refs:storage
265 struct bpf_local_storage *prev_storage, *storage; in bpf_local_storage_alloc() local
269 err = mem_charge(smap, owner, sizeof(*storage)); in bpf_local_storage_alloc()
273 storage = bpf_map_kzalloc(&smap->map, sizeof(*storage), in bpf_local_storage_alloc()
275 if (!storage) { in bpf_local_storage_alloc()
280 INIT_HLIST_HEAD(&storage->list); in bpf_local_storage_alloc()
281 raw_spin_lock_init(&storage->lock); in bpf_local_storage_alloc()
282 storage->owner = owner; in bpf_local_storage_alloc()
284 bpf_selem_link_storage_nolock(storage, first_selem); in bpf_local_storage_alloc()
299 prev_storage = cmpxchg(owner_storage_ptr, NULL, storage); in bpf_local_storage_alloc()
318 kfree(storage); in bpf_local_storage_alloc()
319 mem_uncharge(smap, owner, sizeof(*storage)); in bpf_local_storage_alloc()