Home
last modified time | relevance | path

Searched refs:bpf_to_ppc (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/arch/powerpc/net/
Dbpf_jit_comp64.c83 return ctx->seen & SEEN_FUNC || bpf_is_seen_register(ctx, bpf_to_ppc(BPF_REG_FP)); in bpf_has_stack_frame()
138 EMIT(PPC_RAW_LI(bpf_to_ppc(TMP_REG_1), 0)); in bpf_jit_build_prologue()
140 EMIT(PPC_RAW_STD(bpf_to_ppc(TMP_REG_1), _R1, -(BPF_PPC_STACK_SAVE + 8))); in bpf_jit_build_prologue()
165 if (bpf_is_seen_register(ctx, bpf_to_ppc(i))) in bpf_jit_build_prologue()
166 EMIT(PPC_RAW_STD(bpf_to_ppc(i), _R1, bpf_jit_stack_offsetof(ctx, bpf_to_ppc(i)))); in bpf_jit_build_prologue()
169 if (bpf_is_seen_register(ctx, bpf_to_ppc(BPF_REG_FP))) in bpf_jit_build_prologue()
170 EMIT(PPC_RAW_ADDI(bpf_to_ppc(BPF_REG_FP), _R1, in bpf_jit_build_prologue()
180 if (bpf_is_seen_register(ctx, bpf_to_ppc(i))) in bpf_jit_emit_common_epilogue()
181 EMIT(PPC_RAW_LD(bpf_to_ppc(i), _R1, bpf_jit_stack_offsetof(ctx, bpf_to_ppc(i)))); in bpf_jit_emit_common_epilogue()
198 EMIT(PPC_RAW_MR(_R3, bpf_to_ppc(BPF_REG_0))); in bpf_jit_build_epilogue()
[all …]
Dbpf_jit_comp32.c127 EMIT(PPC_RAW_MR(bpf_to_ppc(BPF_REG_1), _R3)); in bpf_jit_build_prologue()
128 EMIT(PPC_RAW_LI(bpf_to_ppc(BPF_REG_1) - 1, 0)); in bpf_jit_build_prologue()
145 if (bpf_is_seen_register(ctx, bpf_to_ppc(BPF_REG_5))) { in bpf_jit_build_prologue()
146 EMIT(PPC_RAW_LWZ(bpf_to_ppc(BPF_REG_5) - 1, _R1, BPF_PPC_STACKFRAME(ctx)) + 8); in bpf_jit_build_prologue()
147 EMIT(PPC_RAW_LWZ(bpf_to_ppc(BPF_REG_5), _R1, BPF_PPC_STACKFRAME(ctx)) + 12); in bpf_jit_build_prologue()
151 if (bpf_is_seen_register(ctx, bpf_to_ppc(BPF_REG_FP))) { in bpf_jit_build_prologue()
152 EMIT(PPC_RAW_LI(bpf_to_ppc(BPF_REG_FP) - 1, 0)); in bpf_jit_build_prologue()
153 EMIT(PPC_RAW_ADDI(bpf_to_ppc(BPF_REG_FP), _R1, in bpf_jit_build_prologue()
183 EMIT(PPC_RAW_MR(_R3, bpf_to_ppc(BPF_REG_0))); in bpf_jit_build_epilogue()
218 int b2p_bpf_array = bpf_to_ppc(BPF_REG_2); in bpf_jit_emit_tail_call()
[all …]
Dbpf_jit_comp.c75 PPC_LI32(bpf_to_ppc(insn[i].dst_reg) - 1, (u32)insn[i + 1].imm); in bpf_jit_fixup_addresses()
76 PPC_LI32(bpf_to_ppc(insn[i].dst_reg), (u32)insn[i].imm); in bpf_jit_fixup_addresses()
81 PPC_LI64(bpf_to_ppc(insn[i].dst_reg), func_addr); in bpf_jit_fixup_addresses()
Dbpf_jit.h140 #define bpf_to_ppc(r) (ctx->b2p[r]) macro