Searched refs:BPF_REG_0 (Results 1 - 25 of 104) sorted by path

12345

/linux-master/tools/testing/selftests/bpf/verifier/
H A Dbasic_stx_ldx.c31 BPF_LDX_MEM(BPF_B, BPF_REG_0, 12, 0),
H A Dld_abs.c7 BPF_MOV64_REG(BPF_REG_0, BPF_REG_1),
19 BPF_MOV64_REG(BPF_REG_0, BPF_REG_2),
31 BPF_MOV64_REG(BPF_REG_0, BPF_REG_3),
43 BPF_MOV64_REG(BPF_REG_0, BPF_REG_4),
55 BPF_MOV64_REG(BPF_REG_0, BPF_REG_5),
67 BPF_MOV64_REG(BPF_REG_0, BPF_REG_7),
89 BPF_MOV64_IMM(BPF_REG_0, 42),
110 BPF_MOV32_IMM(BPF_REG_0, 256),
112 BPF_LD_IND(BPF_DW, BPF_REG_0, 0),
124 BPF_JMP_IMM(BPF_JNE, BPF_REG_0,
[all...]
/linux-master/arch/arm/net/
H A Dbpf_jit_32.c152 [BPF_REG_0] = {ARM_R1, ARM_R0},
1527 const s8 arm_r0 = bpf2a32[BPF_REG_0][1];
2050 const s8 *r0 = bpf2a32[BPF_REG_0];
/linux-master/arch/arm64/net/
H A Dbpf_jit_comp.c47 [BPF_REG_0] = A64_R(7),
539 emit(A64_CASAL(isdw, src, reg, bpf2a64[BPF_REG_0]), ctx);
627 const u8 r0 = bpf2a64[BPF_REG_0];
697 const u8 r0 = bpf2a64[BPF_REG_0];
1181 const u8 r0 = bpf2a64[BPF_REG_0];
/linux-master/arch/loongarch/net/
H A Dbpf_jit.c17 [BPF_REG_0] = LOONGARCH_GPR_A5,
182 move_reg(ctx, LOONGARCH_GPR_A0, regmap[BPF_REG_0]);
287 const u8 r0 = regmap[BPF_REG_0];
908 move_reg(ctx, regmap[BPF_REG_0], LOONGARCH_GPR_A0);
/linux-master/arch/mips/net/
H A Dbpf_jit_comp32.c118 [BPF_REG_0] = {MIPS_R_V1, MIPS_R_V0},
528 const u8 *r0 = bpf2mips32[BPF_REG_0]; /* Mapped to v0-v1 */
800 const u8 *r0 = bpf2mips32[BPF_REG_0]; /* Mapped to v0-v1 */
875 const u8 *r0 = bpf2mips32[BPF_REG_0];
912 const u8 *r0 = bpf2mips32[BPF_REG_0];
1467 const u8 *res = bpf2mips32[BPF_REG_0];
H A Dbpf_jit_comp64.c66 [BPF_REG_0] = MIPS_R_V0,
423 u8 r0 = bpf2mips64[BPF_REG_0];
639 u8 res = bpf2mips64[BPF_REG_0];
/linux-master/arch/parisc/net/
H A Dbpf_jit_comp32.c75 [BPF_REG_0] = {HPPA_REG_RET0, HPPA_REG_RET1}, /* HI/LOW */
179 const s8 *r0 = regmap[BPF_REG_0];
271 bpf_put_reg64(regmap[TMP_REG_R0], regmap[BPF_REG_0], ctx);
276 bpf_get_reg64(regmap[TMP_REG_R0], regmap[BPF_REG_0], ctx);
889 const s8 *r0 = regmap[BPF_REG_0];
H A Dbpf_jit_comp64.c21 [BPF_REG_0] = HPPA_REG_RET0,
230 emit_hppa64_sext32(regmap[BPF_REG_0], HPPA_REG_RET0, ctx);
502 emit_hppa_copy(HPPA_REG_RET0, regmap[BPF_REG_0], ctx);
/linux-master/arch/powerpc/net/
H A Dbpf_jit_comp32.c49 ctx->b2p[BPF_REG_0] = _R12;
111 for (i = BPF_REG_0; i <= TMP_REG; i++) {
196 EMIT(PPC_RAW_MR(_R3, bpf_to_ppc(BPF_REG_0)));
882 * Return old value in BPF_REG_0 for BPF_CMPXCHG &
885 ret_reg = bpf_to_ppc(BPF_REG_0);
887 /* Compare with old value in BPF_REG_0 */
888 EMIT(PPC_RAW_CMPW(bpf_to_ppc(BPF_REG_0), _R0));
1061 EMIT(PPC_RAW_MR(bpf_to_ppc(BPF_REG_0) - 1, _R3));
1062 EMIT(PPC_RAW_MR(bpf_to_ppc(BPF_REG_0), _R4));
H A Dbpf_jit_comp64.c52 ctx->b2p[BPF_REG_0] = _R8;
200 EMIT(PPC_RAW_MR(_R3, bpf_to_ppc(BPF_REG_0)));
836 * Return old value in BPF_REG_0 for BPF_CMPXCHG &
839 ret_reg = bpf_to_ppc(BPF_REG_0);
843 EMIT(PPC_RAW_CMPD(bpf_to_ppc(BPF_REG_0), tmp2_reg));
845 EMIT(PPC_RAW_CMPW(bpf_to_ppc(BPF_REG_0), tmp2_reg));
1003 /* move return value from r3 to BPF_REG_0 */
1004 EMIT(PPC_RAW_MR(bpf_to_ppc(BPF_REG_0), _R3));
/linux-master/arch/riscv/net/
H A Dbpf_jit_comp32.c73 [BPF_REG_0] = {RV_REG_S2, RV_REG_S1},
146 const s8 *r0 = bpf2rv32[BPF_REG_0];
744 const s8 *r0 = bpf2rv32[BPF_REG_0];
H A Dbpf_jit_comp64.c23 [BPF_REG_0] = RV_REG_A5,
533 r0 = bpf_to_rv_reg(BPF_REG_0, ctx);
746 emit_sd(RV_REG_FP, -(retval_off - 8), regmap[BPF_REG_0], ctx);
947 emit_sd(RV_REG_FP, -(retval_off - 8), regmap[BPF_REG_0], ctx);
981 emit_ld(regmap[BPF_REG_0], -(retval_off - 8), RV_REG_FP, ctx);
1487 emit_mv(bpf_to_rv_reg(BPF_REG_0, ctx), RV_REG_A0, ctx);
/linux-master/arch/s390/net/
H A Dbpf_jit_comp.c77 #define REG_14 BPF_REG_0 /* Register 14 */
84 [BPF_REG_0] = 14,
648 EMIT4(0xb9040000, REG_2, BPF_REG_0);
1472 BPF_REG_0, src_reg, dst_reg, off);
1583 EMIT4(0xb9040000, BPF_REG_0, REG_2);
/linux-master/arch/sparc/net/
H A Dbpf_jit_comp_64.c210 [BPF_REG_0] = O5,
847 emit(RESTORE | RS1(bpf2sparc[BPF_REG_0]) | RS2(G0) | RD(O0), ctx);
1223 emit_reg_move(O0, bpf2sparc[BPF_REG_0], ctx);
/linux-master/arch/x86/net/
H A Dbpf_jit_comp.c129 [BPF_REG_0] = 0, /* RAX */
147 [BPF_REG_0] = offsetof(struct pt_regs, ax),
191 return reg == BPF_REG_0;
913 EMIT3(add_2reg(0x44, BPF_REG_0, val_reg), add_2reg(0, ptr_reg, index_reg) /* SIB */, off);
915 EMIT2_off32(add_2reg(0x84, BPF_REG_0, val_reg), add_2reg(0, ptr_reg, index_reg) /* SIB */, off);
1478 if (dst_reg != BPF_REG_0)
1484 if (src_reg == BPF_REG_0 ||
1496 if (dst_reg != BPF_REG_0)
1498 emit_mov_reg(&prog, is64, BPF_REG_0, dst_reg);
1526 dst_reg != BPF_REG_0)
[all...]
H A Dbpf_jit_comp32.c140 [BPF_REG_0] = {STACK_OFFSET(0), STACK_OFFSET(4)},
1248 const u8 *r0 = bpf2ia32[BPF_REG_0];
1597 last_stack_regno = BPF_REG_0 + fm->nr_args;
1643 STACK_VAR(bpf2ia32[BPF_REG_0][0]));
1648 STACK_VAR(bpf2ia32[BPF_REG_0][1]));
1680 const u8 *r0 = bpf2ia32[BPF_REG_0];
/linux-master/drivers/net/ethernet/netronome/nfp/bpf/
H A Djit.c3770 u8 adj = (reg - BPF_REG_0) * 2;
3795 u8 adj = (reg - BPF_REG_0) * 2;
H A Dverifier.c314 const struct bpf_reg_state *reg0 = cur_regs(env) + BPF_REG_0;
/linux-master/include/linux/
H A Dfilter.h55 #define BPF_REG_A BPF_REG_0
/linux-master/include/uapi/linux/
H A Dbpf.h60 BPF_REG_0 = 0, enumerator in enum:__anon2579
/linux-master/kernel/bpf/
H A Darraymap.c210 const int ret = BPF_REG_0;
1339 const int ret = BPF_REG_0;
H A Dcore.c45 #define BPF_R0 regs[BPF_REG_0]
H A Dhashtab.c720 const int ret = BPF_REG_0;
760 const int ret = BPF_REG_0;
2577 const int ret = BPF_REG_0;
H A Dverifier.c1746 BPF_REG_0, BPF_REG_1, BPF_REG_2, BPF_REG_3, BPF_REG_4, BPF_REG_5
3209 return BPF_REG_0;
3703 bt_clear_reg(bt, BPF_REG_0);
3768 bt_clear_reg(bt, BPF_REG_0);
3807 bt_is_reg_set(bt, BPF_REG_0);
3809 bt_clear_reg(bt, BPF_REG_0);
3814 bt_set_reg(bt, BPF_REG_0);
4042 for (i = BPF_REG_0; i < BPF_REG_10; ++i) {
7014 const u32 aux_reg = BPF_REG_0;
7044 load_reg = BPF_REG_0;
[all...]

Completed in 451 milliseconds

12345