/openbmc/linux/tools/include/linux/ |
H A D | filter.h | 72 .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 D | bpf_common.h | 49 #define BPF_SRC(code) ((code) & 0x08) macro
|
/openbmc/linux/include/uapi/linux/ |
H A D | bpf_common.h | 49 #define BPF_SRC(code) ((code) & 0x08) macro
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | disasm.c | 144 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 D | disasm.c | 144 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 D | verifier.c | 3686 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 D | classic_vs_extended.rst | 279 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 D | bpf_jit_comp32.c | 1693 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 D | bpf_jit_comp.c | 1234 if (BPF_SRC(insn->code) == BPF_X) { in do_jit()
|
/openbmc/linux/arch/arm/net/ |
H A D | bpf_jit_32.c | 1381 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 D | main.h | 358 return BPF_SRC(meta->insn.code); in mbpf_src()
|
H A D | jit.c | 3926 if (BPF_SRC(insn.code) != BPF_K) in nfp_bpf_opt_neg_add_sub()
|
/openbmc/linux/include/linux/ |
H A D | filter.h | 140 .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 D | bpf_jit_comp64.c | 660 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 D | bpf_jit_comp32.c | 314 BPF_OP(prevcode) == BPF_MOV && BPF_SRC(prevcode) == BPF_X && in bpf_jit_build_body()
|
/openbmc/linux/arch/riscv/net/ |
H A D | bpf_jit_comp32.c | 988 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 D | bpf_jit_comp32.c | 1162 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 D | bpf_jit_comp.c | 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()
|
/openbmc/linux/arch/mips/net/ |
H A D | bpf_jit_comp64.c | 808 if (BPF_SRC(code) == in build_insn()
|
H A D | bpf_jit_comp32.c | 1638 if (BPF_SRC(code) == in build_insn()
|
/openbmc/linux/tools/lib/bpf/ |
H A D | relo_core.c | 1050 if (BPF_SRC(insn->code) != BPF_K) in bpf_core_patch_insn()
|
H A D | libbpf.c | 731 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 D | filter.c | 721 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()
|