Lines Matching refs:smap
61 struct bpf_local_storage_map *smap; in task_storage_lookup() local
68 smap = (struct bpf_local_storage_map *)map; in task_storage_lookup()
69 return bpf_local_storage_lookup(task_storage, smap, cacheit_lockit); in task_storage_lookup()
291 struct bpf_local_storage_map *smap; in task_storage_map_alloc() local
293 smap = bpf_local_storage_map_alloc(attr); in task_storage_map_alloc()
294 if (IS_ERR(smap)) in task_storage_map_alloc()
295 return ERR_CAST(smap); in task_storage_map_alloc()
297 smap->cache_idx = bpf_local_storage_cache_idx_get(&task_cache); in task_storage_map_alloc()
298 return &smap->map; in task_storage_map_alloc()
303 struct bpf_local_storage_map *smap; in task_storage_map_free() local
305 smap = (struct bpf_local_storage_map *)map; in task_storage_map_free()
306 bpf_local_storage_cache_idx_free(&task_cache, smap->cache_idx); in task_storage_map_free()
307 bpf_local_storage_map_free(smap, &bpf_task_storage_busy); in task_storage_map_free()