/openbmc/linux/tools/testing/selftests/bpf/verifier/ |
H A D | jit.c | 135 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 D | ld_abs.c | 171 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 D | bpf_common.h | 35 #define BPF_DIV 0x30 macro
|
/openbmc/linux/include/uapi/linux/ |
H A D | bpf_common.h | 35 #define BPF_DIV 0x30 macro
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | disasm.c | 77 [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 D | disasm.c | 77 [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 D | bpf_jit_comp32.c | 340 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 D | bpf_jit_comp64.c | 533 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 D | bpf_exp.y | 376 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 D | bpf_jit_comp64.c | 237 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 D | bpf_jit_comp.c | 238 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 D | bpf_jit_comp32.c | 548 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 D | bpf_jit_comp.c | 915 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 D | bpf_jit_comp64.c | 467 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 D | bpf_jit_comp32.c | 451 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 D | bpf_jit.c | 534 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 D | bpf_jit_32.c | 484 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 D | test_bpf.c | 579 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 D | bpf_jit_comp32.c | 541 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 D | bpf_jit_comp64.c | 1149 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 D | main.h | 443 return is_mbpf_alu(meta) && mbpf_op(meta) == BPF_DIV; in is_mbpf_div()
|
/openbmc/linux/arch/sparc/net/ |
H A D | bpf_jit_comp_32.c | 448 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 D | bpf_jit_comp_64.c | 944 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 D | bpf_jit_comp.c | 1220 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 D | bpf_jit_comp32.c | 1792 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()
|