Home
last modified time | relevance | path

Searched refs:BPF_SRC (Results 1 – 23 of 23) sorted by relevance

/openbmc/linux/tools/include/linux/
H A Dfilter.h72 .code = BPF_ALU | BPF_END | BPF_SRC(TYPE), \
118 .code = BPF_ALU64 | BPF_MOV | BPF_SRC(TYPE), \
126 .code = BPF_ALU | BPF_MOV | BPF_SRC(TYPE), \
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf_common.h49 #define BPF_SRC(code) ((code) & 0x08) macro
/openbmc/linux/include/uapi/linux/
H A Dbpf_common.h49 #define BPF_SRC(code) ((code) & 0x08) macro
/openbmc/linux/tools/testing/selftests/bpf/
H A Ddisasm.c144 BPF_SRC(insn->code) == BPF_TO_BE ? "be" : "le", in print_bpf_end_insn()
187 } else if (BPF_SRC(insn->code) == BPF_X) { in print_bpf_insn()
330 } else if (BPF_SRC(insn->code) == BPF_X) { in print_bpf_insn()
/openbmc/linux/kernel/bpf/
H A Ddisasm.c144 BPF_SRC(insn->code) == BPF_TO_BE ? "be" : "le", in print_bpf_end_insn()
187 } else if (BPF_SRC(insn->code) == BPF_X) { in print_bpf_insn()
330 } else if (BPF_SRC(insn->code) == BPF_X) { in print_bpf_insn()
H A Dverifier.c3686 if (BPF_SRC(insn->code) == BPF_X) { in backtrack_insn()
3704 if (BPF_SRC(insn->code) == BPF_X) { in backtrack_insn()
12240 if (BPF_SRC(insn->code) == BPF_K) { in sanitize_speculative_path()
13450 if (BPF_SRC(insn->code) == BPF_X) { in adjust_reg_min_max_vals()
13559 if (BPF_SRC(insn->code) == BPF_X) { in check_alu_op()
13594 if (BPF_SRC(insn->code) == BPF_X) { in check_alu_op()
14368 if (BPF_SRC(insn->code) != BPF_X) in try_match_pkt_pointers()
14504 if (BPF_SRC(insn->code) == BPF_X) { in check_cond_jmp_op()
14531 if (BPF_SRC(insn->code) == BPF_K) { in check_cond_jmp_op()
14617 if (BPF_SRC(insn->code) == BPF_X) { in check_cond_jmp_op()
[all …]
/openbmc/linux/Documentation/bpf/
H A Dclassic_vs_extended.rst279 BPF_SRC(code) == BPF_X - use register X as source operand
280 BPF_SRC(code) == BPF_K - use 32-bit immediate as source operand
284 BPF_SRC(code) == BPF_X - use 'src_reg' register as source operand
285 BPF_SRC(code) == BPF_K - use 32-bit immediate as source operand
/openbmc/linux/arch/x86/net/
H A Dbpf_jit_comp32.c1693 switch (BPF_SRC(code)) { in do_jit()
1738 switch (BPF_SRC(code)) { in do_jit()
1753 switch (BPF_SRC(code)) { in do_jit()
1773 switch (BPF_SRC(code)) { in do_jit()
1796 switch (BPF_SRC(code)) { in do_jit()
1875 switch (BPF_SRC(code)) { in do_jit()
H A Dbpf_jit_comp.c1234 if (BPF_SRC(insn->code) == BPF_X) { in do_jit()
/openbmc/linux/arch/arm/net/
H A Dbpf_jit_32.c1381 switch (BPF_SRC(code)) { in build_insn()
1429 switch (BPF_SRC(code)) { in build_insn()
1452 switch (BPF_SRC(code)) { in build_insn()
1530 switch (BPF_SRC(code)) { in build_insn()
1551 if (BPF_SRC(code) == BPF_FROM_LE) in build_insn()
/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Dmain.h358 return BPF_SRC(meta->insn.code); in mbpf_src()
H A Djit.c3926 if (BPF_SRC(insn.code) != BPF_K) in nfp_bpf_opt_neg_add_sub()
/openbmc/linux/include/linux/
H A Dfilter.h140 .code = BPF_ALU | BPF_END | BPF_SRC(TYPE), \
222 .code = BPF_ALU64 | BPF_MOV | BPF_SRC(TYPE), \
230 .code = BPF_ALU | BPF_MOV | BPF_SRC(TYPE), \
/openbmc/linux/arch/powerpc/net/
H A Dbpf_jit_comp64.c660 if (BPF_SRC(code) == BPF_FROM_BE) in bpf_jit_build_body()
663 if (BPF_SRC(code) == BPF_FROM_LE) in bpf_jit_build_body()
H A Dbpf_jit_comp32.c314 BPF_OP(prevcode) == BPF_MOV && BPF_SRC(prevcode) == BPF_X && in bpf_jit_build_body()
/openbmc/linux/arch/riscv/net/
H A Dbpf_jit_comp32.c988 if (BPF_SRC(code) == BPF_K) { in bpf_jit_emit_insn()
1041 if (BPF_SRC(code) == BPF_K) { in bpf_jit_emit_insn()
1210 if (BPF_SRC(code) == BPF_K) { in bpf_jit_emit_insn()
/openbmc/linux/arch/parisc/net/
H A Dbpf_jit_comp32.c1162 if (BPF_SRC(code) == BPF_K) { in bpf_jit_emit_insn()
1210 if (BPF_SRC(code) == BPF_K) { in bpf_jit_emit_insn()
1379 if (BPF_SRC(code) == BPF_K) { in bpf_jit_emit_insn()
/openbmc/linux/arch/arm64/net/
H A Dbpf_jit_comp.c866 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()
/openbmc/linux/arch/mips/net/
H A Dbpf_jit_comp64.c808 if (BPF_SRC(code) == in build_insn()
H A Dbpf_jit_comp32.c1638 if (BPF_SRC(code) == in build_insn()
/openbmc/linux/tools/lib/bpf/
H A Drelo_core.c1050 if (BPF_SRC(insn->code) != BPF_K) in bpf_core_patch_insn()
H A Dlibbpf.c731 BPF_SRC(insn->code) == BPF_K && in insn_is_subprog_call()
6776 BPF_SRC(insn->code) == BPF_K && in insn_is_helper_call()
/openbmc/linux/net/core/
H A Dfilter.c721 if (BPF_SRC(fp->code) == BPF_K && (int) fp->k < 0) { in bpf_convert_filter()
734 bpf_src = BPF_SRC(fp->code); in bpf_convert_filter()