Home
last modified time | relevance | path

Searched refs:jit_context (Results 1 – 7 of 7) sorted by relevance

/linux-6.12.1/arch/mips/net/
Dbpf_jit_comp.h75 struct jit_context { struct
127 static inline void access_reg(struct jit_context *ctx, u8 reg) in access_reg()
136 static inline void clobber_reg(struct jit_context *ctx, u8 reg) in clobber_reg()
145 int push_regs(struct jit_context *ctx, u32 mask, u32 excl, int depth);
151 int pop_regs(struct jit_context *ctx, u32 mask, u32 excl, int depth);
154 int get_target(struct jit_context *ctx, u32 loc);
157 int get_offset(const struct jit_context *ctx, int off);
160 void emit_mov_i(struct jit_context *ctx, u8 dst, s32 imm);
163 void emit_mov_r(struct jit_context *ctx, u8 dst, u8 src);
172 void emit_alu_i(struct jit_context *ctx, u8 dst, s32 imm, u8 op);
[all …]
Dbpf_jit_comp.c127 int push_regs(struct jit_context *ctx, u32 mask, u32 excl, int depth) in push_regs()
150 int pop_regs(struct jit_context *ctx, u32 mask, u32 excl, int depth) in pop_regs()
169 int get_target(struct jit_context *ctx, u32 loc) in get_target()
185 int get_offset(const struct jit_context *ctx, int off) in get_offset()
192 void emit_mov_i(struct jit_context *ctx, u8 dst, s32 imm) in emit_mov_i()
204 void emit_mov_r(struct jit_context *ctx, u8 dst, u8 src) in emit_mov_r()
298 void emit_alu_i(struct jit_context *ctx, u8 dst, s32 imm, u8 op) in emit_alu_i()
342 void emit_alu_r(struct jit_context *ctx, u8 dst, u8 src, u8 op) in emit_alu_r()
409 void emit_atomic_r(struct jit_context *ctx, u8 dst, u8 src, s16 off, u8 code) in emit_atomic_r()
445 void emit_cmpxchg_r(struct jit_context *ctx, u8 dst, u8 src, u8 res, s16 off) in emit_cmpxchg_r()
[all …]
Dbpf_jit_comp32.c167 static void clobber_reg64(struct jit_context *ctx, const u8 reg[]) in clobber_reg64()
174 static void emit_mov_se_i64(struct jit_context *ctx, const u8 dst[], s32 imm) in emit_mov_se_i64()
185 static void emit_zext_ver(struct jit_context *ctx, const u8 dst[]) in emit_zext_ver()
194 static void emit_load_delay(struct jit_context *ctx) in emit_load_delay()
201 static void emit_alu_i64(struct jit_context *ctx, in emit_alu_i64()
267 static void emit_alu_r64(struct jit_context *ctx, in emit_alu_r64()
310 static void emit_neg_i64(struct jit_context *ctx, const u8 dst[]) in emit_neg_i64()
321 static void emit_shift_i64(struct jit_context *ctx, in emit_shift_i64()
366 static void emit_shift_r64(struct jit_context *ctx, in emit_shift_r64()
423 static void emit_mul_i64(struct jit_context *ctx, const u8 dst[], s32 imm) in emit_mul_i64()
[all …]
Dbpf_jit_comp64.c98 static void emit_sext(struct jit_context *ctx, u8 dst, u8 src) in emit_sext()
105 static void emit_zext(struct jit_context *ctx, u8 dst) in emit_zext()
117 static void emit_zext_ver(struct jit_context *ctx, u8 dst) in emit_zext_ver()
124 static void emit_mov_i64(struct jit_context *ctx, u8 dst, u64 imm64) in emit_mov_i64()
158 static void emit_alu_i64(struct jit_context *ctx, u8 dst, s32 imm, u8 op) in emit_alu_i64()
201 static void emit_alu_r64(struct jit_context *ctx, u8 dst, u8 src, u8 op) in emit_alu_r64()
262 static void emit_swap_r64(struct jit_context *ctx, u8 dst, u8 mask, u32 bits) in emit_swap_r64()
274 static void emit_bswap_r64(struct jit_context *ctx, u8 dst, u32 width) in emit_bswap_r64()
316 static void emit_trunc_r64(struct jit_context *ctx, u8 dst, u32 width) in emit_trunc_r64()
334 static void emit_ldx(struct jit_context *ctx, u8 dst, u8 src, s16 off, u8 size) in emit_ldx()
[all …]
/linux-6.12.1/arch/arc/net/
Dbpf_jit_core.c100 struct jit_context { struct
140 static void jit_dump(const struct jit_context *ctx) in jit_dump() argument
160 static int jit_ctx_init(struct jit_context *ctx, struct bpf_prog *prog) in jit_ctx_init()
185 static inline bool offsets_available(const struct jit_context *ctx) in offsets_available()
195 static inline void maybe_free(struct jit_context *ctx, void **mem) in maybe_free()
215 static void jit_ctx_cleanup(struct jit_context *ctx) in jit_ctx_cleanup()
248 static void analyze_reg_usage(struct jit_context *ctx) in analyze_reg_usage()
268 static inline int jit_buffer_check(const struct jit_context *ctx) in jit_buffer_check()
285 static inline void jit_buffer_update(struct jit_context *ctx, u32 n) in jit_buffer_update()
294 static inline u8 *effective_jit_buf(const struct jit_context *ctx) in effective_jit_buf()
[all …]
/linux-6.12.1/arch/x86/net/
Dbpf_jit_comp.c307 struct jit_context { struct
692 struct jit_context *ctx) in emit_bpf_tail_call_indirect()
781 struct jit_context *ctx) in emit_bpf_tail_call_direct()
1416 int oldproglen, struct jit_context *ctx, bool jmp_padding) in do_jit()
3312 struct jit_context ctx;
3325 struct jit_context ctx = {}; in bpf_int_jit_compile()
Dbpf_jit_comp32.c1186 struct jit_context { struct
1660 int oldproglen, struct jit_context *ctx) in do_jit()
2526 struct jit_context ctx = {}; in bpf_int_jit_compile()