Home
last modified time | relevance | path

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

12

/openbmc/linux/arch/powerpc/net/
H A Dbpf_jit_comp64.c450 if (BPF_CLASS(code) == BPF_ALU) in bpf_jit_build_body()
461 if (BPF_CLASS(code) == BPF_ALU) in bpf_jit_build_body()
501 switch (BPF_CLASS(code)) { in bpf_jit_build_body()
760 if (BPF_CLASS(code) == BPF_ST) { in bpf_jit_build_body()
768 if (BPF_CLASS(code) == BPF_ST) { in bpf_jit_build_body()
776 if (BPF_CLASS(code) == BPF_ST) { in bpf_jit_build_body()
784 if (BPF_CLASS(code) == BPF_ST) { in bpf_jit_build_body()
1100 if (BPF_CLASS(code) == BPF_JMP32) in bpf_jit_build_body()
1114 if (BPF_CLASS(code) == BPF_JMP32) in bpf_jit_build_body()
1121 if (BPF_CLASS(code) == BPF_JMP) { in bpf_jit_build_body()
[all …]
H A Dbpf_jit_comp32.c312 if (i && (BPF_CLASS(code) == BPF_ALU64 || BPF_CLASS(code) == BPF_ALU) && in bpf_jit_build_body()
313 (BPF_CLASS(prevcode) == BPF_ALU64 || BPF_CLASS(prevcode) == BPF_ALU) && in bpf_jit_build_body()
1304 if (BPF_CLASS(code) == BPF_ALU && !fp->aux->verifier_zext && in bpf_jit_build_body()
/openbmc/linux/arch/x86/net/
H A Dbpf_jit_comp.c1142 BPF_CLASS(insn->code) == BPF_ALU64, in do_jit()
1154 BPF_CLASS(insn->code) == BPF_ALU64); in do_jit()
1169 BPF_CLASS(insn->code) == BPF_ALU64); in do_jit()
1262 if (BPF_CLASS(insn->code) == BPF_ALU) in do_jit()
1321 BPF_CLASS(insn->code) == BPF_ALU64); in do_jit()
1374 BPF_CLASS(insn->code) == BPF_ALU64); in do_jit()
1725 BPF_CLASS(insn->code) == BPF_JMP); in do_jit()
1733 BPF_CLASS(insn->code) == BPF_JMP); in do_jit()
1741 BPF_CLASS(insn->code) == BPF_JMP); in do_jit()
1775 BPF_CLASS(insn->code) == BPF_JMP); in do_jit()
[all …]
H A Dbpf_jit_comp32.c1674 const bool is64 = BPF_CLASS(insn->code) == BPF_ALU64; in do_jit()
2161 bool is_jmp64 = BPF_CLASS(insn->code) == BPF_JMP; in do_jit()
2232 bool is_jmp64 = BPF_CLASS(insn->code) == BPF_JMP; in do_jit()
2276 bool is_jmp64 = BPF_CLASS(insn->code) == BPF_JMP; in do_jit()
2332 bool is_jmp64 = BPF_CLASS(insn->code) == BPF_JMP; in do_jit()
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf_common.h6 #define BPF_CLASS(code) ((code) & 0x07) macro
/openbmc/linux/include/uapi/linux/
H A Dbpf_common.h6 #define BPF_CLASS(code) ((code) & 0x07) macro
/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Dmain.h353 return BPF_CLASS(meta->insn.code); in mbpf_class()
415 return BPF_CLASS(code) == BPF_LD && in is_mbpf_classic_load()
423 return BPF_CLASS(code) == BPF_ST && BPF_MODE(code) == BPF_MEM; in is_mbpf_classic_store()
/openbmc/linux/tools/bpf/bpftool/
H A Dcfg.c162 return BPF_CLASS(code) == BPF_JMP || BPF_CLASS(code) == BPF_JMP32; in is_jmp_insn()
/openbmc/linux/arch/s390/net/
H A Dbpf_jit_comp.c790 if (BPF_CLASS(insn->code) == BPF_LDX && in bpf_jit_insn()
1623 if (BPF_CLASS(insn->code) == BPF_JMP32) { in bpf_jit_insn()
1679 bool is_jmp32 = BPF_CLASS(insn->code) == BPF_JMP32; in bpf_jit_insn()
1687 is_jmp32 = BPF_CLASS(insn->code) == BPF_JMP32; in bpf_jit_insn()
1708 is_jmp32 = BPF_CLASS(insn->code) == BPF_JMP32; in bpf_jit_insn()
1726 is_jmp32 = BPF_CLASS(insn->code) == BPF_JMP32; in bpf_jit_insn()
/openbmc/linux/arch/parisc/net/
H A Dbpf_jit_comp64.c510 if (BPF_CLASS(opcode) == BPF_ALU) { in emit_call_libgcc_ll()
595 bool is64 = BPF_CLASS(insn->code) == BPF_ALU64 || in bpf_jit_emit_insn()
596 BPF_CLASS(insn->code) == BPF_JMP; in bpf_jit_emit_insn()
1077 if (BPF_CLASS(code) == BPF_ST) { in bpf_jit_emit_insn()
H A Dbpf_jit_comp32.c1119 bool is64 = BPF_CLASS(insn->code) == BPF_ALU64 || in bpf_jit_emit_insn()
1120 BPF_CLASS(insn->code) == BPF_JMP; in bpf_jit_emit_insn()
1133 BPF_CLASS(code), code, (code & BPF_ALU64) ? 1:0, BPF_SIZE(code), in bpf_jit_emit_insn()
1442 if (BPF_CLASS(code) == BPF_ST) { in bpf_jit_emit_insn()
/openbmc/linux/arch/arm64/net/
H A Dbpf_jit_comp.c774 const bool is64 = BPF_CLASS(code) == BPF_ALU64 || in build_insn()
775 BPF_CLASS(code) == BPF_JMP; in build_insn()
866 if (BPF_CLASS(code) == BPF_ALU && BPF_SRC(code) == BPF_FROM_BE) in build_insn()
869 if (BPF_CLASS(code) == BPF_ALU && BPF_SRC(code) == BPF_FROM_LE) in build_insn()
998 if (BPF_CLASS(code) == BPF_JMP) in build_insn()
1380 const u8 class = BPF_CLASS(insn->code); in find_fpb_offset()
/openbmc/linux/tools/testing/selftests/bpf/
H A Ddisasm.c174 u8 class = BPF_CLASS(insn->code); in print_bpf_insn()
/openbmc/linux/kernel/bpf/
H A Ddisasm.c174 u8 class = BPF_CLASS(insn->code); in print_bpf_insn()
H A Dverifier.c3077 if (BPF_CLASS(code) == BPF_LD && in check_subprogs()
3080 if (BPF_CLASS(code) != BPF_JMP && BPF_CLASS(code) != BPF_JMP32) in check_subprogs()
3219 class = BPF_CLASS(code); in is_reg64()
3302 switch (BPF_CLASS(insn->code)) { in insn_def_regno()
3658 u8 class = BPF_CLASS(insn->code); in backtrack_insn()
5353 int class = BPF_CLASS(insn->code); in check_map_kptr_access()
15316 if (BPF_CLASS(insn->code) == BPF_JMP) in visit_insn()
17008 class = BPF_CLASS(insn->code); in do_check()
18078 if (BPF_CLASS(code) == BPF_JMP32) in insn_is_cond_jump()
18081 if (BPF_CLASS(code) != BPF_JMP) in insn_is_cond_jump()
[all …]
H A Dcgroup.c2279 BPF_CLASS(si->code) | BPF_MEM | BPF_SIZEOF(u32), in sysctl_convert_ctx_access()
2440 BPF_MEM | BPF_CLASS(si->code)), \
2493 *insn++ = BPF_RAW_INSN(BPF_CLASS(si->code) | BPF_MEM | in cg_sockopt_convert_ctx_access()
/openbmc/linux/Documentation/bpf/
H A Dclassic_vs_extended.rst289 If BPF_CLASS(code) == BPF_ALU or BPF_ALU64 [ in eBPF ], BPF_OP(code) is one of::
306 If BPF_CLASS(code) == BPF_JMP or BPF_JMP32 [ in eBPF ], BPF_OP(code) is one of::
/openbmc/linux/arch/sparc/net/
H A Dbpf_jit_comp_64.c1120 div = (BPF_CLASS(code) == BPF_ALU64) ? UDIVX : DIV; in build_insn()
1124 if (BPF_CLASS(code) != BPF_ALU64) in build_insn()
1164 if (BPF_CLASS(code) == BPF_ALU && in build_insn()
/openbmc/linux/tools/bpf/
H A Dbpf_dbg.c431 if ((BPF_CLASS(f.code) == BPF_JMP && BPF_OP(f.code) != BPF_JA)) in bpf_disasm()
518 if (BPF_CLASS(f[i].code) == BPF_LD && in bpf_runnable()
/openbmc/linux/arch/riscv/net/
H A Dbpf_jit_comp32.c957 bool is64 = BPF_CLASS(insn->code) == BPF_ALU64 || in bpf_jit_emit_insn()
958 BPF_CLASS(insn->code) == BPF_JMP; in bpf_jit_emit_insn()
1265 if (BPF_CLASS(code) == BPF_ST) { in bpf_jit_emit_insn()
H A Dbpf_jit_comp64.c1072 bool is64 = BPF_CLASS(insn->code) == BPF_ALU64 || in bpf_jit_emit_insn()
1073 BPF_CLASS(insn->code) == BPF_JMP; in bpf_jit_emit_insn()
1387 if (BPF_CLASS(code) == BPF_JMP) in bpf_jit_emit_insn()
/openbmc/linux/tools/lib/bpf/
H A Drelo_core.c1031 class = BPF_CLASS(insn->code); in bpf_core_patch_insn()
1109 insn->code = BPF_MODE(insn->code) | insn_bpf_sz | BPF_CLASS(insn->code); in bpf_core_patch_insn()
/openbmc/linux/arch/loongarch/net/
H A Dbpf_jit.c464 const bool is32 = BPF_CLASS(insn->code) == BPF_ALU || BPF_CLASS(insn->code) == BPF_JMP32; in build_insn()
/openbmc/linux/net/core/
H A Dfilter.c661 if (BPF_CLASS(fp->code) == BPF_LD && in bpf_convert_filter()
665 if (BPF_CLASS(fp->code) == BPF_LD && in bpf_convert_filter()
819 *insn = BPF_STX_MEM(BPF_W, BPF_REG_FP, BPF_CLASS(fp->code) == in bpf_convert_filter()
834 *insn = BPF_LDX_MEM(BPF_W, BPF_CLASS(fp->code) == BPF_LD ? in bpf_convert_filter()
842 *insn = BPF_MOV32_IMM(BPF_CLASS(fp->code) == BPF_LD ? in bpf_convert_filter()
859 *insn = BPF_LDX_MEM(BPF_W, BPF_CLASS(fp->code) == BPF_LD ? in bpf_convert_filter()
9457 *insn++ = BPF_RAW_INSN(BPF_CLASS(si->code) | BPF_DW | BPF_MEM, in bpf_convert_tstamp_write()
9463 BPF_RAW_INSN(BPF_CLASS((si)->code) | (size) | BPF_MEM, \
9556 if (BPF_CLASS(si->code) == BPF_STX) in bpf_convert_ctx_access()
10133 *insn++ = BPF_RAW_INSN(SIZE | BPF_MEM | BPF_CLASS(si->code), \
[all …]
/openbmc/linux/arch/arm/net/
H A Dbpf_jit_32.c1358 const bool is64 = BPF_CLASS(code) == BPF_ALU64; in build_insn()
1724 BPF_CLASS(code) == BPF_JMP); in build_insn()

12