Home
last modified time | relevance | path

Searched refs:insnsi (Results 1 – 25 of 25) sorted by relevance

/openbmc/linux/kernel/bpf/
H A Dcore.c305 dst[i] = fp->insnsi[i]; in bpf_prog_calc_tag()
406 struct bpf_insn *insn = prog->insnsi; in bpf_adj_branches()
418 insn = prog->insnsi + end_old; in bpf_adj_branches()
479 memcpy(prog->insnsi + off, patch, sizeof(*patch)); in bpf_patch_insn_single()
515 memmove(prog_adj->insnsi + off + len, prog_adj->insnsi + off + 1, in bpf_patch_insn_single()
517 memcpy(prog_adj->insnsi + off, patch, sizeof(*patch) * len); in bpf_patch_insn_single()
537 memmove(prog->insnsi + off, prog->insnsi + off + cnt, in bpf_remove_insns()
1444 insn = clone->insnsi; in bpf_jit_blind_constants()
1484 insn = clone->insnsi + i + insn_delta; in bpf_jit_blind_constants()
2005 insn = prog->insnsi; in ___bpf_prog_run()
H A Dverifier.c3019 struct bpf_insn *insn = env->prog->insnsi; in add_subprog_and_kfunc()
3062 struct bpf_insn *insn = env->prog->insnsi; in check_subprogs()
3349 struct bpf_insn *insn = env->prog->insnsi + env->insn_idx; in __check_reg_arg()
3657 struct bpf_insn *insn = env->prog->insnsi + idx; in backtrack_insn()
3884 bpf_pseudo_call(&env->prog->insnsi[subseq_idx - 1]) && in backtrack_insn()
4562 struct bpf_insn *insn = &env->prog->insnsi[insn_idx]; in check_stack_write_fixed_off()
4705 struct bpf_insn *insn = &env->prog->insnsi[insn_idx]; in check_stack_write_var_off()
5353 struct bpf_insn *insn = &env->prog->insnsi[insn_idx]; in check_map_kptr_access()
5844 struct bpf_insn *insn = env->prog->insnsi; in check_max_stack_depth_subprog()
9594 struct bpf_insn *insn = env->prog->insnsi; in in_rbtree_lock_required_cb()
[all …]
H A Dcgroup.c95 shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi)); in __cgroup_bpf_run_lsm_sock()
117 shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi)); in __cgroup_bpf_run_lsm_socket()
135 shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi)); in __cgroup_bpf_run_lsm_current()
H A Dsyscall.c4312 insns = kmemdup(prog->insnsi, bpf_prog_insn_size(prog), in bpf_insn_prepare_dump()
/openbmc/linux/arch/parisc/net/
H A Dbpf_jit_core.c23 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body()
H A Dbpf_jit_comp64.c597 int s, e, ret, i = insn - ctx->prog->insnsi; in bpf_jit_emit_insn()
H A Dbpf_jit_comp32.c1121 int s, e, paoff, i = insn - ctx->prog->insnsi; in bpf_jit_emit_insn()
/openbmc/linux/include/linux/
H A Dbpf.h1210 const struct bpf_insn *insnsi, in bpf_dispatcher_nop_func() argument
1213 return bpf_func(ctx, insnsi); in bpf_dispatcher_nop_func()
1270 static_call(bpf_dispatcher_##name##_call)(ctx, insnsi, bpf_func)
1278 #define __BPF_DISPATCHER_CALL(name) bpf_func(ctx, insnsi)
1300 const struct bpf_insn *insnsi, \
1312 const struct bpf_insn *insnsi, \
1523 DECLARE_FLEX_ARRAY(struct bpf_insn, insnsi);
H A Dfilter.h589 const struct bpf_insn *insnsi,
605 ret = dfunc(ctx, prog->insnsi, prog->bpf_func); in __bpf_prog_run()
612 ret = dfunc(ctx, prog->insnsi, prog->bpf_func); in __bpf_prog_run()
/openbmc/linux/arch/riscv/net/
H A Dbpf_jit_core.c24 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body()
H A Dbpf_jit_comp64.c757 emit_imm(RV_REG_A1, (const s64)p->insnsi, ctx); in invoke_bpf_prog()
1074 int s, e, rvoff, ret, i = insn - ctx->prog->insnsi; in bpf_jit_emit_insn()
H A Dbpf_jit_comp32.c959 int s, e, rvoff, i = insn - ctx->prog->insnsi; in bpf_jit_emit_insn()
/openbmc/linux/arch/arm64/net/
H A Dbpf_jit_comp.c524 const int i = insn - ctx->prog->insnsi; in emit_ll_sc_atomic()
773 const int i = insn - ctx->prog->insnsi; in build_insn()
1379 const struct bpf_insn *insn = &prog->insnsi[i]; in find_fpb_offset()
1457 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body()
1752 emit_addr_mov_i64(A64_R(1), (const u64)p->insnsi, ctx); in invoke_bpf_prog()
/openbmc/linux/arch/loongarch/net/
H A Dbpf_jit.c454 int i = insn - ctx->prog->insnsi; in build_insn()
1042 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body()
/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Doffload.c205 ret = nfp_prog_prepare(nfp_prog, prog->insnsi, prog->len); in nfp_bpf_verifier_prep()
/openbmc/linux/arch/x86/net/
H A Dbpf_jit_comp.c1079 struct bpf_insn *insn = bpf_prog->insnsi; in do_jit()
2223 (long) p->insnsi >> 32, in invoke_bpf_prog()
2224 (u32) (long) p->insnsi); in invoke_bpf_prog()
H A Dbpf_jit_comp32.c1662 struct bpf_insn *insn = bpf_prog->insnsi; in do_jit()
/openbmc/linux/arch/sparc/net/
H A Dbpf_jit_comp_64.c900 const int i = insn - ctx->prog->insnsi; in build_insn()
1444 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body()
/openbmc/linux/arch/s390/net/
H A Dbpf_jit_comp.c778 struct bpf_insn *insn = &fp->insnsi[i]; in bpf_jit_insn()
2151 load_imm64(jit, REG_3, (u64)p->insnsi); in invoke_bpf_prog()
/openbmc/linux/arch/mips/net/
H A Dbpf_jit_comp.c857 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body()
/openbmc/linux/arch/arm/net/
H A Dbpf_jit_32.c1357 const int i = insn - ctx->prog->insnsi; in build_insn()
1835 const struct bpf_insn *insn = &(prog->insnsi[i]); in build_body()
/openbmc/linux/arch/powerpc/net/
H A Dbpf_jit_comp64.c368 const struct bpf_insn *insn = fp->insnsi; in bpf_jit_build_body()
H A Dbpf_jit_comp32.c284 const struct bpf_insn *insn = fp->insnsi; in bpf_jit_build_body()
/openbmc/linux/lib/
H A Dtest_bpf.c14480 memcpy(fp->insnsi, fptr, fp->len * sizeof(struct bpf_insn)); in generate_filter()
15080 memcpy(fp->insnsi, test->insns, len * sizeof(struct bpf_insn)); in prepare_tail_call_tests()
15084 struct bpf_insn *insn = &fp->insnsi[i]; in prepare_tail_call_tests()
/openbmc/linux/net/core/
H A Dfilter.c578 first_insn = new_prog->insnsi; in bpf_convert_filter()
8855 *insn++ = prog->insnsi[0]; in bpf_unclone_prologue()