Lines Matching defs:ctx
121 #define emit_instr(ctx, func, ...) \ argument
134 #define emit_long_instr(ctx, func, ...) \ argument
150 unsigned int src2, struct jit_ctx *ctx) in emit_addu()
155 static inline void emit_nop(struct jit_ctx *ctx) in emit_nop()
161 static inline void emit_load_imm(unsigned int dst, u32 imm, struct jit_ctx *ctx) in emit_load_imm()
182 unsigned int src2, struct jit_ctx *ctx) in emit_or()
188 struct jit_ctx *ctx) in emit_ori()
199 int imm, struct jit_ctx *ctx) in emit_daddiu()
209 u32 imm, struct jit_ctx *ctx) in emit_addiu()
220 unsigned int src2, struct jit_ctx *ctx) in emit_and()
226 u32 imm, struct jit_ctx *ctx) in emit_andi()
238 unsigned int src2, struct jit_ctx *ctx) in emit_xor()
243 static inline void emit_xori(ptr dst, ptr src, u32 imm, struct jit_ctx *ctx) in emit_xori()
254 static inline void emit_stack_offset(int offset, struct jit_ctx *ctx) in emit_stack_offset()
260 unsigned int src2, struct jit_ctx *ctx) in emit_subu()
265 static inline void emit_neg(unsigned int reg, struct jit_ctx *ctx) in emit_neg()
271 unsigned int sa, struct jit_ctx *ctx) in emit_sllv()
277 unsigned int sa, struct jit_ctx *ctx) in emit_sll()
288 unsigned int sa, struct jit_ctx *ctx) in emit_srlv()
294 unsigned int sa, struct jit_ctx *ctx) in emit_srl()
305 unsigned int src2, struct jit_ctx *ctx) in emit_slt()
311 unsigned int src2, struct jit_ctx *ctx) in emit_sltu()
317 unsigned int imm, struct jit_ctx *ctx) in emit_sltiu()
332 struct jit_ctx *ctx) in emit_store_stack_reg()
338 struct jit_ctx *ctx) in emit_store()
345 struct jit_ctx *ctx) in emit_load_stack_reg()
351 unsigned int offset, struct jit_ctx *ctx) in emit_load()
357 unsigned int offset, struct jit_ctx *ctx) in emit_load_byte()
363 unsigned int offset, struct jit_ctx *ctx) in emit_half_load()
369 unsigned int offset, struct jit_ctx *ctx) in emit_half_load_unsigned()
375 unsigned int src2, struct jit_ctx *ctx) in emit_mul()
381 struct jit_ctx *ctx) in emit_div()
393 struct jit_ctx *ctx) in emit_mod()
405 unsigned int sa, struct jit_ctx *ctx) in emit_dsll()
411 unsigned int sa, struct jit_ctx *ctx) in emit_dsrl32()
417 struct jit_ctx *ctx) in emit_wsbh()
424 int imm, struct jit_ctx *ctx) in emit_load_ptr()
432 struct jit_ctx *ctx) in emit_load_func()
447 static inline void emit_reg_move(ptr dst, ptr src, struct jit_ctx *ctx) in emit_reg_move()
453 static inline void emit_jit_reg_move(ptr dst, ptr src, struct jit_ctx *ctx) in emit_jit_reg_move()
459 static inline u32 b_imm(unsigned int tgt, struct jit_ctx *ctx) in b_imm()
482 unsigned int imm, struct jit_ctx *ctx) in emit_bcond()
505 static inline void emit_b(unsigned int imm, struct jit_ctx *ctx) in emit_b()
511 struct jit_ctx *ctx) in emit_jalr()
516 static inline void emit_jr(unsigned int reg, struct jit_ctx *ctx) in emit_jr()
529 static void save_bpf_jit_regs(struct jit_ctx *ctx, unsigned offset) in save_bpf_jit_regs()
564 static void restore_bpf_jit_regs(struct jit_ctx *ctx, in restore_bpf_jit_regs()
592 static unsigned int get_stack_depth(struct jit_ctx *ctx) in get_stack_depth()
609 static void build_prologue(struct jit_ctx *ctx) in build_prologue()
647 static void build_epilogue(struct jit_ctx *ctx) in build_epilogue()
665 static int build_body(struct jit_ctx *ctx) in build_body()
1212 struct jit_ctx ctx; in bpf_jit_compile() local