/linux/tools/testing/selftests/bpf/verifier/ |
A D | div0.c | 7 BPF_ALU32_REG(BPF_DIV, BPF_REG_2, BPF_REG_1), 19 BPF_ALU32_REG(BPF_DIV, BPF_REG_2, BPF_REG_1), 31 BPF_ALU64_REG(BPF_DIV, BPF_REG_2, BPF_REG_1), 79 BPF_ALU32_REG(BPF_DIV, BPF_REG_2, BPF_REG_1), 92 BPF_ALU32_REG(BPF_DIV, BPF_REG_0, BPF_REG_1), 104 BPF_ALU32_REG(BPF_DIV, BPF_REG_0, BPF_REG_1), 116 BPF_ALU64_REG(BPF_DIV, BPF_REG_0, BPF_REG_1),
|
A D | div_overflow.c | 10 BPF_ALU32_REG(BPF_DIV, BPF_REG_0, BPF_REG_1), 21 BPF_ALU32_IMM(BPF_DIV, BPF_REG_0, -1), 33 BPF_ALU64_REG(BPF_DIV, BPF_REG_2, BPF_REG_1), 47 BPF_ALU64_IMM(BPF_DIV, BPF_REG_1, -1),
|
A D | jit.c | 111 BPF_ALU64_REG(BPF_DIV, BPF_REG_0, BPF_REG_1), 116 BPF_ALU64_IMM(BPF_DIV, BPF_REG_3, 0xfefeeeULL), 134 BPF_ALU32_REG(BPF_DIV, BPF_REG_1, BPF_REG_3), 138 BPF_ALU32_REG(BPF_DIV, BPF_REG_1, BPF_REG_1),
|
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),
|
A D | search_pruning.c | 183 BPF_ALU32_IMM(BPF_DIV, BPF_REG_3, 0), 198 BPF_ALU32_IMM(BPF_DIV, BPF_REG_3, 0),
|
A D | subreg.c | 124 BPF_ALU32_REG(BPF_DIV, BPF_REG_0, BPF_REG_1), 137 BPF_ALU32_IMM(BPF_DIV, BPF_REG_0, 1), 143 BPF_ALU32_IMM(BPF_DIV, BPF_REG_0, 2),
|
A D | value_illegal_alu.c | 44 BPF_ALU64_IMM(BPF_DIV, BPF_REG_0, 42),
|
/linux/tools/include/uapi/linux/ |
A D | bpf_common.h | 35 #define BPF_DIV 0x30 macro
|
/linux/include/uapi/linux/ |
A D | bpf_common.h | 35 #define BPF_DIV 0x30 macro
|
/linux/arch/s390/net/ |
A D | bpf_jit_comp.c | 833 case BPF_ALU | BPF_DIV | BPF_X: /* dst = (u32) dst / (u32) src */ in bpf_jit_insn() 836 int rc_reg = BPF_OP(insn->code) == BPF_DIV ? REG_W1 : REG_W0; in bpf_jit_insn() 850 case BPF_ALU64 | BPF_DIV | BPF_X: /* dst = dst / src */ in bpf_jit_insn() 853 int rc_reg = BPF_OP(insn->code) == BPF_DIV ? REG_W1 : REG_W0; in bpf_jit_insn() 865 case BPF_ALU | BPF_DIV | BPF_K: /* dst = (u32) dst / (u32) imm */ in bpf_jit_insn() 868 int rc_reg = BPF_OP(insn->code) == BPF_DIV ? REG_W1 : REG_W0; in bpf_jit_insn() 900 case BPF_ALU64 | BPF_DIV | BPF_K: /* dst = dst / imm */ in bpf_jit_insn() 903 int rc_reg = BPF_OP(insn->code) == BPF_DIV ? REG_W1 : REG_W0; in bpf_jit_insn()
|
/linux/arch/mips/net/ |
A D | bpf_jit_comp64.c | 234 case BPF_DIV: in emit_alu_r64() 686 case BPF_ALU | BPF_DIV | BPF_K: in build_insn() 721 case BPF_ALU | BPF_DIV | BPF_X: in build_insn() 760 case BPF_ALU64 | BPF_DIV | BPF_K: in build_insn() 789 case BPF_ALU64 | BPF_DIV | BPF_X: in build_insn()
|
A D | bpf_jit_comp.c | 234 case BPF_DIV: in valid_alu_i() 271 case BPF_DIV: in rewrite_alu_i() 383 case BPF_DIV: in emit_alu_r()
|
A D | bpf_jit_comp32.c | 548 case BPF_DIV: in emit_divmod_r64() 1510 case BPF_ALU | BPF_DIV | BPF_K: in build_insn() 1540 case BPF_ALU | BPF_DIV | BPF_X: in build_insn() 1588 case BPF_ALU64 | BPF_DIV | BPF_K: in build_insn() 1623 case BPF_ALU64 | BPF_DIV | BPF_X: in build_insn()
|
/linux/arch/powerpc/net/ |
A D | bpf_jit_comp64.c | 399 case BPF_ALU | BPF_DIV | BPF_X: /* (u32) dst /= (u32) src */ in bpf_jit_build_body() 409 case BPF_ALU64 | BPF_DIV | BPF_X: /* dst /= src */ in bpf_jit_build_body() 420 case BPF_ALU | BPF_DIV | BPF_K: /* (u32) dst /= (u32) imm */ in bpf_jit_build_body() 422 case BPF_ALU64 | BPF_DIV | BPF_K: /* dst /= imm */ in bpf_jit_build_body() 426 if (BPF_OP(code) == BPF_DIV) { in bpf_jit_build_body()
|
A D | bpf_jit_comp32.c | 407 case BPF_ALU | BPF_DIV | BPF_X: /* (u32) dst /= (u32) src */ in bpf_jit_build_body() 415 case BPF_ALU64 | BPF_DIV | BPF_X: /* dst /= src */ in bpf_jit_build_body() 419 case BPF_ALU | BPF_DIV | BPF_K: /* (u32) dst /= (u32) imm */ in bpf_jit_build_body() 459 case BPF_ALU64 | BPF_DIV | BPF_K: /* dst /= imm */ in bpf_jit_build_body()
|
/linux/tools/bpf/ |
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); }
|
/linux/arch/arm64/net/ |
A D | bpf_jit_comp.c | 490 case BPF_ALU | BPF_DIV | BPF_X: in build_insn() 491 case BPF_ALU64 | BPF_DIV | BPF_X: in build_insn() 619 case BPF_ALU | BPF_DIV | BPF_K: in build_insn() 620 case BPF_ALU64 | BPF_DIV | BPF_K: in build_insn()
|
/linux/arch/arm/net/ |
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() 1462 case BPF_ALU | BPF_DIV | BPF_K: in build_insn() 1463 case BPF_ALU | BPF_DIV | BPF_X: in build_insn() 1484 case BPF_ALU64 | BPF_DIV | BPF_K: in build_insn() 1485 case BPF_ALU64 | BPF_DIV | BPF_X: in build_insn()
|
/linux/lib/ |
A D | test_bpf.c | 578 case BPF_DIV: in __bpf_alu_result() 4466 BPF_ALU64_REG(BPF_DIV, R0, R2), 5832 BPF_ALU32_REG(BPF_DIV, R0, R1), 5844 BPF_ALU32_REG(BPF_DIV, R0, R1), 5856 BPF_ALU64_REG(BPF_DIV, R0, R1), 5868 BPF_ALU64_REG(BPF_DIV, R0, R1), 5881 BPF_ALU64_REG(BPF_DIV, R2, R4), 5897 BPF_ALU32_IMM(BPF_DIV, R0, 2), 5908 BPF_ALU32_IMM(BPF_DIV, R0, 1), 5946 BPF_ALU64_IMM(BPF_DIV, R0, 2), [all …]
|
/linux/arch/riscv/net/ |
A D | bpf_jit_comp64.c | 592 case BPF_ALU | BPF_DIV | BPF_X: in bpf_jit_emit_insn() 593 case BPF_ALU64 | BPF_DIV | BPF_X: in bpf_jit_emit_insn() 768 case BPF_ALU | BPF_DIV | BPF_K: in bpf_jit_emit_insn() 769 case BPF_ALU64 | BPF_DIV | BPF_K: in bpf_jit_emit_insn()
|
A D | bpf_jit_comp32.c | 541 case BPF_DIV: in emit_alu_r32() 1001 case BPF_ALU64 | BPF_DIV | BPF_X: in bpf_jit_emit_insn() 1002 case BPF_ALU64 | BPF_DIV | BPF_K: in bpf_jit_emit_insn() 1034 case BPF_ALU | BPF_DIV | BPF_X: in bpf_jit_emit_insn() 1035 case BPF_ALU | BPF_DIV | BPF_K: in bpf_jit_emit_insn()
|
/linux/arch/x86/net/ |
A D | bpf_jit_comp.c | 1009 case BPF_ALU | BPF_DIV | BPF_X: in do_jit() 1011 case BPF_ALU | BPF_DIV | BPF_K: in do_jit() 1013 case BPF_ALU64 | BPF_DIV | BPF_X: in do_jit() 1015 case BPF_ALU64 | BPF_DIV | BPF_K: { in do_jit() 1054 else if (BPF_OP(insn->code) == BPF_DIV && in do_jit()
|
/linux/arch/sparc/net/ |
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()
|
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()
|
/linux/drivers/net/ethernet/netronome/nfp/bpf/ |
A D | main.h | 443 return is_mbpf_alu(meta) && mbpf_op(meta) == BPF_DIV; in is_mbpf_div()
|