Searched refs:jit_ctx (Results 1 – 5 of 5) sorted by relevance
| /linux-6.15/arch/loongarch/net/ |
| H A D | bpf_jit.h | 13 struct jit_ctx { struct 27 struct jit_ctx ctx; argument 52 static inline int bpf2la_offset(int bpf_insn, int off, const struct jit_ctx *ctx) in bpf2la_offset() 64 static inline int epilogue_offset(const struct jit_ctx *ctx) in epilogue_offset() 73 static inline void emit_zext_32(struct jit_ctx *ctx, enum loongarch_gpr reg, bool is32) in emit_zext_32() 82 static inline void emit_sext_32(struct jit_ctx *ctx, enum loongarch_gpr reg, bool is32) in emit_sext_32() 90 static inline void move_addr(struct jit_ctx *ctx, enum loongarch_gpr rd, u64 addr) in move_addr() 174 static inline void move_reg(struct jit_ctx *ctx, enum loongarch_gpr rd, in move_reg() 264 static inline void uncond_jmp_offs26(struct jit_ctx *ctx, int jmp_offset) in uncond_jmp_offs26() 269 static inline int emit_cond_jmp(struct jit_ctx *ctx, u8 cond, enum loongarch_gpr rj, in emit_cond_jmp() [all …]
|
| H A D | bpf_jit.c | 35 static void mark_call(struct jit_ctx *ctx) in mark_call() 40 static void mark_tail_call(struct jit_ctx *ctx) in mark_tail_call() 45 static bool seen_call(struct jit_ctx *ctx) in seen_call() 50 static bool seen_tail_call(struct jit_ctx *ctx) in seen_tail_call() 55 static u8 tail_call_reg(struct jit_ctx *ctx) in tail_call_reg() 89 static void build_prologue(struct jit_ctx *ctx) in build_prologue() 196 static void build_epilogue(struct jit_ctx *ctx) in build_epilogue() 213 static int emit_bpf_tail_call(struct jit_ctx *ctx) in emit_bpf_tail_call() 414 struct jit_ctx *ctx, in add_exception_handler() 1171 static int validate_code(struct jit_ctx *ctx) in validate_code() [all …]
|
| /linux-6.15/arch/arm/net/ |
| H A D | bpf_jit_32.c | 202 struct jit_ctx { struct 680 struct jit_ctx *ctx) in arm_bpf_get_reg64() 711 struct jit_ctx *ctx) in arm_bpf_put_reg64() 733 struct jit_ctx *ctx) in emit_a32_mov_i() 785 struct jit_ctx *ctx) { in emit_a32_sub_r() 885 struct jit_ctx *ctx) { in emit_a32_mov_r64() 993 struct jit_ctx *ctx){ in emit_a32_neg64() 1009 struct jit_ctx *ctx) { in emit_a32_lsh_r64() 1058 struct jit_ctx *ctx) { in emit_a32_rsh_r64() 1167 struct jit_ctx *ctx) { in emit_a32_mul_r64() [all …]
|
| /linux-6.15/arch/arm64/net/ |
| H A D | bpf_jit_comp.c | 75 struct jit_ctx { struct 110 const s32 val, struct jit_ctx *ctx) in emit_a64_mov_i() 139 struct jit_ctx *ctx) in emit_a64_mov_i64() 175 struct jit_ctx *ctx) in emit_addr_mov_i64() 230 const struct jit_ctx *ctx) in bpf2a64_offset() 926 static void build_plt(struct jit_ctx *ctx) in build_plt() 1035 struct jit_ctx *ctx, in add_exception_handler() 1869 struct jit_ctx ctx; 1882 struct jit_ctx ctx; in bpf_int_jit_compile() 2475 struct jit_ctx ctx = { in arch_bpf_trampoline_size() [all …]
|
| /linux-6.15/arch/sparc/net/ |
| H A D | bpf_jit_comp_64.c | 189 struct jit_ctx { struct 256 static void emit_nop(struct jit_ctx *ctx) in emit_nop() 299 struct jit_ctx *ctx) in emit_alu_K() 318 unsigned int dst, struct jit_ctx *ctx) in emit_alu3_K() 451 int shift_count, struct jit_ctx *ctx) in sparc_emit_set_const64_quick2() 617 struct jit_ctx *ctx) in emit_branch() 636 const u8 dst, s32 imm, struct jit_ctx *ctx) in emit_cbcondi() 660 struct jit_ctx *ctx) in emit_compare_and_branch() 1438 static int build_body(struct jit_ctx *ctx) in build_body() 1477 struct jit_ctx ctx; [all …]
|