Home
last modified time | relevance | path

Searched refs:BPF_LSH (Results 1 – 25 of 40) sorted by relevance

12

/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dalign.c55 BPF_ALU64_IMM(BPF_LSH, BPF_REG_3, 1),
56 BPF_ALU64_IMM(BPF_LSH, BPF_REG_3, 1),
57 BPF_ALU64_IMM(BPF_LSH, BPF_REG_3, 1),
58 BPF_ALU64_IMM(BPF_LSH, BPF_REG_3, 1),
149 BPF_ALU64_IMM(BPF_LSH, BPF_REG_3, 1),
150 BPF_ALU64_IMM(BPF_LSH, BPF_REG_3, 1),
151 BPF_ALU64_IMM(BPF_LSH, BPF_REG_3, 1),
152 BPF_ALU64_IMM(BPF_LSH, BPF_REG_3, 1),
154 BPF_ALU64_IMM(BPF_LSH, BPF_REG_4, 5),
251 BPF_ALU64_IMM(BPF_LSH, BPF_REG_6, 2),
[all …]
/Linux-v6.6/tools/testing/selftests/bpf/verifier/
Djit.c6 BPF_ALU64_IMM(BPF_LSH, BPF_REG_1, 1),
7 BPF_ALU32_IMM(BPF_LSH, BPF_REG_1, 1),
29 BPF_ALU64_REG(BPF_LSH, BPF_REG_1, BPF_REG_0),
30 BPF_ALU32_REG(BPF_LSH, BPF_REG_1, BPF_REG_4),
Dbasic_instr.c20 BPF_ALU64_IMM(BPF_LSH, BPF_REG_2, 32),
98 BPF_ALU64_IMM(BPF_LSH, BPF_REG_1, 0),
140 BPF_ALU64_REG(BPF_LSH, BPF_REG_1, BPF_REG_2),
Datomic_or.c91 BPF_ALU64_IMM(BPF_LSH, BPF_REG_2, 32),
Djmp32.c807 BPF_ALU64_IMM(BPF_LSH, BPF_REG_6, 32),
835 BPF_ALU64_IMM(BPF_LSH, BPF_REG_6, 32),
863 BPF_ALU64_IMM(BPF_LSH, BPF_REG_6, 32),
Datomic_cmpxchg.c110 BPF_ALU64_IMM(BPF_LSH, BPF_REG_1, 32),
/Linux-v6.6/tools/include/uapi/linux/
Dbpf_common.h38 #define BPF_LSH 0x60 macro
/Linux-v6.6/include/uapi/linux/
Dbpf_common.h38 #define BPF_LSH 0x60 macro
/Linux-v6.6/arch/mips/net/
Dbpf_jit_comp.c215 case BPF_LSH: in valid_alu_i()
252 case BPF_LSH: in rewrite_alu_i()
271 op = BPF_LSH; in rewrite_alu_i()
318 case BPF_LSH: in emit_alu_i()
358 case BPF_LSH: in emit_alu_r()
Dbpf_jit_comp64.c174 case BPF_LSH: in emit_alu_i64()
205 case BPF_LSH: in emit_alu_r64()
676 case BPF_ALU | BPF_LSH | BPF_K: in build_insn()
716 case BPF_ALU | BPF_LSH | BPF_X: in build_insn()
765 case BPF_ALU64 | BPF_LSH | BPF_K: in build_insn()
794 case BPF_ALU64 | BPF_LSH | BPF_X: in build_insn()
Dbpf_jit_comp32.c326 case BPF_LSH: in emit_shift_i64()
378 case BPF_LSH: in emit_shift_r64()
1511 case BPF_ALU | BPF_LSH | BPF_K: in build_insn()
1541 case BPF_ALU | BPF_LSH | BPF_X: in build_insn()
1583 case BPF_ALU64 | BPF_LSH | BPF_K: in build_insn()
1619 case BPF_ALU64 | BPF_LSH | BPF_X: in build_insn()
/Linux-v6.6/lib/
Dtest_bpf.c499 BPF_LSH, BPF_RSH, BPF_ARSH, BPF_ADD, in __bpf_fill_max_jmp()
559 case BPF_LSH: in __bpf_alu_result()
671 return __bpf_fill_alu_shift(self, BPF_LSH, BPF_K, false); in bpf_fill_alu64_lsh_imm()
686 return __bpf_fill_alu_shift(self, BPF_LSH, BPF_X, false); in bpf_fill_alu64_lsh_reg()
701 return __bpf_fill_alu_shift(self, BPF_LSH, BPF_K, true); in bpf_fill_alu32_lsh_imm()
716 return __bpf_fill_alu_shift(self, BPF_LSH, BPF_X, true); in bpf_fill_alu32_lsh_reg()
781 return __bpf_fill_alu_shift_same_reg(self, BPF_LSH, false); in bpf_fill_alu64_lsh_same_reg()
796 return __bpf_fill_alu_shift_same_reg(self, BPF_LSH, true); in bpf_fill_alu32_lsh_same_reg()
1238 if (op == BPF_LSH || op == BPF_RSH || op == BPF_ARSH) in __bpf_fill_alu_imm_regs()
1298 return __bpf_fill_alu_imm_regs(self, BPF_LSH, false); in bpf_fill_alu64_lsh_imm_regs()
[all …]
/Linux-v6.6/tools/bpf/
Dbpf_exp.y426 bpf_set_curr_instr(BPF_ALU | BPF_LSH | BPF_K, 0, 0, $3); }
428 bpf_set_curr_instr(BPF_ALU | BPF_LSH | BPF_X, 0, 0, 0); }
430 bpf_set_curr_instr(BPF_ALU | BPF_LSH | BPF_X, 0, 0, 0); }
/Linux-v6.6/arch/riscv/net/
Dbpf_jit_comp32.c283 case BPF_LSH: in emit_alu_i64()
377 case BPF_LSH: in emit_alu_i32()
458 case BPF_LSH: in emit_alu_r64()
547 case BPF_LSH: in emit_alu_r32()
985 case BPF_ALU64 | BPF_LSH | BPF_X: in bpf_jit_emit_insn()
1009 case BPF_ALU64 | BPF_LSH | BPF_K: in bpf_jit_emit_insn()
1038 case BPF_ALU | BPF_LSH | BPF_X: in bpf_jit_emit_insn()
1054 case BPF_ALU | BPF_LSH | BPF_K: in bpf_jit_emit_insn()
/Linux-v6.6/arch/parisc/net/
Dbpf_jit_comp32.c457 case BPF_LSH: in emit_alu_i64()
545 case BPF_LSH: in emit_alu_i32()
612 case BPF_LSH: in emit_alu_r64()
674 case BPF_LSH: in emit_alu_r32()
1159 case BPF_ALU64 | BPF_LSH | BPF_X: in bpf_jit_emit_insn()
1178 case BPF_ALU64 | BPF_LSH | BPF_K: in bpf_jit_emit_insn()
1207 case BPF_ALU | BPF_LSH | BPF_X: in bpf_jit_emit_insn()
1224 case BPF_ALU | BPF_LSH | BPF_K: in bpf_jit_emit_insn()
Dbpf_jit_comp64.c686 case BPF_ALU | BPF_LSH | BPF_X: in bpf_jit_emit_insn()
687 case BPF_ALU64 | BPF_LSH | BPF_X: in bpf_jit_emit_insn()
822 case BPF_ALU | BPF_LSH | BPF_K: in bpf_jit_emit_insn()
823 case BPF_ALU64 | BPF_LSH | BPF_K: in bpf_jit_emit_insn()
/Linux-v6.6/arch/powerpc/net/
Dbpf_jit_comp64.c576 case BPF_ALU | BPF_LSH | BPF_X: /* (u32) dst <<= (u32) src */ in bpf_jit_build_body()
583 case BPF_ALU64 | BPF_LSH | BPF_X: /* dst <<= src; */ in bpf_jit_build_body()
586 case BPF_ALU | BPF_LSH | BPF_K: /* (u32) dst <<== (u32) imm */ in bpf_jit_build_body()
592 case BPF_ALU64 | BPF_LSH | BPF_K: /* dst <<== imm */ in bpf_jit_build_body()
Dbpf_jit_comp32.c609 case BPF_ALU | BPF_LSH | BPF_X: /* (u32) dst <<= (u32) src */ in bpf_jit_build_body()
612 case BPF_ALU64 | BPF_LSH | BPF_X: /* dst <<= src; */ in bpf_jit_build_body()
623 case BPF_ALU | BPF_LSH | BPF_K: /* (u32) dst <<= (u32) imm */ in bpf_jit_build_body()
629 case BPF_ALU64 | BPF_LSH | BPF_K: /* dst <<= imm */ in bpf_jit_build_body()
/Linux-v6.6/arch/loongarch/net/
Dbpf_jit.c638 case BPF_ALU | BPF_LSH | BPF_X: in build_insn()
643 case BPF_ALU64 | BPF_LSH | BPF_X: in build_insn()
648 case BPF_ALU | BPF_LSH | BPF_K: in build_insn()
653 case BPF_ALU64 | BPF_LSH | BPF_K: in build_insn()
/Linux-v6.6/arch/arm/net/
Dbpf_jit_32.c701 case BPF_LSH: in emit_alu_r()
795 case BPF_LSH: in emit_a32_alu_i()
1416 case BPF_ALU | BPF_LSH | BPF_X: in build_insn()
1477 case BPF_ALU | BPF_LSH | BPF_K: in build_insn()
1488 case BPF_ALU64 | BPF_LSH | BPF_K: in build_insn()
1500 case BPF_ALU64 | BPF_LSH | BPF_X: in build_insn()
/Linux-v6.6/arch/x86/net/
Dbpf_jit_comp.c221 [BPF_LSH] = 0xE0,
1260 case BPF_ALU | BPF_LSH | BPF_K: in do_jit()
1263 case BPF_ALU64 | BPF_LSH | BPF_K: in do_jit()
1276 case BPF_ALU | BPF_LSH | BPF_X: in do_jit()
1279 case BPF_ALU64 | BPF_LSH | BPF_X: in do_jit()
1289 case BPF_LSH: in do_jit()
Dbpf_jit_comp32.c502 case BPF_LSH: in emit_ia32_shift_r()
1769 case BPF_ALU | BPF_LSH | BPF_X: in do_jit()
1821 case BPF_ALU | BPF_LSH | BPF_K: in do_jit()
1832 case BPF_ALU64 | BPF_LSH | BPF_K: in do_jit()
1844 case BPF_ALU64 | BPF_LSH | BPF_X: in do_jit()
/Linux-v6.6/net/xdp/
Dxskmap.c128 *insn++ = BPF_ALU64_IMM(BPF_LSH, ret, ilog2(sizeof(struct xsk_sock *))); in xsk_map_gen_lookup()
/Linux-v6.6/arch/sparc/net/
Dbpf_jit_comp_32.c430 case BPF_ALU | BPF_LSH | BPF_X: /* A <<= X */ in bpf_jit_compile()
433 case BPF_ALU | BPF_LSH | BPF_K: /* A <<= K */ in bpf_jit_compile()
Dbpf_jit_comp_64.c974 case BPF_ALU | BPF_LSH | BPF_X: in build_insn()
977 case BPF_ALU64 | BPF_LSH | BPF_X: in build_insn()
1142 case BPF_ALU | BPF_LSH | BPF_K: in build_insn()
1145 case BPF_ALU64 | BPF_LSH | BPF_K: in build_insn()

12