Searched refs:bpf_map (Results 1 - 25 of 137) sorted by path

123456

/linux-master/drivers/hid/bpf/
H A Dhid_bpf_jmp_table.c41 struct bpf_map *map;
/linux-master/drivers/net/ethernet/netronome/nfp/bpf/
H A Dcmsg.c82 nfp_bpf_ctrl_alloc_map(struct nfp_app_bpf *bpf, struct bpf_map *map)
202 struct bpf_map *map = &nfp_map->offmap->map;
298 struct bpf_map *map = &offmap->map;
H A Djit.c4407 struct bpf_map *map;
H A Dmain.c18 .key_len = sizeof_field(struct bpf_map, id),
H A Dmain.h226 struct bpf_map *ptr;
595 nfp_bpf_ctrl_alloc_map(struct nfp_app_bpf *bpf, struct bpf_map *map);
H A Doffload.c32 struct bpf_map *map)
/linux-master/drivers/net/netdevsim/
H A Dbpf.c328 nsim_map_key_match(struct bpf_map *map, struct nsim_map_entry *e, void *key)
/linux-master/include/linux/
H A Dbpf-cgroup.h18 struct bpf_map;
159 struct bpf_map *map)
177 int bpf_cgroup_storage_assign(struct bpf_prog_aux *aux, struct bpf_map *map);
179 int bpf_percpu_cgroup_storage_copy(struct bpf_map *map, void *key, void *value);
180 int bpf_percpu_cgroup_storage_update(struct bpf_map *map, void *key,
482 struct bpf_map *map) { return 0; }
487 static inline int bpf_percpu_cgroup_storage_copy(struct bpf_map *map, void *key,
491 static inline int bpf_percpu_cgroup_storage_update(struct bpf_map *map,
H A Dbpf.h39 struct bpf_map;
84 struct bpf_map *(*map_alloc)(union bpf_attr *attr);
85 void (*map_release)(struct bpf_map *map, struct file *map_file);
86 void (*map_free)(struct bpf_map *map);
87 int (*map_get_next_key)(struct bpf_map *map, void *key, void *next_key);
88 void (*map_release_uref)(struct bpf_map *map);
89 void *(*map_lookup_elem_sys_only)(struct bpf_map *map, void *key);
90 int (*map_lookup_batch)(struct bpf_map *map, const union bpf_attr *attr,
92 int (*map_lookup_and_delete_elem)(struct bpf_map *map, void *key,
94 int (*map_lookup_and_delete_batch)(struct bpf_map *ma
257 struct bpf_map { struct
[all...]
H A Dbpf_local_storage.h40 * particular object, the "bpf_map" pointer is actually used
44 * e.g. sk->sk_bpf_storage is the mini-map with the "bpf_map" pointer
48 struct bpf_map map;
127 struct bpf_map *
165 void bpf_local_storage_map_free(struct bpf_map *map,
169 int bpf_local_storage_map_check_btf(const struct bpf_map *map,
200 u64 bpf_local_storage_map_mem_usage(const struct bpf_map *map);
H A Dbpf_verifier.h86 struct bpf_map *map_ptr;
678 struct bpf_map *used_maps[MAX_USED_MAPS]; /* array of map's used by eBPF program */
H A Dfilter.h705 struct bpf_map *map;
982 void bpf_clear_redirect_map(struct bpf_map *map);
1552 static __always_inline long __bpf_xdp_redirect_map(struct bpf_map *map, u64 index,
1554 void *lookup_elem(struct bpf_map *map, u32 key))
H A Dlsm_hook_defs.h423 LSM_HOOK(int, 0, bpf_map, struct bpf_map *map, fmode_t fmode)
425 LSM_HOOK(int, 0, bpf_map_create, struct bpf_map *map, union bpf_attr *attr,
427 LSM_HOOK(void, LSM_RET_VOID, bpf_map_free, struct bpf_map *map)
H A Dsecurity.h2125 struct bpf_map;
2130 extern int security_bpf_map(struct bpf_map *map, fmode_t fmode);
2132 extern int security_bpf_map_create(struct bpf_map *map, union bpf_attr *attr,
2134 extern void security_bpf_map_free(struct bpf_map *map);
2150 static inline int security_bpf_map(struct bpf_map *map, fmode_t fmode)
2160 static inline int security_bpf_map_create(struct bpf_map *map, union bpf_attr *attr,
2166 static inline void security_bpf_map_free(struct bpf_map *map)
H A Dskmsg.h70 struct bpf_map *map;
/linux-master/include/net/
H A Dxdp_sock.h42 struct bpf_map map;
/linux-master/kernel/bpf/
H A Darena.c44 struct bpf_map map;
63 static long arena_map_peek_elem(struct bpf_map *map, void *value)
68 static long arena_map_push_elem(struct bpf_map *map, void *value, u64 flags)
73 static long arena_map_pop_elem(struct bpf_map *map, void *value)
78 static long arena_map_delete_elem(struct bpf_map *map, void *value)
83 static int arena_map_get_next_key(struct bpf_map *map, void *key, void *next_key)
93 static struct bpf_map *arena_map_alloc(union bpf_attr *attr)
164 static void arena_map_free(struct bpf_map *map)
170 * mmap() holds vm_file which holds bpf_map refcnt.
190 static void *arena_map_lookup_elem(struct bpf_map *ma
[all...]
H A Darraymap.c80 static struct bpf_map *array_map_alloc(union bpf_attr *attr)
163 static void *array_map_lookup_elem(struct bpf_map *map, void *key)
174 static int array_map_direct_value_addr(const struct bpf_map *map, u64 *imm,
188 static int array_map_direct_value_meta(const struct bpf_map *map, u64 imm,
205 static int array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf)
238 static void *percpu_array_map_lookup_elem(struct bpf_map *map, void *key)
249 static void *percpu_array_map_lookup_percpu_elem(struct bpf_map *map, void *key, u32 cpu)
263 int bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value)
291 static int array_map_get_next_key(struct bpf_map *map, void *key, void *next_key)
310 static long array_map_update_elem(struct bpf_map *ma
[all...]
H A Dbloom_filter.c16 struct bpf_map map;
36 static long bloom_map_peek_elem(struct bpf_map *map, void *value)
51 static long bloom_map_push_elem(struct bpf_map *map, void *value, u64 flags)
68 static long bloom_map_pop_elem(struct bpf_map *map, void *value)
73 static long bloom_map_delete_elem(struct bpf_map *map, void *value)
78 static int bloom_map_get_next_key(struct bpf_map *map, void *key, void *next_key)
95 static struct bpf_map *bloom_map_alloc(union bpf_attr *attr)
162 static void bloom_map_free(struct bpf_map *map)
170 static void *bloom_map_lookup_elem(struct bpf_map *map, void *key)
176 static long bloom_map_update_elem(struct bpf_map *ma
[all...]
H A Dbpf_cgrp_storage.c64 cgroup_storage_lookup(struct cgroup *cgroup, struct bpf_map *map, bool cacheit_lockit)
78 static void *bpf_cgrp_storage_lookup_elem(struct bpf_map *map, void *key)
96 static long bpf_cgrp_storage_update_elem(struct bpf_map *map, void *key,
116 static int cgroup_storage_delete(struct cgroup *cgroup, struct bpf_map *map)
128 static long bpf_cgrp_storage_delete_elem(struct bpf_map *map, void *key)
145 static int notsupp_get_next_key(struct bpf_map *map, void *key, void *next_key)
150 static struct bpf_map *cgroup_storage_map_alloc(union bpf_attr *attr)
155 static void cgroup_storage_map_free(struct bpf_map *map)
161 BPF_CALL_5(bpf_cgrp_storage_get, struct bpf_map *, map, struct cgroup *, cgroup,
191 BPF_CALL_2(bpf_cgrp_storage_delete, struct bpf_map *, ma
[all...]
H A Dbpf_inode_storage.c37 struct bpf_map *map,
78 static void *bpf_fd_inode_storage_lookup_elem(struct bpf_map *map, void *key)
91 static long bpf_fd_inode_storage_update_elem(struct bpf_map *map, void *key,
111 static int inode_storage_delete(struct inode *inode, struct bpf_map *map)
124 static long bpf_fd_inode_storage_delete_elem(struct bpf_map *map, void *key)
138 BPF_CALL_5(bpf_inode_storage_get, struct bpf_map *, map, struct inode *, inode,
174 struct bpf_map *, map, struct inode *, inode)
186 static int notsupp_get_next_key(struct bpf_map *map, void *key,
192 static struct bpf_map *inode_storage_map_alloc(union bpf_attr *attr)
197 static void inode_storage_map_free(struct bpf_map *ma
[all...]
H A Dbpf_iter.c728 BPF_CALL_4(bpf_for_each_map_elem, struct bpf_map *, map, void *, callback_fn,
H A Dbpf_local_storage.c29 struct bpf_map *map = &smap->map;
40 struct bpf_map *map = &smap->map;
49 struct bpf_map *map = &smap->map;
687 int bpf_local_storage_map_check_btf(const struct bpf_map *map,
715 /* Neither the bpf_prog nor the bpf_map's syscall
718 * local_storage->list by the bpf_prog or by the bpf_map's syscall.
745 u64 bpf_local_storage_map_mem_usage(const struct bpf_map *map)
765 struct bpf_map *
822 void bpf_local_storage_map_free(struct bpf_map *map,
H A Dbpf_struct_ops.c24 struct bpf_map map;
58 struct bpf_map __rcu *map;
426 static int bpf_struct_ops_map_get_next_key(struct bpf_map *map, void *key,
436 int bpf_struct_ops_map_sys_lookup_elem(struct bpf_map *map, void *key,
473 static void *bpf_struct_ops_map_lookup_elem(struct bpf_map *map, void *key)
587 static long bpf_struct_ops_map_update_elem(struct bpf_map *map, void *key,
792 static long bpf_struct_ops_map_delete_elem(struct bpf_map *map, void *key)
820 static void bpf_struct_ops_map_seq_show_elem(struct bpf_map *map, void *key,
842 static void __bpf_struct_ops_map_free(struct bpf_map *map)
854 static void bpf_struct_ops_map_free(struct bpf_map *ma
[all...]
H A Dbpf_task_storage.c57 task_storage_lookup(struct task_struct *task, struct bpf_map *map,
90 static void *bpf_pid_task_storage_lookup_elem(struct bpf_map *map, void *key)
123 static long bpf_pid_task_storage_update_elem(struct bpf_map *map, void *key,
159 static int task_storage_delete(struct task_struct *task, struct bpf_map *map,
176 static long bpf_pid_task_storage_delete_elem(struct bpf_map *map, void *key)
207 static void *__bpf_task_storage_get(struct bpf_map *map,
230 BPF_CALL_5(bpf_task_storage_get_recur, struct bpf_map *, map, struct task_struct *,
249 BPF_CALL_5(bpf_task_storage_get, struct bpf_map *, map, struct task_struct *,
265 BPF_CALL_2(bpf_task_storage_delete_recur, struct bpf_map *, map, struct task_struct *,
286 BPF_CALL_2(bpf_task_storage_delete, struct bpf_map *, ma
[all...]

Completed in 685 milliseconds

123456