Home
last modified time | relevance | path

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

12

/openbmc/linux/tools/testing/selftests/bpf/verifier/
H A Datomic_or.c55 BPF_ALU64_IMM(BPF_SUB, BPF_REG_0, 1),
83 BPF_ALU64_IMM(BPF_SUB, BPF_REG_1, 1),
92 BPF_ALU64_IMM(BPF_SUB, BPF_REG_2, 1),
H A Datomic_cmpxchg.c91 BPF_ALU64_IMM(BPF_SUB, BPF_REG_0, 1),
100 BPF_ALU64_IMM(BPF_SUB, BPF_REG_1, 1),
H A Dbpf_st_mem.c49 BPF_ALU64_IMM(BPF_SUB, BPF_REG_0, 32),
H A Datomic_xor.c55 BPF_ALU64_IMM(BPF_SUB, BPF_REG_0, 1),
H A Dld_abs.c136 BPF_ALU32_REG(BPF_SUB, BPF_REG_0, BPF_REG_7),
149 BPF_ALU32_REG(BPF_SUB, BPF_REG_0, BPF_REG_7),
H A Dprecise.c25 BPF_ALU64_REG(BPF_SUB, BPF_REG_9, BPF_REG_8), /* map_value_ptr -= map_value_ptr */
84 BPF_ALU64_REG(BPF_SUB, BPF_REG_9, BPF_REG_8), /* map_value_ptr -= map_value_ptr */
H A Datomic_and.c55 BPF_ALU64_IMM(BPF_SUB, BPF_REG_0, 1),
H A Dbasic_instr.c7 BPF_ALU64_REG(BPF_SUB, BPF_REG_1, BPF_REG_2),
/openbmc/linux/lib/
H A Dtest_bpf.c573 case BPF_SUB: in __bpf_alu_result()
3711 BPF_ALU64_REG(BPF_SUB, R1, R2),
5535 BPF_ALU32_IMM(BPF_SUB, R0, 1),
5546 BPF_ALU32_IMM(BPF_SUB, R0, 0),
5568 BPF_ALU64_IMM(BPF_SUB, R0, 1),
5579 BPF_ALU64_IMM(BPF_SUB, R0, 0),
9570 BPF_ALU64_IMM(BPF_SUB, R1, 1),
9572 BPF_ALU64_IMM(BPF_SUB, R1, 1),
9574 BPF_ALU64_IMM(BPF_SUB, R1, 1),
9590 BPF_ALU64_IMM(BPF_SUB, R1, 2),
[all …]
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf_common.h33 #define BPF_SUB 0x10 macro
/openbmc/linux/include/uapi/linux/
H A Dbpf_common.h33 #define BPF_SUB 0x10 macro
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dalign.c438 BPF_ALU64_REG(BPF_SUB, BPF_REG_5, BPF_REG_2),
495 BPF_ALU64_REG(BPF_SUB, BPF_REG_6, BPF_REG_7),
548 BPF_ALU64_REG(BPF_SUB, BPF_REG_5, BPF_REG_6),
/openbmc/linux/arch/mips/net/
H A Dbpf_jit_comp32.c213 op = BPF_SUB; in emit_alu_i64()
216 case BPF_SUB: in emit_alu_i64()
235 case BPF_SUB: in emit_alu_i64()
284 case BPF_SUB: in emit_alu_r64()
744 case BPF_SUB: in emit_atomic_r32()
747 case BPF_SUB | BPF_FETCH: in emit_atomic_r32()
825 case BPF_SUB: in emit_atomic_r64()
828 case BPF_SUB | BPF_FETCH: in emit_atomic_r64()
1515 case BPF_ALU | BPF_SUB | BPF_K: in build_insn()
1545 case BPF_ALU | BPF_SUB | BPF_X: in build_insn()
[all …]
H A Dbpf_jit_comp64.c190 case BPF_SUB: in emit_alu_i64()
221 case BPF_SUB: in emit_alu_r64()
695 case BPF_ALU | BPF_SUB | BPF_K: in build_insn()
730 case BPF_ALU | BPF_SUB | BPF_X: in build_insn()
769 case BPF_ALU64 | BPF_SUB | BPF_K: in build_insn()
798 case BPF_ALU64 | BPF_SUB | BPF_X: in build_insn()
H A Dbpf_jit_comp.c225 case BPF_SUB: in valid_alu_i()
256 case BPF_SUB: in rewrite_alu_i()
334 case BPF_SUB: in emit_alu_i()
374 case BPF_SUB: in emit_alu_r()
/openbmc/linux/tools/bpf/
H A Dbpf_exp.y358 bpf_set_curr_instr(BPF_ALU | BPF_SUB | BPF_K, 0, 0, $3); }
360 bpf_set_curr_instr(BPF_ALU | BPF_SUB | BPF_X, 0, 0, 0); }
362 bpf_set_curr_instr(BPF_ALU | BPF_SUB | BPF_X, 0, 0, 0); }
/openbmc/linux/arch/riscv/net/
H A Dbpf_jit_comp32.c345 case BPF_SUB: in emit_alu_i32()
432 case BPF_SUB: in emit_alu_r64()
526 case BPF_SUB: in emit_alu_r32()
975 case BPF_ALU64 | BPF_SUB | BPF_X: in bpf_jit_emit_insn()
976 case BPF_ALU64 | BPF_SUB | BPF_K: in bpf_jit_emit_insn()
1024 case BPF_ALU | BPF_SUB | BPF_X: in bpf_jit_emit_insn()
1050 case BPF_ALU | BPF_SUB | BPF_K: in bpf_jit_emit_insn()
/openbmc/linux/arch/parisc/net/
H A Dbpf_jit_comp32.c529 case BPF_SUB: in emit_alu_i32()
587 case BPF_SUB: in emit_alu_r64()
653 case BPF_SUB: in emit_alu_r32()
1143 case BPF_ALU64 | BPF_SUB | BPF_X: in bpf_jit_emit_insn()
1144 case BPF_ALU64 | BPF_SUB | BPF_K: in bpf_jit_emit_insn()
1193 case BPF_ALU | BPF_SUB | BPF_X: in bpf_jit_emit_insn()
1220 case BPF_ALU | BPF_SUB | BPF_K: in bpf_jit_emit_insn()
H A Dbpf_jit_comp64.c628 case BPF_ALU | BPF_SUB | BPF_X: in bpf_jit_emit_insn()
629 case BPF_ALU64 | BPF_SUB | BPF_X: in bpf_jit_emit_insn()
790 case BPF_ALU | BPF_SUB | BPF_K: in bpf_jit_emit_insn()
791 case BPF_ALU64 | BPF_SUB | BPF_K: in bpf_jit_emit_insn()
/openbmc/linux/arch/powerpc/net/
H A Dbpf_jit_comp32.c359 case BPF_ALU | BPF_SUB | BPF_X: /* (u32) dst -= (u32) src */ in bpf_jit_build_body()
362 case BPF_ALU64 | BPF_SUB | BPF_X: /* dst -= src */ in bpf_jit_build_body()
366 case BPF_ALU | BPF_SUB | BPF_K: /* (u32) dst -= (u32) imm */ in bpf_jit_build_body()
379 case BPF_ALU64 | BPF_SUB | BPF_K: /* dst -= imm */ in bpf_jit_build_body()
394 if (imm >= 0 || (BPF_OP(code) == BPF_SUB && imm == 0x80000000)) in bpf_jit_build_body()
H A Dbpf_jit_comp64.c422 case BPF_ALU | BPF_SUB | BPF_X: /* (u32) dst -= (u32) src */ in bpf_jit_build_body()
423 case BPF_ALU64 | BPF_SUB | BPF_X: /* dst -= src */ in bpf_jit_build_body()
437 case BPF_ALU | BPF_SUB | BPF_K: /* (u32) dst -= (u32) imm */ in bpf_jit_build_body()
438 case BPF_ALU64 | BPF_SUB | BPF_K: /* dst -= imm */ in bpf_jit_build_body()
/openbmc/linux/arch/loongarch/net/
H A Dbpf_jit.c500 case BPF_ALU | BPF_SUB | BPF_X: in build_insn()
501 case BPF_ALU64 | BPF_SUB | BPF_X: in build_insn()
507 case BPF_ALU | BPF_SUB | BPF_K: in build_insn()
508 case BPF_ALU64 | BPF_SUB | BPF_K: in build_insn()
/openbmc/linux/arch/x86/net/
H A Dbpf_jit_comp32.c549 case BPF_SUB: in emit_ia32_alu_r()
630 case BPF_SUB: in emit_ia32_alu_i()
1720 case BPF_ALU | BPF_SUB | BPF_K: in do_jit()
1721 case BPF_ALU | BPF_SUB | BPF_X: in do_jit()
1730 case BPF_ALU64 | BPF_SUB | BPF_K: in do_jit()
1731 case BPF_ALU64 | BPF_SUB | BPF_X: in do_jit()
H A Dbpf_jit_comp.c267 [BPF_SUB] = 0x29,
1123 case BPF_ALU | BPF_SUB | BPF_X: in do_jit()
1128 case BPF_ALU64 | BPF_SUB | BPF_X: in do_jit()
1159 case BPF_ALU | BPF_SUB | BPF_K: in do_jit()
1164 case BPF_ALU64 | BPF_SUB | BPF_K: in do_jit()
1180 case BPF_SUB: in do_jit()
/openbmc/linux/arch/arm/net/
H A Dbpf_jit_32.c681 case BPF_SUB: in emit_alu_r()
1406 case BPF_ALU | BPF_SUB | BPF_K: in build_insn()
1407 case BPF_ALU | BPF_SUB | BPF_X: in build_insn()
1421 case BPF_ALU64 | BPF_SUB | BPF_K: in build_insn()
1422 case BPF_ALU64 | BPF_SUB | BPF_X: in build_insn()

12