Home
last modified time | relevance | path

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

12

/linux-6.1.9/tools/testing/selftests/bpf/verifier/
Djit.c56 BPF_ALU64_REG(BPF_MUL, BPF_REG_0, BPF_REG_1),
61 BPF_ALU64_REG(BPF_MUL, BPF_REG_3, BPF_REG_1),
66 BPF_ALU64_IMM(BPF_MUL, BPF_REG_3, 0xefefef),
72 BPF_ALU32_REG(BPF_MUL, BPF_REG_0, BPF_REG_1),
77 BPF_ALU32_REG(BPF_MUL, BPF_REG_3, BPF_REG_1),
82 BPF_ALU32_IMM(BPF_MUL, BPF_REG_3, 0xefefef),
88 BPF_ALU32_IMM(BPF_MUL, BPF_REG_0, 0x2b),
95 BPF_ALU32_REG(BPF_MUL, BPF_REG_5, BPF_REG_1),
Dcgroup_inv_retcode.c66 BPF_ALU64_REG(BPF_MUL, BPF_REG_0, BPF_REG_2),
Dand.c40 BPF_ALU32_IMM(BPF_MUL, BPF_REG_3, 0x10000000),
Dsubreg.c91 BPF_ALU32_REG(BPF_MUL, BPF_REG_0, BPF_REG_1),
104 BPF_ALU32_IMM(BPF_MUL, BPF_REG_0, 1),
110 BPF_ALU32_IMM(BPF_MUL, BPF_REG_0, -1),
Dmasking.c293 BPF_ALU64_IMM(BPF_MUL, BPF_REG_3, -1),
310 BPF_ALU64_IMM(BPF_MUL, BPF_REG_3, -1),
Dbasic_instr.c9 BPF_ALU64_IMM(BPF_MUL, BPF_REG_1, 3),
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dalign.c113 BPF_ALU64_IMM(BPF_MUL, BPF_REG_3, 1),
114 BPF_ALU64_IMM(BPF_MUL, BPF_REG_3, 2),
115 BPF_ALU64_IMM(BPF_MUL, BPF_REG_3, 4),
184 BPF_ALU64_IMM(BPF_MUL, BPF_REG_4, 1),
186 BPF_ALU64_IMM(BPF_MUL, BPF_REG_4, 2),
188 BPF_ALU64_IMM(BPF_MUL, BPF_REG_4, 4),
190 BPF_ALU64_IMM(BPF_MUL, BPF_REG_4, 8),
191 BPF_ALU64_IMM(BPF_MUL, BPF_REG_4, 2),
/linux-6.1.9/tools/include/uapi/linux/
Dbpf_common.h34 #define BPF_MUL 0x20 macro
/linux-6.1.9/include/uapi/linux/
Dbpf_common.h34 #define BPF_MUL 0x20 macro
/linux-6.1.9/lib/
Dtest_bpf.c500 BPF_SUB, BPF_MUL, BPF_DIV, BPF_MOD, in __bpf_fill_max_jmp()
576 case BPF_MUL: in __bpf_alu_result()
1063 return __bpf_fill_alu64_imm(self, BPF_MUL); in bpf_fill_alu64_mul_imm()
1109 return __bpf_fill_alu32_imm(self, BPF_MUL); in bpf_fill_alu32_mul_imm()
1155 return __bpf_fill_alu64_reg(self, BPF_MUL); in bpf_fill_alu64_mul_reg()
1201 return __bpf_fill_alu32_reg(self, BPF_MUL); in bpf_fill_alu32_mul_reg()
1323 return __bpf_fill_alu_imm_regs(self, BPF_MUL, false); in bpf_fill_alu64_mul_imm_regs()
1384 return __bpf_fill_alu_imm_regs(self, BPF_MUL, true); in bpf_fill_alu32_mul_imm_regs()
1515 return __bpf_fill_alu_reg_pairs(self, BPF_MUL, false); in bpf_fill_alu64_mul_reg_pairs()
1576 return __bpf_fill_alu_reg_pairs(self, BPF_MUL, true); in bpf_fill_alu32_mul_reg_pairs()
[all …]
/linux-6.1.9/arch/mips/net/
Dbpf_jit_comp64.c225 case BPF_MUL: in emit_alu_r64()
693 case BPF_ALU | BPF_MUL | BPF_K: in build_insn()
728 case BPF_ALU | BPF_MUL | BPF_X: in build_insn()
767 case BPF_ALU64 | BPF_MUL | BPF_K: in build_insn()
796 case BPF_ALU64 | BPF_MUL | BPF_X: in build_insn()
Dbpf_jit_comp.c231 case BPF_MUL: in valid_alu_i()
258 case BPF_MUL: in rewrite_alu_i()
374 case BPF_MUL: in emit_alu_r()
/linux-6.1.9/tools/bpf/
Dbpf_exp.y367 bpf_set_curr_instr(BPF_ALU | BPF_MUL | BPF_K, 0, 0, $3); }
369 bpf_set_curr_instr(BPF_ALU | BPF_MUL | BPF_X, 0, 0, 0); }
371 bpf_set_curr_instr(BPF_ALU | BPF_MUL | BPF_X, 0, 0, 0); }
/linux-6.1.9/arch/powerpc/net/
Dbpf_jit_comp64.c429 case BPF_ALU | BPF_MUL | BPF_X: /* (u32) dst *= (u32) src */ in bpf_jit_build_body()
430 case BPF_ALU64 | BPF_MUL | BPF_X: /* dst *= src */ in bpf_jit_build_body()
436 case BPF_ALU | BPF_MUL | BPF_K: /* (u32) dst *= (u32) imm */ in bpf_jit_build_body()
437 case BPF_ALU64 | BPF_MUL | BPF_K: /* dst *= imm */ in bpf_jit_build_body()
Dbpf_jit_comp32.c371 case BPF_ALU64 | BPF_MUL | BPF_X: /* dst *= src */ in bpf_jit_build_body()
380 case BPF_ALU | BPF_MUL | BPF_X: /* (u32) dst *= (u32) src */ in bpf_jit_build_body()
383 case BPF_ALU | BPF_MUL | BPF_K: /* (u32) dst *= (u32) imm */ in bpf_jit_build_body()
391 case BPF_ALU64 | BPF_MUL | BPF_K: /* dst *= imm */ in bpf_jit_build_body()
/linux-6.1.9/arch/riscv/net/
Dbpf_jit_comp32.c450 case BPF_MUL: in emit_alu_r64()
538 case BPF_MUL: in emit_alu_r32()
982 case BPF_ALU64 | BPF_MUL | BPF_X: in bpf_jit_emit_insn()
983 case BPF_ALU64 | BPF_MUL | BPF_K: in bpf_jit_emit_insn()
1029 case BPF_ALU | BPF_MUL | BPF_X: in bpf_jit_emit_insn()
1030 case BPF_ALU | BPF_MUL | BPF_K: in bpf_jit_emit_insn()
Dbpf_jit_comp64.c687 case BPF_ALU | BPF_MUL | BPF_X: in bpf_jit_emit_insn()
688 case BPF_ALU64 | BPF_MUL | BPF_X: in bpf_jit_emit_insn()
861 case BPF_ALU | BPF_MUL | BPF_K: in bpf_jit_emit_insn()
862 case BPF_ALU64 | BPF_MUL | BPF_K: in bpf_jit_emit_insn()
/linux-6.1.9/arch/loongarch/net/
Dbpf_jit.c461 case BPF_ALU | BPF_MUL | BPF_X: in build_insn()
462 case BPF_ALU64 | BPF_MUL | BPF_X: in build_insn()
468 case BPF_ALU | BPF_MUL | BPF_K: in build_insn()
469 case BPF_ALU64 | BPF_MUL | BPF_K: in build_insn()
/linux-6.1.9/arch/s390/net/
Dbpf_jit_comp.c786 case BPF_ALU | BPF_MUL | BPF_X: /* dst = (u32) dst * (u32) src */ in bpf_jit_insn()
791 case BPF_ALU64 | BPF_MUL | BPF_X: /* dst = dst * src */ in bpf_jit_insn()
795 case BPF_ALU | BPF_MUL | BPF_K: /* dst = (u32) dst * (u32) imm */ in bpf_jit_insn()
802 case BPF_ALU64 | BPF_MUL | BPF_K: /* dst = dst * imm */ in bpf_jit_insn()
/linux-6.1.9/arch/arm/net/
Dbpf_jit_32.c697 case BPF_MUL: in emit_alu_r()
1414 case BPF_ALU | BPF_MUL | BPF_K: in build_insn()
1415 case BPF_ALU | BPF_MUL | BPF_X: in build_insn()
1528 case BPF_ALU64 | BPF_MUL | BPF_X: in build_insn()
1529 case BPF_ALU64 | BPF_MUL | BPF_K: in build_insn()
/linux-6.1.9/kernel/bpf/
Ddisasm.c76 [BPF_MUL >> 4] = "*=",
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/bpf/
Dmain.h438 return is_mbpf_alu(meta) && mbpf_op(meta) == BPF_MUL; in is_mbpf_mul()
/linux-6.1.9/arch/sparc/net/
Dbpf_jit_comp_32.c442 case BPF_ALU | BPF_MUL | BPF_X: /* A *= X; */ in bpf_jit_compile()
445 case BPF_ALU | BPF_MUL | BPF_K: /* A *= K */ in bpf_jit_compile()
Dbpf_jit_comp_64.c938 case BPF_ALU | BPF_MUL | BPF_X: in build_insn()
941 case BPF_ALU64 | BPF_MUL | BPF_X: in build_insn()
1093 case BPF_ALU | BPF_MUL | BPF_K: in build_insn()
1096 case BPF_ALU64 | BPF_MUL | BPF_K: in build_insn()
/linux-6.1.9/arch/x86/net/
Dbpf_jit_comp.c1092 case BPF_ALU | BPF_MUL | BPF_K: in do_jit()
1093 case BPF_ALU64 | BPF_MUL | BPF_K: in do_jit()
1108 case BPF_ALU | BPF_MUL | BPF_X: in do_jit()
1109 case BPF_ALU64 | BPF_MUL | BPF_X: in do_jit()

12