Home
last modified time | relevance | path

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

12

/Linux-v6.6/tools/testing/selftests/bpf/verifier/
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),
Djit.c14 BPF_ALU64_IMM(BPF_ARSH, BPF_REG_1, 1),
38 BPF_ALU64_REG(BPF_ARSH, BPF_REG_4, BPF_REG_4),
/Linux-v6.6/arch/mips/net/
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()
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()
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()
/Linux-v6.6/arch/riscv/net/
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()
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()
/Linux-v6.6/arch/parisc/net/
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()
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()
/Linux-v6.6/arch/powerpc/net/
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()
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()
/Linux-v6.6/lib/
Dtest_bpf.c499 BPF_LSH, BPF_RSH, BPF_ARSH, BPF_ADD, in __bpf_fill_max_jmp()
565 case BPF_ARSH: in __bpf_alu_result()
632 if (op == BPF_ARSH) in __bpf_fill_alu_shift()
681 return __bpf_fill_alu_shift(self, BPF_ARSH, BPF_K, false); in bpf_fill_alu64_arsh_imm()
696 return __bpf_fill_alu_shift(self, BPF_ARSH, BPF_X, false); in bpf_fill_alu64_arsh_reg()
711 return __bpf_fill_alu_shift(self, BPF_ARSH, BPF_K, true); in bpf_fill_alu32_arsh_imm()
726 return __bpf_fill_alu_shift(self, BPF_ARSH, BPF_X, true); in bpf_fill_alu32_arsh_reg()
791 return __bpf_fill_alu_shift_same_reg(self, BPF_ARSH, false); in bpf_fill_alu64_arsh_same_reg()
806 return __bpf_fill_alu_shift_same_reg(self, BPF_ARSH, true); in bpf_fill_alu32_arsh_same_reg()
1238 if (op == BPF_LSH || op == BPF_RSH || op == BPF_ARSH) in __bpf_fill_alu_imm_regs()
[all …]
/Linux-v6.6/arch/loongarch/net/
Dbpf_jit.c678 case BPF_ALU | BPF_ARSH | BPF_X: in build_insn()
683 case BPF_ALU64 | BPF_ARSH | BPF_X: in build_insn()
688 case BPF_ALU | BPF_ARSH | BPF_K: in build_insn()
693 case BPF_ALU64 | BPF_ARSH | BPF_K: in build_insn()
/Linux-v6.6/arch/arm/net/
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()
/Linux-v6.6/arch/x86/net/
Dbpf_jit_comp.c223 [BPF_ARSH] = 0xF8,
1262 case BPF_ALU | BPF_ARSH | BPF_K: in do_jit()
1265 case BPF_ALU64 | BPF_ARSH | BPF_K: in do_jit()
1278 case BPF_ALU | BPF_ARSH | BPF_X: in do_jit()
1281 case BPF_ALU64 | BPF_ARSH | BPF_X: in do_jit()
1295 case BPF_ARSH: in do_jit()
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()
/Linux-v6.6/arch/sparc/net/
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()
/Linux-v6.6/arch/s390/net/
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()
/Linux-v6.6/tools/testing/selftests/bpf/
Ddisasm.c86 [BPF_ARSH >> 4] = "s>>=",
/Linux-v6.6/kernel/bpf/
Ddisasm.c86 [BPF_ARSH >> 4] = "s>>=",
/Linux-v6.6/arch/arm64/net/
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()
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/bpf/
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,
/Linux-v6.6/Documentation/bpf/
Dclassic_vs_extended.rst303 BPF_ARSH 0xc0 /* eBPF only: sign extending shift right */
/Linux-v6.6/tools/include/uapi/linux/
Dbpf.h28 #define BPF_ARSH 0xc0 /* sign extending arithmetic shift right */ macro
/Linux-v6.6/include/uapi/linux/
Dbpf.h28 #define BPF_ARSH 0xc0 /* sign extending arithmetic shift right */ macro

12