Home
last modified time | relevance | path

Searched refs:BPF_MOD (Results 1 – 25 of 31) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/bpf/verifier/
H A Djit.c145 BPF_ALU64_IMM(BPF_MOD, BPF_REG_1, 0xbeefULL),
151 BPF_ALU64_REG(BPF_MOD, BPF_REG_1, BPF_REG_3),
166 BPF_ALU64_REG(BPF_MOD, BPF_REG_2, BPF_REG_2),
H A Dprecise.c230 BPF_ALU64_IMM(BPF_MOD, BPF_REG_6, 0x401),
233 BPF_ALU64_IMM(BPF_MOD, BPF_REG_6, 1),
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf_common.h41 #define BPF_MOD 0x90 macro
/openbmc/linux/include/uapi/linux/
H A Dbpf_common.h41 #define BPF_MOD 0x90 macro
/openbmc/linux/arch/powerpc/net/
H A Dbpf_jit_comp64.c468 case BPF_ALU | BPF_MOD | BPF_X: /* (u32) dst %= (u32) src */ in bpf_jit_build_body()
469 if (BPF_OP(code) == BPF_MOD) { in bpf_jit_build_body()
477 case BPF_ALU64 | BPF_MOD | BPF_X: /* dst %= src */ in bpf_jit_build_body()
478 if (BPF_OP(code) == BPF_MOD) { in bpf_jit_build_body()
485 case BPF_ALU | BPF_MOD | BPF_K: /* (u32) dst %= (u32) imm */ in bpf_jit_build_body()
487 case BPF_ALU64 | BPF_MOD | BPF_K: /* dst %= imm */ in bpf_jit_build_body()
503 if (BPF_OP(code) == BPF_MOD) { in bpf_jit_build_body()
511 if (BPF_OP(code) == BPF_MOD) { in bpf_jit_build_body()
H A Dbpf_jit_comp32.c454 case BPF_ALU | BPF_MOD | BPF_X: /* (u32) dst %= (u32) src */ in bpf_jit_build_body()
461 case BPF_ALU64 | BPF_MOD | BPF_X: /* dst %= src */ in bpf_jit_build_body()
475 case BPF_ALU | BPF_MOD | BPF_K: /* (u32) dst %= (u32) imm */ in bpf_jit_build_body()
492 case BPF_ALU64 | BPF_MOD | BPF_K: /* dst %= imm */ in bpf_jit_build_body()
/openbmc/linux/tools/testing/selftests/bpf/
H A Ddisasm.c83 [BPF_MOD >> 4] = "%=",
92 [BPF_MOD >> 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.c83 [BPF_MOD >> 4] = "%=",
92 [BPF_MOD >> 4] = "s%=",
159 return (BPF_OP(insn->code) == BPF_DIV || BPF_OP(insn->code) == BPF_MOD) && in is_sdiv_smod()
/openbmc/linux/tools/bpf/
H A Dbpf_exp.y385 bpf_set_curr_instr(BPF_ALU | BPF_MOD | BPF_K, 0, 0, $3); }
387 bpf_set_curr_instr(BPF_ALU | BPF_MOD | BPF_X, 0, 0, 0); }
389 bpf_set_curr_instr(BPF_ALU | BPF_MOD | BPF_X, 0, 0, 0); }
/openbmc/linux/arch/mips/net/
H A Dbpf_jit_comp64.c246 case BPF_MOD: in emit_alu_r64()
698 case BPF_ALU | BPF_MOD | BPF_K: in build_insn()
733 case BPF_ALU | BPF_MOD | BPF_X: in build_insn()
772 case BPF_ALU64 | BPF_MOD | BPF_K: in build_insn()
801 case BPF_ALU64 | BPF_MOD | BPF_X: in build_insn()
H A Dbpf_jit_comp.c239 case BPF_MOD: in valid_alu_i()
285 case BPF_MOD: in rewrite_alu_i()
396 case BPF_MOD: in emit_alu_r()
H A Dbpf_jit_comp32.c552 case BPF_MOD: in emit_divmod_r64()
1518 case BPF_ALU | BPF_MOD | BPF_K: in build_insn()
1548 case BPF_ALU | BPF_MOD | BPF_X: in build_insn()
1596 case BPF_ALU64 | BPF_MOD | BPF_K: in build_insn()
1631 case BPF_ALU64 | BPF_MOD | BPF_X: in build_insn()
/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()
379 if (BPF_OP(opcode) == BPF_DIV || BPF_OP(opcode) == BPF_MOD) { in emit_call_libgcc_ll()
609 case BPF_MOD: in emit_alu_r64()
671 case BPF_MOD: in emit_alu_r32()
1156 case BPF_ALU64 | BPF_MOD | BPF_X: in bpf_jit_emit_insn()
1157 case BPF_ALU64 | BPF_MOD | BPF_K: in bpf_jit_emit_insn()
1204 case BPF_ALU | BPF_MOD | BPF_X: in bpf_jit_emit_insn()
1205 case BPF_ALU | BPF_MOD | 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()
674 case BPF_ALU | BPF_MOD | BPF_K: in bpf_jit_emit_insn()
675 case BPF_ALU64 | BPF_MOD | BPF_K: in bpf_jit_emit_insn()
679 case BPF_ALU | BPF_MOD | BPF_X: in bpf_jit_emit_insn()
680 case BPF_ALU64 | BPF_MOD | BPF_X: in bpf_jit_emit_insn()
/openbmc/linux/arch/s390/net/
H A Dbpf_jit_comp.c916 case BPF_ALU | BPF_MOD | BPF_X: /* dst = (u32) dst % (u32) src */ in bpf_jit_insn()
933 case BPF_ALU64 | BPF_MOD | BPF_X: /* dst = dst % src */ in bpf_jit_insn()
948 case BPF_ALU | BPF_MOD | BPF_K: /* dst = (u32) dst % (u32) imm */ in bpf_jit_insn()
953 if (BPF_OP(insn->code) == BPF_MOD) in bpf_jit_insn()
983 case BPF_ALU64 | BPF_MOD | BPF_K: /* dst = dst % imm */ in bpf_jit_insn()
988 if (BPF_OP(insn->code) == BPF_MOD) in bpf_jit_insn()
/openbmc/linux/tools/testing/selftests/net/
H A Dreuseport_bpf.c104 { BPF_ALU64 | BPF_MOD | BPF_K, BPF_REG_0, 0, 0, mod }, in attach_ebpf()
137 { BPF_ALU | BPF_MOD, 0, 0, mod }, in attach_cbpf()
/openbmc/linux/arch/loongarch/net/
H A Dbpf_jit.c553 case BPF_ALU | BPF_MOD | BPF_X: in build_insn()
554 case BPF_ALU64 | BPF_MOD | BPF_X: in build_insn()
563 case BPF_ALU | BPF_MOD | BPF_K: in build_insn()
564 case BPF_ALU64 | BPF_MOD | BPF_K: in build_insn()
/openbmc/linux/arch/riscv/net/
H A Dbpf_jit_comp32.c544 case BPF_MOD: in emit_alu_r32()
1001 case BPF_ALU64 | BPF_MOD | BPF_X: in bpf_jit_emit_insn()
1002 case BPF_ALU64 | BPF_MOD | BPF_K: in bpf_jit_emit_insn()
1035 case BPF_ALU | BPF_MOD | BPF_X: in bpf_jit_emit_insn()
1036 case BPF_ALU | BPF_MOD | BPF_K: in bpf_jit_emit_insn()
H A Dbpf_jit_comp64.c1158 case BPF_ALU | BPF_MOD | BPF_X: in bpf_jit_emit_insn()
1159 case BPF_ALU64 | BPF_MOD | BPF_X: in bpf_jit_emit_insn()
1344 case BPF_ALU | BPF_MOD | BPF_K: in bpf_jit_emit_insn()
1345 case BPF_ALU64 | BPF_MOD | BPF_K: in bpf_jit_emit_insn()
/openbmc/linux/arch/x86/net/
H A Dbpf_jit_comp32.c462 if (op == BPF_MOD) { in emit_ia32_div_mod_r()
1794 case BPF_ALU | BPF_MOD | BPF_K: in do_jit()
1795 case BPF_ALU | BPF_MOD | BPF_X: in do_jit()
1815 case BPF_ALU64 | BPF_MOD | BPF_K: in do_jit()
1816 case BPF_ALU64 | BPF_MOD | BPF_X: in do_jit()
H A Dbpf_jit_comp.c1219 case BPF_ALU | BPF_MOD | BPF_X: in do_jit()
1221 case BPF_ALU | BPF_MOD | BPF_K: in do_jit()
1223 case BPF_ALU64 | BPF_MOD | BPF_X: in do_jit()
1225 case BPF_ALU64 | BPF_MOD | BPF_K: in do_jit()
1272 if (BPF_OP(insn->code) == BPF_MOD && in do_jit()
/openbmc/linux/arch/sparc/net/
H A Dbpf_jit_comp_64.c953 case BPF_ALU | BPF_MOD | BPF_X: { in build_insn()
964 case BPF_ALU64 | BPF_MOD | BPF_X: { in build_insn()
1112 case BPF_ALU64 | BPF_MOD | BPF_K: in build_insn()
1113 case BPF_ALU | BPF_MOD | BPF_K: { in build_insn()
/openbmc/linux/lib/
H A Dtest_bpf.c500 BPF_SUB, BPF_MUL, BPF_DIV, BPF_MOD, in __bpf_fill_max_jmp()
584 case BPF_MOD: in __bpf_alu_result()
4470 BPF_ALU64_IMM(BPF_MOD, R0, 3),
5998 BPF_ALU32_REG(BPF_MOD, R0, R1),
6010 BPF_ALU32_REG(BPF_MOD, R0, R1),
6022 BPF_ALU64_REG(BPF_MOD, R0, R1),
6034 BPF_ALU64_REG(BPF_MOD, R0, R1),
6046 BPF_ALU32_IMM(BPF_MOD, R0, 2),
6057 BPF_ALU32_IMM(BPF_MOD, R0, 1),
6079 BPF_ALU64_IMM(BPF_MOD, R0, 2),
[all …]
/openbmc/linux/arch/arm/net/
H A Dbpf_jit_32.c1449 case BPF_ALU | BPF_MOD | BPF_K: in build_insn()
1450 case BPF_ALU | BPF_MOD | BPF_X: in build_insn()
1471 case BPF_ALU64 | BPF_MOD | BPF_K: in build_insn()
1472 case BPF_ALU64 | BPF_MOD | BPF_X: in build_insn()
/openbmc/linux/arch/arm64/net/
H A Dbpf_jit_comp.c836 case BPF_ALU | BPF_MOD | BPF_X: in build_insn()
837 case BPF_ALU64 | BPF_MOD | BPF_X: in build_insn()
973 case BPF_ALU | BPF_MOD | BPF_K: in build_insn()
974 case BPF_ALU64 | BPF_MOD | BPF_K: in build_insn()

12