Home
last modified time | relevance | path

Searched defs:prog (Results 1 – 25 of 160) sorted by relevance

1234567

/Linux-v4.19/net/sched/
Dcls_bpf.c88 struct cls_bpf_prog *prog; in cls_bpf_classify() local
142 static bool cls_bpf_is_ebpf(const struct cls_bpf_prog *prog) in cls_bpf_is_ebpf()
147 static int cls_bpf_offload_cmd(struct tcf_proto *tp, struct cls_bpf_prog *prog, in cls_bpf_offload_cmd()
194 static int cls_bpf_offload(struct tcf_proto *tp, struct cls_bpf_prog *prog, in cls_bpf_offload()
214 struct cls_bpf_prog *prog, in cls_bpf_stop_offload()
225 struct cls_bpf_prog *prog) in cls_bpf_offload_update_stats()
255 static void cls_bpf_free_parms(struct cls_bpf_prog *prog) in cls_bpf_free_parms()
266 static void __cls_bpf_delete_prog(struct cls_bpf_prog *prog) in __cls_bpf_delete_prog()
277 struct cls_bpf_prog *prog = container_of(to_rcu_work(work), in cls_bpf_delete_prog_work() local
285 static void __cls_bpf_delete(struct tcf_proto *tp, struct cls_bpf_prog *prog, in __cls_bpf_delete()
[all …]
Dact_bpf.c41 struct tcf_bpf *prog = to_bpf(act); in tcf_bpf_act() local
93 static bool tcf_bpf_is_ebpf(const struct tcf_bpf *prog) in tcf_bpf_is_ebpf()
98 static int tcf_bpf_dump_bpf_info(const struct tcf_bpf *prog, in tcf_bpf_dump_bpf_info()
116 static int tcf_bpf_dump_ebpf_info(const struct tcf_bpf *prog, in tcf_bpf_dump_ebpf_info()
141 struct tcf_bpf *prog = to_bpf(act); in tcf_bpf_dump() local
265 static void tcf_bpf_prog_fill_cfg(const struct tcf_bpf *prog, in tcf_bpf_prog_fill_cfg()
287 struct tcf_bpf *prog; in tcf_bpf_init() local
/Linux-v4.19/arch/x86/net/
Dbpf_jit_comp32.c206 u8 *prog = *pprog; in emit_ia32_mov_i() local
234 u8 *prog = *pprog; in emit_ia32_mov_r() local
284 u8 *prog = *pprog; in emit_ia32_mul_r() local
316 u8 *prog = *pprog; in emit_ia32_to_le_r64() local
361 u8 *prog = *pprog; in emit_ia32_to_be_r64() local
428 u8 *prog = *pprog; in emit_ia32_div_mod_r() local
475 u8 *prog = *pprog; in emit_ia32_shift_r() local
517 u8 *prog = *pprog; in emit_ia32_alu_r() local
572 u8 *prog = *pprog; in emit_ia32_alu_r64() local
591 u8 *prog = *pprog; in emit_ia32_alu_i() local
[all …]
Dbpf_jit_comp.c203 u8 *prog = *pprog; in emit_prologue() local
263 u8 *prog = *pprog; in emit_bpf_tail_call() local
331 u8 *prog = *pprog; in emit_mov_imm32() local
372 u8 *prog = *pprog; in emit_mov_imm64() local
395 u8 *prog = *pprog; in emit_mov_reg() local
420 u8 *prog = temp; in do_jit() local
1063 struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) in bpf_int_jit_compile()
/Linux-v4.19/drivers/media/rc/
Dbpf-lirc.c63 lirc_mode2_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in lirc_mode2_func_proto()
93 const struct bpf_prog *prog, in lirc_mode2_is_valid_access()
107 static int lirc_bpf_attach(struct rc_dev *rcdev, struct bpf_prog *prog) in lirc_bpf_attach()
145 static int lirc_bpf_detach(struct rc_dev *rcdev, struct bpf_prog *prog) in lirc_bpf_detach()
213 int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog) in lirc_prog_attach()
234 struct bpf_prog *prog; in lirc_prog_detach() local
/Linux-v4.19/kernel/bpf/
Doffload.c78 int bpf_prog_offload_init(struct bpf_prog *prog, union bpf_attr *attr) in bpf_prog_offload_init()
124 static int __bpf_offload_ndo(struct bpf_prog *prog, enum bpf_netdev_command cmd, in __bpf_offload_ndo()
175 static void __bpf_prog_offload_destroy(struct bpf_prog *prog) in __bpf_prog_offload_destroy()
193 void bpf_prog_offload_destroy(struct bpf_prog *prog) in bpf_prog_offload_destroy()
203 static int bpf_prog_offload_translate(struct bpf_prog *prog) in bpf_prog_offload_translate()
224 int bpf_prog_offload_compile(struct bpf_prog *prog) in bpf_prog_offload_compile()
232 struct bpf_prog *prog; member
263 struct bpf_prog *prog) in bpf_prog_offload_info_fill()
514 static bool __bpf_offload_dev_match(struct bpf_prog *prog, in __bpf_offload_dev_match()
535 bool bpf_offload_dev_match(struct bpf_prog *prog, struct net_device *netdev) in bpf_offload_dev_match()
[all …]
Dsyscall.c970 static int find_prog_type(enum bpf_prog_type type, struct bpf_prog *prog) in find_prog_type()
1025 static int bpf_prog_charge_memlock(struct bpf_prog *prog) in bpf_prog_charge_memlock()
1040 static void bpf_prog_uncharge_memlock(struct bpf_prog *prog) in bpf_prog_uncharge_memlock()
1048 static int bpf_prog_alloc_id(struct bpf_prog *prog) in bpf_prog_alloc_id()
1067 void bpf_prog_free_id(struct bpf_prog *prog, bool do_idr_lock) in bpf_prog_free_id()
1101 static void __bpf_prog_put(struct bpf_prog *prog, bool do_idr_lock) in __bpf_prog_put()
1112 void bpf_prog_put(struct bpf_prog *prog) in bpf_prog_put()
1120 struct bpf_prog *prog = filp->private_data; in bpf_prog_release() local
1129 const struct bpf_prog *prog = filp->private_data; in bpf_prog_show_fdinfo() local
1156 int bpf_prog_new_fd(struct bpf_prog *prog) in bpf_prog_new_fd()
[all …]
Dcgroup.c230 int __cgroup_bpf_attach(struct cgroup *cgrp, struct bpf_prog *prog, in __cgroup_bpf_attach()
338 int __cgroup_bpf_detach(struct cgroup *cgrp, struct bpf_prog *prog, in __cgroup_bpf_detach()
452 enum bpf_prog_type ptype, struct bpf_prog *prog) in cgroup_bpf_prog_attach()
469 struct bpf_prog *prog; in cgroup_bpf_prog_detach() local
667 cgroup_dev_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in cgroup_dev_func_proto()
690 const struct bpf_prog *prog, in cgroup_dev_is_valid_access()
Dlocal_storage.c21 struct bpf_prog *prog; member
255 int bpf_cgroup_storage_assign(struct bpf_prog *prog, struct bpf_map *_map) in bpf_cgroup_storage_assign()
276 void bpf_cgroup_storage_release(struct bpf_prog *prog, struct bpf_map *_map) in bpf_cgroup_storage_release()
289 struct bpf_cgroup_storage *bpf_cgroup_storage_alloc(struct bpf_prog *prog) in bpf_cgroup_storage_alloc()
Dcore.c256 static int bpf_adj_branches(struct bpf_prog *prog, u32 pos, u32 delta, in bpf_adj_branches()
295 struct bpf_prog *bpf_patch_insn_single(struct bpf_prog *prog, u32 off, in bpf_patch_insn_single()
374 bpf_get_prog_addr_region(const struct bpf_prog *prog, in bpf_get_prog_addr_region()
387 static void bpf_get_prog_name(const struct bpf_prog *prog, char *sym) in bpf_get_prog_name()
519 struct bpf_prog *prog; in __bpf_address_lookup() local
766 struct bpf_prog *bpf_jit_blind_constants(struct bpf_prog *prog) in bpf_jit_blind_constants()
1126 struct bpf_prog *prog; in ___bpf_prog_run() local
1521 struct bpf_prog prog; member
1827 struct bpf_prog * __weak bpf_int_jit_compile(struct bpf_prog *prog) in bpf_int_jit_compile()
1835 void __weak bpf_jit_compile(struct bpf_prog *prog) in bpf_jit_compile()
/Linux-v4.19/tools/testing/selftests/seccomp/
Dseccomp_bpf.c235 struct sock_fprog prog = { in TEST() local
267 struct sock_fprog prog = { }; in TEST() local
304 struct sock_fprog prog = { }; in TEST() local
341 struct sock_fprog prog = { in TEST() local
364 struct sock_fprog prog = { in TEST() local
389 struct sock_fprog prog = { in TEST() local
406 struct sock_fprog prog = { in TEST() local
425 struct sock_fprog prog = { in TEST() local
447 struct sock_fprog prog = { in TEST_SIGNAL() local
469 struct sock_fprog prog = { in TEST_SIGNAL() local
[all …]
/Linux-v4.19/tools/lib/bpf/
Dlibbpf.c231 static void bpf_program__unload(struct bpf_program *prog) in bpf_program__unload()
254 static void bpf_program__exit(struct bpf_program *prog) in bpf_program__exit()
278 struct bpf_program *prog) in bpf_program__init()
318 struct bpf_program prog, *progs; in bpf_object__add_program() local
353 struct bpf_program *prog; in bpf_object__init_prog_names() local
869 struct bpf_program *prog; in bpf_object__find_prog_by_idx() local
893 bpf_program__collect_reloc(struct bpf_program *prog, GElf_Shdr *shdr, in bpf_program__collect_reloc()
1172 bpf_program__reloc_text(struct bpf_program *prog, struct bpf_object *obj, in bpf_program__reloc_text()
1215 bpf_program__relocate(struct bpf_program *prog, struct bpf_object *obj) in bpf_program__relocate()
1254 struct bpf_program *prog; in bpf_object__relocate() local
[all …]
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/bpf/
Doffload.c148 struct bpf_prog *prog) in nfp_map_ptrs_record()
181 nfp_prog_prepare(struct nfp_prog *nfp_prog, const struct bpf_insn *prog, in nfp_prog_prepare()
222 struct bpf_prog *prog = bpf->verifier.prog; in nfp_bpf_verifier_prep() local
250 static int nfp_bpf_translate(struct nfp_net *nn, struct bpf_prog *prog) in nfp_bpf_translate()
282 static int nfp_bpf_destroy(struct nfp_net *nn, struct bpf_prog *prog) in nfp_bpf_destroy()
509 nfp_net_bpf_load(struct nfp_net *nn, struct bpf_prog *prog, in nfp_net_bpf_load()
577 int nfp_net_bpf_offload(struct nfp_net *nn, struct bpf_prog *prog, in nfp_net_bpf_offload()
/Linux-v4.19/net/bpf/
Dtest_run.c14 static __always_inline u32 bpf_test_run_one(struct bpf_prog *prog, void *ctx, in bpf_test_run_one()
29 static u32 bpf_test_run(struct bpf_prog *prog, void *ctx, u32 repeat, u32 *time) in bpf_test_run()
101 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr, in bpf_prog_test_run_skb()
169 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, in bpf_prog_test_run_xdp()
/Linux-v4.19/drivers/clk/at91/
Dclk-programmable.c46 struct clk_programmable *prog = to_clk_programmable(hw); in clk_programmable_recalc_rate() local
99 struct clk_programmable *prog = to_clk_programmable(hw); in clk_programmable_set_parent() local
121 struct clk_programmable *prog = to_clk_programmable(hw); in clk_programmable_get_parent() local
139 struct clk_programmable *prog = to_clk_programmable(hw); in clk_programmable_set_rate() local
179 struct clk_programmable *prog; in at91_clk_register_programmable() local
/Linux-v4.19/kernel/trace/
Dbpf_trace.c525 tracing_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in tracing_func_proto()
574 kprobe_prog_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in kprobe_prog_func_proto()
596 const struct bpf_prog *prog, in kprobe_prog_is_valid_access()
690 tp_prog_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in tp_prog_func_proto()
705 const struct bpf_prog *prog, in tp_prog_is_valid_access()
754 pe_prog_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in pe_prog_func_proto()
837 raw_tp_prog_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in raw_tp_prog_func_proto()
853 const struct bpf_prog *prog, in raw_tp_prog_is_valid_access()
875 const struct bpf_prog *prog, in pe_prog_is_valid_access()
915 struct bpf_prog *prog, u32 *target_size) in pe_prog_convert_ctx_access()
[all …]
/Linux-v4.19/drivers/net/netdevsim/
Dbpf.c31 struct bpf_prog *prog; member
98 static void nsim_prog_set_loaded(struct bpf_prog *prog, bool loaded) in nsim_prog_set_loaded()
110 nsim_bpf_offload(struct netdevsim *ns, struct bpf_prog *prog, bool oldprog) in nsim_bpf_offload()
128 struct bpf_prog *prog = cls_bpf->prog; in nsim_bpf_setup_tc_block_cb() local
227 static int nsim_bpf_create_prog(struct netdevsim *ns, struct bpf_prog *prog) in nsim_bpf_create_prog()
260 static void nsim_bpf_destroy_prog(struct bpf_prog *prog) in nsim_bpf_destroy_prog()
/Linux-v4.19/net/core/
Dsock_reuseport.c223 struct bpf_prog *prog, struct sk_buff *skb, in run_bpf_filter()
268 struct bpf_prog *prog; in reuseport_select_sock() local
305 int reuseport_attach_prog(struct sock *sk, struct bpf_prog *prog) in reuseport_attach_prog()
Dlwt_bpf.c21 struct bpf_prog *prog; member
179 static void bpf_lwt_prog_destroy(struct bpf_lwt_prog *prog) in bpf_lwt_prog_destroy()
202 static int bpf_parse_prog(struct nlattr *attr, struct bpf_lwt_prog *prog, in bpf_parse_prog()
313 struct bpf_lwt_prog *prog) in bpf_fill_lwt_prog()
Dfilter.c534 static int bpf_convert_filter(struct sock_filter *prog, int len, in bpf_convert_filter()
1141 static void __bpf_prog_release(struct bpf_prog *prog) in __bpf_prog_release()
1430 static int __sk_attach_prog(struct bpf_prog *prog, struct sock *sk) in __sk_attach_prog()
1460 struct bpf_prog *prog; in __get_filter() local
1505 struct bpf_prog *prog = __get_filter(fprog, sk); in sk_attach_filter() local
1523 struct bpf_prog *prog = __get_filter(fprog, sk); in sk_reuseport_attach_filter() local
1550 struct bpf_prog *prog = __get_bpf(ufd, sk); in sk_attach_bpf() local
1567 struct bpf_prog *prog; in sk_reuseport_attach_bpf() local
1610 void sk_reuseport_prog_free(struct bpf_prog *prog) in sk_reuseport_prog_free()
4851 sock_filter_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in sock_filter_func_proto()
[all …]
/Linux-v4.19/samples/bpf/
Dxdp_fwd_user.c53 static void usage(const char *prog) in usage()
69 struct bpf_program *prog; in main() local
Dtest_cgrp2_attach2.c45 struct bpf_insn prog[] = { in prog_load() local
228 struct bpf_insn prog[] = { in prog_load_cnt() local
/Linux-v4.19/include/linux/
Dbpf.h264 struct bpf_prog *prog; member
288 struct bpf_prog *prog; member
359 struct bpf_prog *prog; member
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()
567 bpf_prog_inc_not_zero(struct bpf_prog *prog) in bpf_prog_inc_not_zero()
695 static inline int bpf_prog_offload_init(struct bpf_prog *prog, in bpf_prog_offload_init()
740 struct bpf_prog *prog, in sock_map_prog()
[all …]
Dbpf-cgroup.h45 struct bpf_prog *prog; member
251 struct bpf_prog *prog) in cgroup_bpf_prog_attach()
269 static inline int bpf_cgroup_storage_assign(struct bpf_prog *prog, in bpf_cgroup_storage_assign()
271 static inline void bpf_cgroup_storage_release(struct bpf_prog *prog, in bpf_cgroup_storage_release()
274 struct bpf_prog *prog) { return 0; } in bpf_cgroup_storage_alloc()
/Linux-v4.19/drivers/scsi/aic94xx/
Daic94xx_seq.c196 const u32 *prog = (u32 *) _prog; in asd_verify_cseq() local
232 const u32 *prog = (u32 *) _prog; in asd_verify_lseq() local
267 static int asd_verify_seq(struct asd_ha_struct *asd_ha, const u8 *prog, in asd_verify_seq()
289 const u8 * const prog, u32 size, u8 lseq_mask) in asd_download_seq()
364 const u32 *prog = (u32 *) _prog; in asd_download_seq() local

1234567