Home
last modified time | relevance | path

Searched refs:BPF_DIV (Results 1 – 25 of 27) 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.c80 [BPF_DIV >> 4] = "/=",
94 [BPF_DIV >> 4] = "s/=",
162 return (BPF_OP(insn->code) == BPF_DIV || BPF_OP(insn->code) == BPF_MOD) &&
/linux/kernel/bpf/
H A Ddisasm.c80 [BPF_DIV >> 4] = "/=",
94 [BPF_DIV >> 4] = "s/=",
162 return (BPF_OP(insn->code) == BPF_DIV || BPF_OP(insn->code) == BPF_MOD) && in is_sdiv_smod()
H A Dfixups.c1584 insn->code == (BPF_ALU64 | BPF_DIV | BPF_K) || in bpf_do_misc_fixups()
1586 insn->code == (BPF_ALU | BPF_DIV | BPF_K)) && in bpf_do_misc_fixups()
1589 bool isdiv = BPF_OP(insn->code) == BPF_DIV; in bpf_do_misc_fixups()
1613 insn->code == (BPF_ALU64 | BPF_DIV | BPF_X) || in bpf_do_misc_fixups()
1615 insn->code == (BPF_ALU | BPF_DIV | BPF_X)) { in bpf_do_misc_fixups()
1617 bool isdiv = BPF_OP(insn->code) == BPF_DIV; in bpf_do_misc_fixups()
H A Dcore.c1405 case BPF_ALU | BPF_DIV | BPF_K: in bpf_jit_blind_insn()
1419 case BPF_ALU64 | BPF_DIV | BPF_K: in bpf_jit_blind_insn()
/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/arch/mips/net/
H A Dbpf_jit_comp64.c237 case BPF_DIV: in emit_alu_r64()
696 case BPF_ALU | BPF_DIV | BPF_K: in build_insn()
731 case BPF_ALU | BPF_DIV | BPF_X: in build_insn()
770 case BPF_ALU64 | BPF_DIV | BPF_K: in build_insn()
799 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/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/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/arch/riscv/net/
H A Dbpf_jit_comp32.c544 case BPF_DIV: in emit_alu_r32()
1065 case BPF_ALU64 | BPF_DIV | BPF_X: in bpf_jit_emit_insn()
1066 case BPF_ALU64 | BPF_DIV | BPF_K: in bpf_jit_emit_insn()
1112 case BPF_ALU | BPF_DIV | BPF_X: in bpf_jit_emit_insn()
1113 case BPF_ALU | BPF_DIV | BPF_K: in bpf_jit_emit_insn()
H A Dbpf_jit_comp64.c1489 case BPF_ALU | BPF_DIV | BPF_X: in bpf_jit_emit_insn()
1490 case BPF_ALU64 | BPF_DIV | BPF_X: in bpf_jit_emit_insn()
1626 case BPF_ALU | BPF_DIV | BPF_K: in bpf_jit_emit_insn()
1627 case BPF_ALU64 | BPF_DIV | BPF_K: in bpf_jit_emit_insn()
/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/arch/loongarch/net/
H A Dbpf_jit.c813 case BPF_ALU | BPF_DIV | BPF_X: in build_insn()
814 case BPF_ALU64 | BPF_DIV | BPF_X: in build_insn()
831 case BPF_ALU | BPF_DIV | BPF_K: in build_insn()
832 case BPF_ALU64 | BPF_DIV | BPF_K: in build_insn()
/linux/arch/x86/net/
H A Dbpf_jit_comp.c2027 case BPF_ALU | BPF_DIV | BPF_X: in do_jit()
2029 case BPF_ALU | BPF_DIV | BPF_K: in do_jit()
2031 case BPF_ALU64 | BPF_DIV | BPF_X: in do_jit()
2033 case BPF_ALU64 | BPF_DIV | BPF_K: { in do_jit()
2083 else if (BPF_OP(insn->code) == BPF_DIV && in do_jit()
/linux/arch/arm64/net/
H A Dbpf_jit_comp.c1408 case BPF_ALU | BPF_DIV | BPF_X: in build_insn()
1409 case BPF_ALU64 | BPF_DIV | BPF_X: in build_insn()
1537 case BPF_ALU | BPF_DIV | BPF_K: in build_insn()
1538 case BPF_ALU64 | BPF_DIV | BPF_K: in build_insn()
/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?
/linux/net/core/
H A Dfilter.c668 case BPF_ALU | BPF_DIV | BPF_X: in bpf_convert_filter()
669 case BPF_ALU | BPF_DIV | BPF_K: in bpf_convert_filter()
693 if (fp->code == (BPF_ALU | BPF_DIV | BPF_X) || in bpf_convert_filter()
998 [BPF_ALU | BPF_DIV | BPF_K] = true, in chk_code_allowed()
999 [BPF_ALU | BPF_DIV | BPF_X] = true, in chk_code_allowed()
1095 case BPF_ALU | BPF_DIV | BPF_K: in bpf_check_classic()

12