Searched refs:BPF_REG_1 (Results 51 - 75 of 84) sorted by relevance

1234

/linux-master/tools/testing/selftests/bpf/progs/
H A Dverifier_unpriv.c395 BPF_ST_MEM(BPF_W, BPF_REG_1, offsetof(struct __sk_buff, mark), 42))
H A Dsyscall.c105 BPF_LD_MAP_FD(BPF_REG_1, 0),
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dreg_bounds.c882 emit(BPF_MOV32_IMM(BPF_REG_1, (s32)x.a));
885 BPF_REG_6, BPF_REG_1, JMP_TO(exit_pos)));
889 emit(BPF_LD_IMM64(BPF_REG_1, x.a));
892 BPF_REG_6, BPF_REG_1, JMP_TO(exit_pos)));
903 emit(BPF_MOV32_IMM(BPF_REG_1, (s32)y.a));
906 BPF_REG_7, BPF_REG_1, JMP_TO(exit_pos)));
910 emit(BPF_LD_IMM64(BPF_REG_1, y.a));
913 BPF_REG_7, BPF_REG_1, JMP_TO(exit_pos)));
/linux-master/tools/include/linux/
H A Dfilter.h14 #define BPF_REG_ARG1 BPF_REG_1
/linux-master/net/xdp/
H A Dxskmap.c123 const int ret = BPF_REG_0, mp = BPF_REG_1, index = BPF_REG_2;
/linux-master/tools/testing/selftests/bpf/
H A Dtest_lru_map.c47 BPF_LD_MAP_FD(BPF_REG_1, fd),
54 BPF_LDX_MEM(BPF_DW, BPF_REG_1, BPF_REG_0, 0),
55 BPF_STX_MEM(BPF_DW, BPF_REG_9, BPF_REG_1, 0),
H A Dtest_sock_addr.c765 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1),
828 BPF_MOV64_REG(BPF_REG_6, BPF_REG_1),
/linux-master/arch/x86/net/
H A Dbpf_jit_comp.c130 [BPF_REG_1] = 7, /* RDI */
148 [BPF_REG_1] = offsetof(struct pt_regs, di),
184 (1 << reg) & (BIT(BPF_REG_1) |
2434 nr_regs == 5 ? X86_REG_R9 : BPF_REG_1 + nr_regs,
2462 nr_regs == 5 ? X86_REG_R9 : BPF_REG_1 + nr_regs,
2489 emit_mov_imm64(&prog, BPF_REG_1, (long) cookie >> 32, (u32) (long) cookie);
2498 emit_stx(&prog, BPF_DW, BPF_REG_FP, BPF_REG_1, -run_ctx_off + ctx_cookie_off);
2501 emit_mov_imm64(&prog, BPF_REG_1, (long) p >> 32, (u32) (long) p);
2551 emit_mov_imm64(&prog, BPF_REG_1, (long) p >> 32, (u32) (long) p);
2864 emit_mov_imm64(&prog, BPF_REG_1, (lon
[all...]
H A Dbpf_jit_comp32.c144 [BPF_REG_1] = {STACK_OFFSET(8), STACK_OFFSET(12)},
174 * Stack space for BPF_REG_1, BPF_REG_2, BPF_REG_3, BPF_REG_4,
1204 const u8 *r1 = bpf2ia32[BPF_REG_1];
1303 const u8 *r1 = bpf2ia32[BPF_REG_1];
1555 * [BPF_REG_1, first_stack_regno) to EAX, EDX, and ECX.
1585 first_stack_regno = BPF_REG_1;
1609 for (i = BPF_REG_1; i < first_stack_regno; i++) {
2085 const u8 *r1 = bpf2ia32[BPF_REG_1];
/linux-master/kernel/bpf/
H A Dverifier.c66 * If instruction is BPF_MOV64_REG(BPF_REG_1, BPF_REG_5), then type of R5 is
79 * BPF_MOV64_REG(BPF_REG_1, BPF_REG_10),
80 * BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, -20),
132 * BPF_LD_MAP_FD(BPF_REG_1, map_fd), // after this insn R1 type is CONST_PTR_TO_MAP
1746 BPF_REG_0, BPF_REG_1, BPF_REG_2, BPF_REG_3, BPF_REG_4, BPF_REG_5
3726 for (i = BPF_REG_1; i <= BPF_REG_5; i++) {
3755 for (i = BPF_REG_1; i <= BPF_REG_5; i++)
3789 for (i = BPF_REG_1; i <= BPF_REG_5; i++)
8468 state = &regs[BPF_REG_1 + i];
8574 u32 regno = BPF_REG_1
[all...]
H A Darraymap.c211 const int map_ptr = BPF_REG_1;
1340 const int map_ptr = BPF_REG_1;
/linux-master/arch/parisc/net/
H A Dbpf_jit_comp64.c22 [BPF_REG_1] = HPPA_R(5),
469 emit_hppa_copy(regmap[BPF_REG_1], HPPA_REG_ARG0, ctx);
1167 LOAD_PARAM(HPPA_REG_ARG0, BPF_REG_1);
H A Dbpf_jit_comp32.c78 [BPF_REG_1] = {HPPA_R(3), HPPA_R(4)},
913 reg = bpf_get_reg64_offset(regmap[BPF_REG_1], tmp, offset_sp, ctx);
1587 dst = regmap[BPF_REG_1];
/linux-master/arch/powerpc/net/
H A Dbpf_jit_comp32.c51 ctx->b2p[BPF_REG_1] = _R4;
145 EMIT(PPC_RAW_MR(bpf_to_ppc(BPF_REG_1), _R3));
146 EMIT(PPC_RAW_LI(bpf_to_ppc(BPF_REG_1) - 1, 0));
225 * r3-r4/BPF_REG_1 - pointer to ctx -- passed as is to the next bpf program
267 EMIT(PPC_RAW_MR(_R3, bpf_to_ppc(BPF_REG_1)));
H A Dbpf_jit_comp64.c54 ctx->b2p[BPF_REG_1] = _R3;
280 * r3/BPF_REG_1 - pointer to ctx -- passed as is to the next bpf program
/linux-master/drivers/net/ethernet/netronome/nfp/bpf/
H A Dverifier.c85 const struct bpf_reg_state *reg1 = cur_regs(env) + BPF_REG_1;
174 const struct bpf_reg_state *reg1 = cur_regs(env) + BPF_REG_1;
/linux-master/tools/testing/selftests/net/
H A Dreuseport_bpf.c99 /* BPF_MOV64_REG(BPF_REG_6, BPF_REG_1) */
100 { BPF_ALU64 | BPF_MOV | BPF_X, BPF_REG_6, BPF_REG_1, 0, 0 },
/linux-master/arch/mips/net/
H A Dbpf_jit_comp32.c120 [BPF_REG_1] = {MIPS_R_A1, MIPS_R_A0},
529 const u8 *r1 = bpf2mips32[BPF_REG_1]; /* Mapped to a0-a1 */
801 const u8 *r1 = bpf2mips32[BPF_REG_1]; /* Mapped to a0-a1 */
1375 const u8 *r1 = bpf2mips32[BPF_REG_1];
H A Dbpf_jit_comp64.c68 [BPF_REG_1] = MIPS_R_A0,
/linux-master/include/linux/
H A Dbpf_verifier.h244 #define BPF_REGMASK_ARGS ((1 << BPF_REG_1) | (1 << BPF_REG_2) | \
/linux-master/arch/s390/net/
H A Dbpf_jit_comp.c72 #define REG_2 BPF_REG_1 /* Register 2 */
86 [BPF_REG_1] = 2,
1571 if (sign_extend(jit, BPF_REG_1 + j,
/linux-master/arch/arm/net/
H A Dbpf_jit_32.c154 [BPF_REG_1] = {ARM_R3, ARM_R2},
1528 const s8 *bpf_r1 = bpf2a32[BPF_REG_1];
2051 const s8 *r1 = bpf2a32[BPF_REG_1];
/linux-master/arch/riscv/net/
H A Dbpf_jit_comp32.c75 [BPF_REG_1] = {RV_REG_A1, RV_REG_A0},
1307 const s8 *r1 = bpf2rv32[BPF_REG_1];
H A Dbpf_jit_comp64.c24 [BPF_REG_1] = RV_REG_A0,
1475 u8 reg = bpf_to_rv_reg(BPF_REG_1 + idx, ctx);
/linux-master/arch/loongarch/net/
H A Dbpf_jit.c19 [BPF_REG_1] = LOONGARCH_GPR_A0,

Completed in 622 milliseconds

1234