Lines Matching refs:bpf_prog

22 struct bpf_prog;
232 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr,
240 const struct bpf_prog *prog);
246 const struct bpf_prog *prog,
249 const struct bpf_prog *prog);
255 struct bpf_prog *prog, u32 *target_size);
264 struct bpf_prog *prog;
282 struct bpf_prog **func;
288 struct bpf_prog *prog;
330 bool bpf_prog_array_compatible(struct bpf_array *array, const struct bpf_prog *fp);
331 int bpf_prog_calc_tag(struct bpf_prog *fp);
341 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr,
343 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr,
359 struct bpf_prog *prog;
375 struct bpf_prog *old_prog);
380 struct bpf_prog *exclude_prog,
381 struct bpf_prog *include_prog,
387 struct bpf_prog *_prog; \
432 struct bpf_prog *bpf_prog_get(u32 ufd);
433 struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type,
435 struct bpf_prog * __must_check bpf_prog_add(struct bpf_prog *prog, int i);
436 void bpf_prog_sub(struct bpf_prog *prog, int i);
437 struct bpf_prog * __must_check bpf_prog_inc(struct bpf_prog *prog);
438 struct bpf_prog * __must_check bpf_prog_inc_not_zero(struct bpf_prog *prog);
439 void bpf_prog_put(struct bpf_prog *prog);
443 void bpf_prog_free_id(struct bpf_prog *prog, bool do_idr_lock);
461 int bpf_prog_new_fd(struct bpf_prog *prog);
503 int bpf_check(struct bpf_prog **fp, union bpf_attr *attr);
516 struct bpf_prog *xdp_prog);
531 struct bpf_prog *bpf_prog_get_type_path(const char *name, enum bpf_prog_type type);
535 static inline struct bpf_prog *bpf_prog_get(u32 ufd) in bpf_prog_get()
540 static inline struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, in bpf_prog_get_type_dev()
547 static inline struct bpf_prog * __must_check bpf_prog_add(struct bpf_prog *prog, in bpf_prog_add()
553 static inline void bpf_prog_sub(struct bpf_prog *prog, int i) in bpf_prog_sub()
557 static inline void bpf_prog_put(struct bpf_prog *prog) in bpf_prog_put()
561 static inline struct bpf_prog * __must_check bpf_prog_inc(struct bpf_prog *prog) in bpf_prog_inc()
566 static inline struct bpf_prog *__must_check
567 bpf_prog_inc_not_zero(struct bpf_prog *prog) in bpf_prog_inc_not_zero()
614 struct bpf_prog *xdp_prog) in dev_map_generic_redirect()
640 static inline struct bpf_prog *bpf_prog_get_type_path(const char *name, in bpf_prog_get_type_path()
647 static inline struct bpf_prog *bpf_prog_get_type(u32 ufd, in bpf_prog_get_type()
653 bool bpf_prog_get_ok(struct bpf_prog *, enum bpf_prog_type *, bool);
655 int bpf_prog_offload_compile(struct bpf_prog *prog);
656 void bpf_prog_offload_destroy(struct bpf_prog *prog);
658 struct bpf_prog *prog);
669 bool bpf_offload_prog_map_match(struct bpf_prog *prog, struct bpf_map *map);
677 bool bpf_offload_dev_match(struct bpf_prog *prog, struct net_device *netdev);
680 int bpf_prog_offload_init(struct bpf_prog *prog, union bpf_attr *attr);
695 static inline int bpf_prog_offload_init(struct bpf_prog *prog, in bpf_prog_offload_init()
724 int sock_map_prog(struct bpf_map *map, struct bpf_prog *prog, u32 type);
726 struct bpf_prog *prog);
740 struct bpf_prog *prog, in sock_map_prog()
747 struct bpf_prog *prog) in sockmap_get_from_fd()