Searched refs:bpf_to_ppc (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.6/arch/powerpc/net/ |
D | bpf_jit_comp64.c | 83 return ctx->seen & SEEN_FUNC || bpf_is_seen_register(ctx, bpf_to_ppc(BPF_REG_FP)); in bpf_has_stack_frame() 140 EMIT(PPC_RAW_LI(bpf_to_ppc(TMP_REG_1), 0)); in bpf_jit_build_prologue() 142 EMIT(PPC_RAW_STD(bpf_to_ppc(TMP_REG_1), _R1, -(BPF_PPC_STACK_SAVE + 8))); in bpf_jit_build_prologue() 167 if (bpf_is_seen_register(ctx, bpf_to_ppc(i))) in bpf_jit_build_prologue() 168 EMIT(PPC_RAW_STD(bpf_to_ppc(i), _R1, bpf_jit_stack_offsetof(ctx, bpf_to_ppc(i)))); in bpf_jit_build_prologue() 171 if (bpf_is_seen_register(ctx, bpf_to_ppc(BPF_REG_FP))) in bpf_jit_build_prologue() 172 EMIT(PPC_RAW_ADDI(bpf_to_ppc(BPF_REG_FP), _R1, in bpf_jit_build_prologue() 182 if (bpf_is_seen_register(ctx, bpf_to_ppc(i))) in bpf_jit_emit_common_epilogue() 183 EMIT(PPC_RAW_LD(bpf_to_ppc(i), _R1, bpf_jit_stack_offsetof(ctx, bpf_to_ppc(i)))); in bpf_jit_emit_common_epilogue() 200 EMIT(PPC_RAW_MR(_R3, bpf_to_ppc(BPF_REG_0))); in bpf_jit_build_epilogue() [all …]
|
D | bpf_jit_comp32.c | 93 bpf_is_seen_register(ctx, bpf_to_ppc(BPF_REG_FP)); in bpf_has_stack_frame() 145 EMIT(PPC_RAW_MR(bpf_to_ppc(BPF_REG_1), _R3)); in bpf_jit_build_prologue() 146 EMIT(PPC_RAW_LI(bpf_to_ppc(BPF_REG_1) - 1, 0)); in bpf_jit_build_prologue() 163 if (bpf_is_seen_register(ctx, bpf_to_ppc(BPF_REG_FP))) { in bpf_jit_build_prologue() 164 EMIT(PPC_RAW_LI(bpf_to_ppc(BPF_REG_FP) - 1, 0)); in bpf_jit_build_prologue() 165 EMIT(PPC_RAW_ADDI(bpf_to_ppc(BPF_REG_FP), _R1, in bpf_jit_build_prologue() 196 EMIT(PPC_RAW_MR(_R3, bpf_to_ppc(BPF_REG_0))); in bpf_jit_build_epilogue() 228 int b2p_bpf_array = bpf_to_ppc(BPF_REG_2); in bpf_jit_emit_tail_call() 229 int b2p_index = bpf_to_ppc(BPF_REG_3); in bpf_jit_emit_tail_call() 266 EMIT(PPC_RAW_MR(_R3, bpf_to_ppc(BPF_REG_1))); in bpf_jit_emit_tail_call() [all …]
|
D | bpf_jit.h | 142 #define bpf_to_ppc(r) (ctx->b2p[r]) macro
|