Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/bpf/verifier/
A Ddiv0.c7 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 Ddiv_overflow.c10 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 Djit.c111 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 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),
A Dsearch_pruning.c183 BPF_ALU32_IMM(BPF_DIV, BPF_REG_3, 0),
198 BPF_ALU32_IMM(BPF_DIV, BPF_REG_3, 0),
A Dsubreg.c124 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 Dvalue_illegal_alu.c44 BPF_ALU64_IMM(BPF_DIV, BPF_REG_0, 42),
/linux/tools/include/uapi/linux/
A Dbpf_common.h35 #define BPF_DIV 0x30 macro
/linux/include/uapi/linux/
A Dbpf_common.h35 #define BPF_DIV 0x30 macro
/linux/arch/s390/net/
A Dbpf_jit_comp.c833 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 Dbpf_jit_comp64.c234 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 Dbpf_jit_comp.c234 case BPF_DIV: in valid_alu_i()
271 case BPF_DIV: in rewrite_alu_i()
383 case BPF_DIV: in emit_alu_r()
A Dbpf_jit_comp32.c548 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 Dbpf_jit_comp64.c399 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 Dbpf_jit_comp32.c407 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 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); }
/linux/arch/arm64/net/
A Dbpf_jit_comp.c490 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 Dbpf_jit_32.c484 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 Dtest_bpf.c578 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 Dbpf_jit_comp64.c592 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 Dbpf_jit_comp32.c541 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 Dbpf_jit_comp.c1009 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 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()
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/
A Dmain.h443 return is_mbpf_alu(meta) && mbpf_op(meta) == BPF_DIV; in is_mbpf_div()

Completed in 67 milliseconds

12