Home
last modified time | relevance | path

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

12

/openbmc/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),
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf_common.h35 #define BPF_DIV 0x30 macro
/openbmc/linux/include/uapi/linux/
H A Dbpf_common.h35 #define BPF_DIV 0x30 macro
/openbmc/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()
/openbmc/linux/kernel/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()
/openbmc/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()
/openbmc/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); }
/openbmc/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_comp.c238 case BPF_DIV: in valid_alu_i()
275 case BPF_DIV: in rewrite_alu_i()
387 case BPF_DIV: in emit_alu_r()
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()
/openbmc/linux/arch/s390/net/
H A Dbpf_jit_comp.c915 case BPF_ALU | BPF_DIV | BPF_X: /* dst = (u32) dst / (u32) src */ in bpf_jit_insn()
918 int rc_reg = BPF_OP(insn->code) == BPF_DIV ? REG_W1 : REG_W0; in bpf_jit_insn()
932 case BPF_ALU64 | BPF_DIV | BPF_X: /* dst = dst / src */ in bpf_jit_insn()
935 int rc_reg = BPF_OP(insn->code) == BPF_DIV ? REG_W1 : REG_W0; in bpf_jit_insn()
947 case BPF_ALU | BPF_DIV | BPF_K: /* dst = (u32) dst / (u32) imm */ in bpf_jit_insn()
950 int rc_reg = BPF_OP(insn->code) == BPF_DIV ? REG_W1 : REG_W0; in bpf_jit_insn()
982 case BPF_ALU64 | BPF_DIV | BPF_K: /* dst = dst / imm */ in bpf_jit_insn()
985 int rc_reg = BPF_OP(insn->code) == BPF_DIV ? REG_W1 : REG_W0; in bpf_jit_insn()
/openbmc/linux/arch/powerpc/net/
H A Dbpf_jit_comp64.c467 case BPF_ALU | BPF_DIV | BPF_X: /* (u32) dst /= (u32) src */ in bpf_jit_build_body()
476 case BPF_ALU64 | BPF_DIV | BPF_X: /* dst /= src */ in bpf_jit_build_body()
486 case BPF_ALU | BPF_DIV | BPF_K: /* (u32) dst /= (u32) imm */ in bpf_jit_build_body()
488 case BPF_ALU64 | BPF_DIV | BPF_K: /* dst /= imm */ in bpf_jit_build_body()
492 if (BPF_OP(code) == BPF_DIV) { in bpf_jit_build_body()
H A Dbpf_jit_comp32.c451 case BPF_ALU | BPF_DIV | BPF_X: /* (u32) dst /= (u32) src */ in bpf_jit_build_body()
459 case BPF_ALU64 | BPF_DIV | BPF_X: /* dst /= src */ in bpf_jit_build_body()
463 case BPF_ALU | BPF_DIV | BPF_K: /* (u32) dst /= (u32) imm */ in bpf_jit_build_body()
505 case BPF_ALU64 | BPF_DIV | BPF_K: /* dst /= imm */ in bpf_jit_build_body()
/openbmc/linux/arch/loongarch/net/
H A Dbpf_jit.c534 case BPF_ALU | BPF_DIV | BPF_X: in build_insn()
535 case BPF_ALU64 | BPF_DIV | BPF_X: in build_insn()
544 case BPF_ALU | BPF_DIV | BPF_K: in build_insn()
545 case BPF_ALU64 | BPF_DIV | BPF_K: in build_insn()
/openbmc/linux/arch/arm/net/
H A Dbpf_jit_32.c484 if (op == BPF_DIV) in emit_udivmod()
515 emit_mov_i(ARM_IP, op == BPF_DIV ? in emit_udivmod()
1447 case BPF_ALU | BPF_DIV | BPF_K: in build_insn()
1448 case BPF_ALU | BPF_DIV | BPF_X: in build_insn()
1469 case BPF_ALU64 | BPF_DIV | BPF_K: in build_insn()
1470 case BPF_ALU64 | BPF_DIV | BPF_X: in build_insn()
/openbmc/linux/lib/
H A Dtest_bpf.c579 case BPF_DIV: in __bpf_alu_result()
4467 BPF_ALU64_REG(BPF_DIV, R0, R2),
5833 BPF_ALU32_REG(BPF_DIV, R0, R1),
5845 BPF_ALU32_REG(BPF_DIV, R0, R1),
5857 BPF_ALU64_REG(BPF_DIV, R0, R1),
5869 BPF_ALU64_REG(BPF_DIV, R0, R1),
5882 BPF_ALU64_REG(BPF_DIV, R2, R4),
5898 BPF_ALU32_IMM(BPF_DIV, R0, 2),
5909 BPF_ALU32_IMM(BPF_DIV, R0, 1),
5947 BPF_ALU64_IMM(BPF_DIV, R0, 2),
[all …]
/openbmc/linux/arch/riscv/net/
H A Dbpf_jit_comp32.c541 case BPF_DIV: in emit_alu_r32()
999 case BPF_ALU64 | BPF_DIV | BPF_X: in bpf_jit_emit_insn()
1000 case BPF_ALU64 | BPF_DIV | BPF_K: in bpf_jit_emit_insn()
1032 case BPF_ALU | BPF_DIV | BPF_X: in bpf_jit_emit_insn()
1033 case BPF_ALU | BPF_DIV | BPF_K: in bpf_jit_emit_insn()
H A Dbpf_jit_comp64.c1149 case BPF_ALU | BPF_DIV | BPF_X: in bpf_jit_emit_insn()
1150 case BPF_ALU64 | BPF_DIV | BPF_X: in bpf_jit_emit_insn()
1332 case BPF_ALU | BPF_DIV | BPF_K: in bpf_jit_emit_insn()
1333 case BPF_ALU64 | BPF_DIV | BPF_K: in bpf_jit_emit_insn()
/openbmc/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()
/openbmc/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()
H A Dbpf_jit_comp_64.c944 case BPF_ALU | BPF_DIV | BPF_X: in build_insn()
950 case BPF_ALU64 | BPF_DIV | BPF_X: in build_insn()
1099 case BPF_ALU | BPF_DIV | BPF_K: in build_insn()
1106 case BPF_ALU64 | BPF_DIV | BPF_K: in build_insn()
/openbmc/linux/arch/x86/net/
H A Dbpf_jit_comp.c1220 case BPF_ALU | BPF_DIV | BPF_X: in do_jit()
1222 case BPF_ALU | BPF_DIV | BPF_K: in do_jit()
1224 case BPF_ALU64 | BPF_DIV | BPF_X: in do_jit()
1226 case BPF_ALU64 | BPF_DIV | BPF_K: { in do_jit()
1276 else if (BPF_OP(insn->code) == BPF_DIV && in do_jit()
H A Dbpf_jit_comp32.c1792 case BPF_ALU | BPF_DIV | BPF_K: in do_jit()
1793 case BPF_ALU | BPF_DIV | BPF_X: in do_jit()
1813 case BPF_ALU64 | BPF_DIV | BPF_K: in do_jit()
1814 case BPF_ALU64 | BPF_DIV | BPF_X: in do_jit()

12