Lines Matching refs:smap
60 struct bpf_local_storage_map *smap; in task_storage_lookup() local
66 smap = (struct bpf_local_storage_map *)map; in task_storage_lookup()
67 return bpf_local_storage_lookup(task_storage, smap, cacheit_lockit); in task_storage_lookup()
285 struct bpf_local_storage_map *smap; in task_storage_map_alloc() local
287 smap = bpf_local_storage_map_alloc(attr); in task_storage_map_alloc()
288 if (IS_ERR(smap)) in task_storage_map_alloc()
289 return ERR_CAST(smap); in task_storage_map_alloc()
291 smap->cache_idx = bpf_local_storage_cache_idx_get(&task_cache); in task_storage_map_alloc()
292 return &smap->map; in task_storage_map_alloc()
297 struct bpf_local_storage_map *smap; in task_storage_map_free() local
299 smap = (struct bpf_local_storage_map *)map; in task_storage_map_free()
300 bpf_local_storage_cache_idx_free(&task_cache, smap->cache_idx); in task_storage_map_free()
301 bpf_local_storage_map_free(smap, &bpf_task_storage_busy); in task_storage_map_free()