Lines Matching refs:map
54 task_storage_lookup(struct task_struct *task, struct bpf_map *map, in task_storage_lookup() argument
65 smap = (struct bpf_local_storage_map *)map; in task_storage_lookup()
88 static void *bpf_pid_task_storage_lookup_elem(struct bpf_map *map, void *key) in bpf_pid_task_storage_lookup_elem() argument
112 sdata = task_storage_lookup(task, map, true); in bpf_pid_task_storage_lookup_elem()
121 static long bpf_pid_task_storage_update_elem(struct bpf_map *map, void *key, in bpf_pid_task_storage_update_elem() argument
130 if ((map_flags & BPF_F_LOCK) && btf_record_has_field(map->record, BPF_UPTR)) in bpf_pid_task_storage_update_elem()
150 task, (struct bpf_local_storage_map *)map, value, map_flags, in bpf_pid_task_storage_update_elem()
160 static int task_storage_delete(struct task_struct *task, struct bpf_map *map, in task_storage_delete() argument
165 sdata = task_storage_lookup(task, map, false); in task_storage_delete()
177 static long bpf_pid_task_storage_delete_elem(struct bpf_map *map, void *key) in bpf_pid_task_storage_delete_elem() argument
200 err = task_storage_delete(task, map, true); in bpf_pid_task_storage_delete_elem()
208 static void *__bpf_task_storage_get(struct bpf_map *map, in __bpf_task_storage_get() argument
214 sdata = task_storage_lookup(task, map, nobusy); in __bpf_task_storage_get()
222 task, (struct bpf_local_storage_map *)map, value, in __bpf_task_storage_get()
231 BPF_CALL_5(bpf_task_storage_get_recur, struct bpf_map *, map, struct task_struct *, in BPF_CALL_5() argument
242 data = __bpf_task_storage_get(map, task, value, flags, in BPF_CALL_5()
250 BPF_CALL_5(bpf_task_storage_get, struct bpf_map *, map, struct task_struct *, in BPF_CALL_5() argument
260 data = __bpf_task_storage_get(map, task, value, flags, in BPF_CALL_5()
266 BPF_CALL_2(bpf_task_storage_delete_recur, struct bpf_map *, map, struct task_struct *, in BPF_CALL_2() argument
281 ret = task_storage_delete(task, map, nobusy); in BPF_CALL_2()
287 BPF_CALL_2(bpf_task_storage_delete, struct bpf_map *, map, struct task_struct *, in BPF_CALL_2() argument
301 ret = task_storage_delete(task, map, true); in BPF_CALL_2()
306 static int notsupp_get_next_key(struct bpf_map *map, void *key, void *next_key) in notsupp_get_next_key() argument
316 static void task_storage_map_free(struct bpf_map *map) in task_storage_map_free() argument
318 bpf_local_storage_map_free(map, &task_cache, &bpf_task_storage_busy); in task_storage_map_free()