Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/bpf/verifier/
H A Djit.c135 BPF_ALU64_REG(BPF_DIV, BPF_REG_0, BPF_REG_1),
140 BPF_ALU64_IMM(BPF_DIV, BPF_REG_3, 0xfefeeeULL),
158 BPF_ALU32_REG(BPF_DIV, BPF_REG_1, BPF_REG_3),
162 BPF_ALU32_REG(BPF_DIV, BPF_REG_1, BPF_REG_1),
H A Dld_abs.c171 BPF_ALU32_REG(BPF_DIV, BPF_REG_0, BPF_REG_2),
191 BPF_ALU32_REG(BPF_DIV, BPF_REG_0, BPF_REG_2),
211 BPF_ALU32_REG(BPF_DIV, BPF_REG_0, BPF_REG_7),
227 BPF_ALU32_REG(BPF_DIV, BPF_REG_0, BPF_REG_7),
/linux/include/uapi/linux/
H A Dbpf_common.h35 #define BPF_DIV 0x30 macro
/linux/tools/include/uapi/linux/
H A Dbpf_common.h35 #define BPF_DIV 0x30 macro
/linux/tools/testing/selftests/bpf/
H A Ddisasm.c77 [BPF_DIV >> 4] = "/=",
91 [BPF_DIV >> 4] = "s/=",
159 return (BPF_OP(insn->code) == BPF_DIV || BPF_OP(insn->code) == BPF_MOD) && in is_sdiv_smod()
/linux/arch/parisc/net/
H A Dbpf_jit_comp32.c340 if (BPF_OP(opcode) == BPF_DIV || BPF_OP(opcode) == BPF_MOD) { in emit_call_millicode()
341 if (BPF_OP(opcode) == BPF_DIV) in emit_call_millicode()
379 if (BPF_OP(opcode) == BPF_DIV || BPF_OP(opcode) == BPF_MOD) { in emit_call_libgcc_ll()
381 if (BPF_OP(opcode) == BPF_DIV) in emit_call_libgcc_ll()
606 case BPF_DIV: in emit_alu_r64()
668 case BPF_DIV: in emit_alu_r32()
1153 case BPF_ALU64 | BPF_DIV | BPF_X: in bpf_jit_emit_insn()
1154 case BPF_ALU64 | BPF_DIV | BPF_K: in bpf_jit_emit_insn()
1201 case BPF_ALU | BPF_DIV | BPF_X: in bpf_jit_emit_insn()
1202 case BPF_ALU | BPF_DIV | BPF_K: in bpf_jit_emit_insn()
H A Dbpf_jit_comp64.c533 if (BPF_OP(opcode) == BPF_DIV || BPF_OP(opcode) == BPF_MOD) { in emit_call_libgcc_ll()
534 if (BPF_OP(opcode) == BPF_DIV) in emit_call_libgcc_ll()
663 case BPF_ALU | BPF_DIV | BPF_K: in bpf_jit_emit_insn()
664 case BPF_ALU64 | BPF_DIV | BPF_K: in bpf_jit_emit_insn()
668 case BPF_ALU | BPF_DIV | BPF_X: in bpf_jit_emit_insn()
669 case BPF_ALU64 | BPF_DIV | BPF_X: in bpf_jit_emit_insn()
/linux/tools/bpf/
H A Dbpf_exp.y376 bpf_set_curr_instr(BPF_ALU | BPF_DIV | BPF_K, 0, 0, $3); }
378 bpf_set_curr_instr(BPF_ALU | BPF_DIV | BPF_X, 0, 0, 0); }
380 bpf_set_curr_instr(BPF_ALU | BPF_DIV | BPF_X, 0, 0, 0); }
H A Dbpf_dbg.c67 #define BPF_ALU_DIV (BPF_ALU | BPF_DIV)
/linux/arch/mips/net/
H A Dbpf_jit_comp64.c237 case BPF_DIV: in emit_alu_r64()
697 case BPF_ALU | BPF_DIV | BPF_K: in build_insn()
732 case BPF_ALU | BPF_DIV | BPF_X: in build_insn()
771 case BPF_ALU64 | BPF_DIV | BPF_K: in build_insn()
800 case BPF_ALU64 | BPF_DIV | BPF_X: in build_insn()
H A Dbpf_jit_comp32.c548 case BPF_DIV: in emit_divmod_r64()
1517 case BPF_ALU | BPF_DIV | BPF_K: in build_insn()
1547 case BPF_ALU | BPF_DIV | BPF_X: in build_insn()
1595 case BPF_ALU64 | BPF_DIV | BPF_K: in build_insn()
1630 case BPF_ALU64 | BPF_DIV | BPF_X: in build_insn()
/linux/io_uring/
H A Dbpf_filter.c208 case BPF_ALU | BPF_DIV | BPF_K: in io_uring_check_cbpf_filter()
209 case BPF_ALU | BPF_DIV | BPF_X: in io_uring_check_cbpf_filter()
/linux/lib/
H A Dtest_bpf.c500 BPF_SUB, BPF_MUL, BPF_DIV, BPF_MOD, in __bpf_fill_max_jmp()
614 case BPF_DIV: in __bpf_fill_alu_shift()
1129 return __bpf_fill_alu64_imm(self, BPF_DIV, 0); in bpf_fill_alu32_mul_imm()
1140 return __bpf_fill_alu64_imm(self, BPF_DIV, F_SIGNED); in bpf_fill_alu32_mod_imm()
1151 return __bpf_fill_alu32_imm(self, BPF_DIV, F_SIGNED); in bpf_fill_alu64_and_reg()
1197 return __bpf_fill_alu32_imm(self, BPF_DIV, 0); in bpf_fill_alu32_and_reg()
1243 return __bpf_fill_alu64_reg(self, BPF_DIV); in __bpf_fill_alu_imm_regs()
1289 return __bpf_fill_alu32_reg(self, BPF_DIV); in __bpf_fill_alu_imm_regs()
1421 return __bpf_fill_alu_imm_regs(self, BPF_DIV, 0); in __bpf_fill_alu_reg_pairs()
1432 return __bpf_fill_alu_imm_regs(self, BPF_DIV, F_SIGNE in __bpf_fill_alu_reg_pairs()
[all...]
/linux/arch/riscv/net/
H A Dbpf_jit_comp32.c541 case BPF_DIV: in emit_alu_r32()
998 case BPF_ALU64 | BPF_DIV | BPF_X: in bpf_jit_emit_insn()
999 case BPF_ALU64 | BPF_DIV | BPF_K: in bpf_jit_emit_insn()
1031 case BPF_ALU | BPF_DIV | BPF_X: in bpf_jit_emit_insn()
1032 case BPF_ALU | BPF_DIV | BPF_K: in bpf_jit_emit_insn()
H A Dbpf_jit_comp64.c1475 case BPF_ALU | BPF_DIV | BPF_X: in bpf_jit_emit_insn()
1476 case BPF_ALU64 | BPF_DIV | BPF_X: in bpf_jit_emit_insn()
1612 case BPF_ALU | BPF_DIV | BPF_K: in bpf_jit_emit_insn()
1613 case BPF_ALU64 | BPF_DIV | BPF_K: in bpf_jit_emit_insn()
/linux/arch/powerpc/net/
H A Dbpf_jit_comp64.c1070 case BPF_ALU | BPF_DIV | BPF_X: /* (u32) dst /= (u32) src */ in bpf_jit_build_body()
1086 case BPF_ALU64 | BPF_DIV | BPF_X: /* dst /= src */ in bpf_jit_build_body()
1102 case BPF_ALU | BPF_DIV | BPF_K: /* (u32) dst /= (u32) imm */ in bpf_jit_build_body()
1104 case BPF_ALU64 | BPF_DIV | BPF_K: /* dst /= imm */ in bpf_jit_build_body()
1108 if (BPF_OP(code) == BPF_DIV) { in bpf_jit_build_body()
/linux/arch/sparc/net/
H A Dbpf_jit_comp_32.c448 case BPF_ALU | BPF_DIV | BPF_K: /* A /= K with K != 0*/ in bpf_jit_compile()
461 case BPF_ALU | BPF_DIV | BPF_X: /* A /= X; */ in bpf_jit_compile()
/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Dmain.h443 return is_mbpf_alu(meta) && mbpf_op(meta) == BPF_DIV; in is_mbpf_div()
/linux/kernel/bpf/
H A Dfixups.c1535 insn->code == (BPF_ALU64 | BPF_DIV | BPF_K) || in bpf_do_misc_fixups()
1537 insn->code == (BPF_ALU | BPF_DIV | BPF_K)) && in bpf_do_misc_fixups()
1540 bool isdiv = BPF_OP(insn->code) == BPF_DIV; in bpf_do_misc_fixups()
1564 insn->code == (BPF_ALU64 | BPF_DIV | BPF_X) || in bpf_do_misc_fixups()
1566 insn->code == (BPF_ALU | BPF_DIV | BPF_X)) { in bpf_do_misc_fixups()
1568 bool isdiv = BPF_OP(insn->code) == BPF_DIV; in bpf_do_misc_fixups()
/linux/arch/loongarch/net/
H A Dbpf_jit.c810 case BPF_ALU | BPF_DIV | BPF_X: in build_insn()
811 case BPF_ALU64 | BPF_DIV | BPF_X: in build_insn()
828 case BPF_ALU | BPF_DIV | BPF_K: in build_insn()
829 case BPF_ALU64 | BPF_DIV | BPF_K: in build_insn()
/linux/arch/x86/net/
H A Dbpf_jit_comp.c1978 case BPF_ALU | BPF_DIV | BPF_X: in do_jit()
1980 case BPF_ALU | BPF_DIV | BPF_K: in do_jit()
1982 case BPF_ALU64 | BPF_DIV | BPF_X: in do_jit()
1984 case BPF_ALU64 | BPF_DIV | BPF_K: { in do_jit()
2034 else if (BPF_OP(insn->code) == BPF_DIV && in do_jit()
/linux/arch/arm64/net/
H A Dbpf_jit_comp.c1344 case BPF_ALU | BPF_DIV | BPF_X: in build_insn()
1345 case BPF_ALU64 | BPF_DIV | BPF_X: in build_insn()
1473 case BPF_ALU | BPF_DIV | BPF_K: in build_insn()
1474 case BPF_ALU64 | BPF_DIV | BPF_K: in build_insn()
/linux/kernel/
H A Dseccomp.c310 case BPF_ALU | BPF_DIV | BPF_K: in seccomp_check_filter()
311 case BPF_ALU | BPF_DIV | BPF_X: in seccomp_check_filter()
/linux/Documentation/bpf/
H A Dclassic_vs_extended.rst294 BPF_DIV 0x30
H A Dbpf_design_QA.rst137 Q: Why BPF_DIV instruction doesn't map to x64 div?

12