/linux-master/tools/testing/selftests/bpf/verifier/ |
H A D | ld_abs.c | 17 BPF_MOV64_IMM(BPF_REG_2, 0), 19 BPF_MOV64_REG(BPF_REG_0, BPF_REG_2), 82 BPF_MOV64_IMM(BPF_REG_2, 1), 170 BPF_ALU64_IMM(BPF_MOV, BPF_REG_2, 2), 171 BPF_ALU32_REG(BPF_DIV, BPF_REG_0, BPF_REG_2), 190 BPF_ALU64_IMM(BPF_MOV, BPF_REG_2, 2), 191 BPF_ALU32_REG(BPF_DIV, BPF_REG_0, BPF_REG_2), 258 BPF_MOV64_IMM(BPF_REG_2, 1),
|
/linux-master/arch/arm/net/ |
H A D | bpf_jit_32.c | 109 /* Stack space for BPF_REG_2, BPF_REG_3, BPF_REG_4, 156 [BPF_REG_2] = {STACK_OFFSET(BPF_R2_HI), STACK_OFFSET(BPF_R2_LO)}, 1397 const s8 *r2 = bpf2a32[BPF_REG_2]; 2052 const s8 *r2 = bpf2a32[BPF_REG_2];
|
/linux-master/arch/arm64/net/ |
H A D | bpf_jit_comp.c | 50 [BPF_REG_2] = A64_R(1), 421 const u8 r2 = bpf2a64[BPF_REG_2];
|
/linux-master/arch/loongarch/net/ |
H A D | bpf_jit.c | 20 [BPF_REG_2] = LOONGARCH_GPR_A1,
|
/linux-master/arch/mips/net/ |
H A D | bpf_jit_comp32.c | 121 [BPF_REG_2] = {MIPS_R_A3, MIPS_R_A2}, 530 const u8 *r2 = bpf2mips32[BPF_REG_2]; /* Mapped to a2-a3 */ 913 const u8 *r2 = bpf2mips32[BPF_REG_2]; 1292 u8 ary = lo(bpf2mips32[BPF_REG_2]);
|
H A D | bpf_jit_comp64.c | 69 [BPF_REG_2] = MIPS_R_A1, 479 u8 ary = bpf2mips64[BPF_REG_2];
|
/linux-master/arch/parisc/net/ |
H A D | bpf_jit_comp32.c | 79 [BPF_REG_2] = {HPPA_R(5), HPPA_R(6)}, 909 reg = bpf_get_reg64_offset(regmap[BPF_REG_2], tmp, offset_sp, ctx); 951 const s8 *arr_reg = regmap[BPF_REG_2]; 1577 dst = regmap[BPF_REG_2];
|
H A D | bpf_jit_comp64.c | 23 [BPF_REG_2] = HPPA_R(6), 350 const s8 arr_reg = regmap[BPF_REG_2]; 470 emit_hppa_copy(regmap[BPF_REG_2], HPPA_REG_ARG1, ctx); 1168 LOAD_PARAM(HPPA_REG_ARG1, BPF_REG_2);
|
/linux-master/arch/powerpc/net/ |
H A D | bpf_jit_comp32.c | 52 ctx->b2p[BPF_REG_2] = _R6; 226 * r5-r6/BPF_REG_2 - pointer to bpf_array 229 int b2p_bpf_array = bpf_to_ppc(BPF_REG_2);
|
H A D | bpf_jit_comp64.c | 55 ctx->b2p[BPF_REG_2] = _R4; 281 * r4/BPF_REG_2 - pointer to bpf_array 284 int b2p_bpf_array = bpf_to_ppc(BPF_REG_2);
|
/linux-master/arch/riscv/net/ |
H A D | bpf_jit_comp32.c | 76 [BPF_REG_2] = {RV_REG_A3, RV_REG_A2}, 782 const s8 *arr_reg = bpf2rv32[BPF_REG_2];
|
H A D | bpf_jit_comp64.c | 25 [BPF_REG_2] = RV_REG_A1,
|
/linux-master/arch/s390/net/ |
H A D | bpf_jit_comp.c | 73 #define REG_3 BPF_REG_2 /* Register 3 */ 87 [BPF_REG_2] = 3, 1600 EMIT6_DISP_LH(0xe3000000, 0x0016, REG_W1, REG_0, BPF_REG_2, 1637 EMIT6_DISP_LH(0xe3000000, 0x0002, REG_1, BPF_REG_2,
|
/linux-master/arch/sparc/net/ |
H A D | bpf_jit_comp_64.c | 214 [BPF_REG_2] = O1, 852 const u8 bpf_array = bpf2sparc[BPF_REG_2];
|
/linux-master/arch/x86/net/ |
H A D | bpf_jit_comp.c | 131 [BPF_REG_2] = 6, /* RSI */ 149 [BPF_REG_2] = offsetof(struct pt_regs, si), 185 BIT(BPF_REG_2) | 2528 emit_mov_imm64(&prog, BPF_REG_2, 2553 emit_mov_reg(&prog, true, BPF_REG_2, BPF_REG_6);
|
H A D | bpf_jit_comp32.c | 145 [BPF_REG_2] = {STACK_OFFSET(16), STACK_OFFSET(20)}, 174 * Stack space for BPF_REG_1, BPF_REG_2, BPF_REG_3, BPF_REG_4, 1304 const u8 *r2 = bpf2ia32[BPF_REG_2]; 2086 const u8 *r2 = bpf2ia32[BPF_REG_2];
|
/linux-master/drivers/net/ethernet/netronome/nfp/bpf/ |
H A D | verifier.c | 175 const struct bpf_reg_state *reg2 = cur_regs(env) + BPF_REG_2;
|
/linux-master/include/linux/ |
H A D | bpf_verifier.h | 244 #define BPF_REGMASK_ARGS ((1 << BPF_REG_1) | (1 << BPF_REG_2) | \
|
H A D | filter.h | 47 #define BPF_REG_ARG2 BPF_REG_2 57 #define BPF_REG_TMP BPF_REG_2 /* scratch reg */
|
/linux-master/include/uapi/linux/ |
H A D | bpf.h | 62 BPF_REG_2, enumerator in enum:__anon2579
|
/linux-master/kernel/bpf/ |
H A D | arraymap.c | 212 const int index = BPF_REG_2; 1341 const int index = BPF_REG_2;
|
H A D | core.c | 47 #define BPF_R2 regs[BPF_REG_2]
|
H A D | verifier.c | 130 * BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), // after this insn R2 type is FRAME_PTR 131 * BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), // after this insn R2 type is PTR_TO_STACK 1746 BPF_REG_0, BPF_REG_1, BPF_REG_2, BPF_REG_3, BPF_REG_4, BPF_REG_5 7438 WARN_ON_ONCE(regno < BPF_REG_2 || regno > BPF_REG_5); 9617 callee->regs[BPF_REG_2].type = PTR_TO_MAP_KEY; 9618 __mark_reg_known_zero(&callee->regs[BPF_REG_2]); 9619 callee->regs[BPF_REG_2].map_ptr = caller->regs[BPF_REG_1].map_ptr; 9687 callee->regs[BPF_REG_2] = caller->regs[BPF_REG_3]; 9713 callee->regs[BPF_REG_2].type = PTR_TO_MAP_KEY; 9714 __mark_reg_known_zero(&callee->regs[BPF_REG_2]); [all...] |
/linux-master/lib/ |
H A D | test_bpf.c | 41 #define R2 BPF_REG_2
|
/linux-master/net/core/ |
H A D | filter.c | 8841 *insn++ = BPF_ALU64_REG(BPF_XOR, BPF_REG_2, BPF_REG_2); 8867 *insn++ = BPF_MOV64_IMM(BPF_REG_2, orig->imm); 8869 *insn++ = BPF_MOV64_REG(BPF_REG_2, orig->src_reg); 8871 *insn++ = BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, orig->imm);
|