Home
last modified time | relevance | path

Searched refs:BPF_ARSH (Results 1 – 25 of 27) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/bpf/verifier/
H A Dbasic_instr.c36 BPF_ALU32_IMM(BPF_ARSH, BPF_REG_0, 5),
46 BPF_ALU32_IMM(BPF_ARSH, BPF_REG_0, 7),
57 BPF_ALU32_REG(BPF_ARSH, BPF_REG_0, BPF_REG_1),
68 BPF_ALU32_REG(BPF_ARSH, BPF_REG_0, BPF_REG_1),
78 BPF_ALU64_IMM(BPF_ARSH, BPF_REG_0, 5),
88 BPF_ALU64_REG(BPF_ARSH, BPF_REG_0, BPF_REG_1),
126 BPF_ALU64_IMM(BPF_ARSH, BPF_REG_1, 0),
170 BPF_ALU64_REG(BPF_ARSH, BPF_REG_1, BPF_REG_3),
H A Djit.c14 BPF_ALU64_IMM(BPF_ARSH, BPF_REG_1, 1),
38 BPF_ALU64_REG(BPF_ARSH, BPF_REG_4, BPF_REG_4),
/openbmc/linux/arch/mips/net/
H A Dbpf_jit_comp64.c182 case BPF_ARSH: in emit_alu_i64()
213 case BPF_ARSH: in emit_alu_r64()
693 case BPF_ALU | BPF_ARSH | BPF_K: in build_insn()
728 case BPF_ALU | BPF_ARSH | BPF_X: in build_insn()
767 case BPF_ALU64 | BPF_ARSH | BPF_K: in build_insn()
796 case BPF_ALU64 | BPF_ARSH | BPF_X: in build_insn()
H A Dbpf_jit_comp.c217 case BPF_ARSH: in valid_alu_i()
254 case BPF_ARSH: in rewrite_alu_i()
326 case BPF_ARSH: in emit_alu_i()
366 case BPF_ARSH: in emit_alu_r()
H A Dbpf_jit_comp32.c350 case BPF_ARSH: in emit_shift_i64()
404 case BPF_ARSH: in emit_shift_r64()
1513 case BPF_ALU | BPF_ARSH | BPF_K: in build_insn()
1543 case BPF_ALU | BPF_ARSH | BPF_X: in build_insn()
1585 case BPF_ALU64 | BPF_ARSH | BPF_K: in build_insn()
1621 case BPF_ALU64 | BPF_ARSH | BPF_X: in build_insn()
/openbmc/linux/arch/riscv/net/
H A Dbpf_jit_comp32.c309 case BPF_ARSH: in emit_alu_i64()
393 case BPF_ARSH: in emit_alu_i32()
486 case BPF_ARSH: in emit_alu_r64()
553 case BPF_ARSH: in emit_alu_r32()
987 case BPF_ALU64 | BPF_ARSH | BPF_X: in bpf_jit_emit_insn()
1011 case BPF_ALU64 | BPF_ARSH | BPF_K: in bpf_jit_emit_insn()
1040 case BPF_ALU | BPF_ARSH | BPF_X: in bpf_jit_emit_insn()
1056 case BPF_ALU | BPF_ARSH | BPF_K: in bpf_jit_emit_insn()
H A Dbpf_jit_comp64.c1179 case BPF_ALU | BPF_ARSH | BPF_X: in bpf_jit_emit_insn()
1180 case BPF_ALU64 | BPF_ARSH | BPF_X: in bpf_jit_emit_insn()
1373 case BPF_ALU | BPF_ARSH | BPF_K: in bpf_jit_emit_insn()
1374 case BPF_ALU64 | BPF_ARSH | BPF_K: in bpf_jit_emit_insn()
/openbmc/linux/arch/parisc/net/
H A Dbpf_jit_comp32.c487 case BPF_ARSH: in emit_alu_i64()
553 case BPF_ARSH: in emit_alu_i32()
618 case BPF_ARSH: in emit_alu_r64()
683 case BPF_ARSH: /* sign extending arithmetic shift right */ in emit_alu_r32()
1161 case BPF_ALU64 | BPF_ARSH | BPF_X: in bpf_jit_emit_insn()
1180 case BPF_ALU64 | BPF_ARSH | BPF_K: in bpf_jit_emit_insn()
1209 case BPF_ALU | BPF_ARSH | BPF_X: in bpf_jit_emit_insn()
1226 case BPF_ALU | BPF_ARSH | BPF_K: in bpf_jit_emit_insn()
H A Dbpf_jit_comp64.c707 case BPF_ALU | BPF_ARSH | BPF_X: in bpf_jit_emit_insn()
708 case BPF_ALU64 | BPF_ARSH | BPF_X: in bpf_jit_emit_insn()
843 case BPF_ALU | BPF_ARSH | BPF_K: in bpf_jit_emit_insn()
844 case BPF_ALU64 | BPF_ARSH | BPF_K: in bpf_jit_emit_insn()
/openbmc/linux/arch/powerpc/net/
H A Dbpf_jit_comp64.c613 case BPF_ALU | BPF_ARSH | BPF_X: /* (s32) dst >>= src */ in bpf_jit_build_body()
616 case BPF_ALU64 | BPF_ARSH | BPF_X: /* (s64) dst >>= src */ in bpf_jit_build_body()
619 case BPF_ALU | BPF_ARSH | BPF_K: /* (s32) dst >>= imm */ in bpf_jit_build_body()
622 case BPF_ALU64 | BPF_ARSH | BPF_K: /* (s64) dst >>= imm */ in bpf_jit_build_body()
H A Dbpf_jit_comp32.c684 case BPF_ALU | BPF_ARSH | BPF_X: /* (s32) dst >>= src */ in bpf_jit_build_body()
687 case BPF_ALU64 | BPF_ARSH | BPF_X: /* (s64) dst >>= src */ in bpf_jit_build_body()
700 case BPF_ALU | BPF_ARSH | BPF_K: /* (s32) dst >>= imm */ in bpf_jit_build_body()
706 case BPF_ALU64 | BPF_ARSH | BPF_K: /* (s64) dst >>= imm */ in bpf_jit_build_body()
/openbmc/linux/lib/
H A Dtest_bpf.c565 case BPF_ARSH: in __bpf_alu_result()
632 if (op == BPF_ARSH) in __bpf_fill_alu_shift()
4319 BPF_ALU64_IMM(BPF_ARSH, R1, 32),
4496 BPF_ALU64_REG(BPF_ARSH, R0, R3),
7366 BPF_ALU32_REG(BPF_ARSH, R0, R1),
7378 BPF_ALU64_REG(BPF_ARSH, R0, R1),
7390 BPF_ALU64_REG(BPF_ARSH, R0, R1),
7402 BPF_ALU64_REG(BPF_ARSH, R0, R1),
7490 BPF_ALU32_IMM(BPF_ARSH, R0, 7),
7501 BPF_ALU32_IMM(BPF_ARSH, R0, 0),
[all …]
/openbmc/linux/arch/loongarch/net/
H A Dbpf_jit.c677 case BPF_ALU | BPF_ARSH | BPF_X: in build_insn()
682 case BPF_ALU64 | BPF_ARSH | BPF_X: in build_insn()
687 case BPF_ALU | BPF_ARSH | BPF_K: in build_insn()
692 case BPF_ALU64 | BPF_ARSH | BPF_K: in build_insn()
/openbmc/linux/arch/arm/net/
H A Dbpf_jit_32.c709 case BPF_ARSH: in emit_alu_r()
801 case BPF_ARSH: in emit_a32_alu_i()
1418 case BPF_ALU | BPF_ARSH | BPF_X: in build_insn()
1479 case BPF_ALU | BPF_ARSH | BPF_K: in build_insn()
1508 case BPF_ALU64 | BPF_ARSH | BPF_X: in build_insn()
1512 case BPF_ALU64 | BPF_ARSH | BPF_K: in build_insn()
/openbmc/linux/arch/x86/net/
H A Dbpf_jit_comp.c223 [BPF_ARSH] = 0xF8,
1266 case BPF_ALU | BPF_ARSH | BPF_K: in do_jit()
1269 case BPF_ALU64 | BPF_ARSH | BPF_K: in do_jit()
1282 case BPF_ALU | BPF_ARSH | BPF_X: in do_jit()
1285 case BPF_ALU64 | BPF_ARSH | BPF_X: in do_jit()
1299 case BPF_ARSH: in do_jit()
H A Dbpf_jit_comp32.c506 case BPF_ARSH: in emit_ia32_shift_r()
1771 case BPF_ALU | BPF_ARSH | BPF_K: in do_jit()
1772 case BPF_ALU | BPF_ARSH | BPF_X: in do_jit()
1852 case BPF_ALU64 | BPF_ARSH | BPF_X: in do_jit()
1856 case BPF_ALU64 | BPF_ARSH | BPF_K: in do_jit()
/openbmc/linux/arch/sparc/net/
H A Dbpf_jit_comp_64.c988 case BPF_ALU | BPF_ARSH | BPF_X: in build_insn()
991 case BPF_ALU64 | BPF_ARSH | BPF_X: in build_insn()
1156 case BPF_ALU | BPF_ARSH | BPF_K: in build_insn()
1159 case BPF_ALU64 | BPF_ARSH | BPF_K: in build_insn()
/openbmc/linux/arch/s390/net/
H A Dbpf_jit_comp.c1164 case BPF_ALU | BPF_ARSH | BPF_X: /* ((s32) dst) >>= src */ in bpf_jit_insn()
1169 case BPF_ALU64 | BPF_ARSH | BPF_X: /* ((s64) dst) >>= src */ in bpf_jit_insn()
1173 case BPF_ALU | BPF_ARSH | BPF_K: /* ((s32) dst >> imm */ in bpf_jit_insn()
1180 case BPF_ALU64 | BPF_ARSH | BPF_K: /* ((s64) dst) >>= imm */ in bpf_jit_insn()
/openbmc/linux/tools/testing/selftests/bpf/
H A Ddisasm.c86 [BPF_ARSH >> 4] = "s>>=",
/openbmc/linux/kernel/bpf/
H A Ddisasm.c86 [BPF_ARSH >> 4] = "s>>=",
/openbmc/linux/arch/arm64/net/
H A Dbpf_jit_comp.c852 case BPF_ALU | BPF_ARSH | BPF_X: in build_insn()
853 case BPF_ALU64 | BPF_ARSH | BPF_X: in build_insn()
990 case BPF_ALU | BPF_ARSH | BPF_K: in build_insn()
991 case BPF_ALU64 | BPF_ARSH | BPF_K: in build_insn()
/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Djit.c3443 [BPF_ALU64 | BPF_ARSH | BPF_X] = ashr_reg64,
3444 [BPF_ALU64 | BPF_ARSH | BPF_K] = ashr_imm64,
3466 [BPF_ALU | BPF_ARSH | BPF_X] = ashr_reg,
3467 [BPF_ALU | BPF_ARSH | BPF_K] = ashr_imm,
/openbmc/linux/Documentation/bpf/
H A Dclassic_vs_extended.rst303 BPF_ARSH 0xc0 /* eBPF only: sign extending shift right */
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf.h28 #define BPF_ARSH 0xc0 /* sign extending arithmetic shift right */ macro
/openbmc/linux/include/uapi/linux/
H A Dbpf.h28 #define BPF_ARSH 0xc0 /* sign extending arithmetic shift right */ macro

12