Lines Matching defs:ctx
122 #define emit_instr(ctx, func, ...) \ argument
135 #define emit_long_instr(ctx, func, ...) \ argument
151 unsigned int src2, struct jit_ctx *ctx) in emit_addu()
156 static inline void emit_nop(struct jit_ctx *ctx) in emit_nop()
162 static inline void emit_load_imm(unsigned int dst, u32 imm, struct jit_ctx *ctx) in emit_load_imm()
183 unsigned int src2, struct jit_ctx *ctx) in emit_or()
189 struct jit_ctx *ctx) in emit_ori()
200 int imm, struct jit_ctx *ctx) in emit_daddiu()
210 u32 imm, struct jit_ctx *ctx) in emit_addiu()
221 unsigned int src2, struct jit_ctx *ctx) in emit_and()
227 u32 imm, struct jit_ctx *ctx) in emit_andi()
239 unsigned int src2, struct jit_ctx *ctx) in emit_xor()
244 static inline void emit_xori(ptr dst, ptr src, u32 imm, struct jit_ctx *ctx) in emit_xori()
255 static inline void emit_stack_offset(int offset, struct jit_ctx *ctx) in emit_stack_offset()
261 unsigned int src2, struct jit_ctx *ctx) in emit_subu()
266 static inline void emit_neg(unsigned int reg, struct jit_ctx *ctx) in emit_neg()
272 unsigned int sa, struct jit_ctx *ctx) in emit_sllv()
278 unsigned int sa, struct jit_ctx *ctx) in emit_sll()
289 unsigned int sa, struct jit_ctx *ctx) in emit_srlv()
295 unsigned int sa, struct jit_ctx *ctx) in emit_srl()
306 unsigned int src2, struct jit_ctx *ctx) in emit_slt()
312 unsigned int src2, struct jit_ctx *ctx) in emit_sltu()
318 unsigned int imm, struct jit_ctx *ctx) in emit_sltiu()
333 struct jit_ctx *ctx) in emit_store_stack_reg()
339 struct jit_ctx *ctx) in emit_store()
346 struct jit_ctx *ctx) in emit_load_stack_reg()
352 unsigned int offset, struct jit_ctx *ctx) in emit_load()
358 unsigned int offset, struct jit_ctx *ctx) in emit_load_byte()
364 unsigned int offset, struct jit_ctx *ctx) in emit_half_load()
370 unsigned int src2, struct jit_ctx *ctx) in emit_mul()
376 struct jit_ctx *ctx) in emit_div()
388 struct jit_ctx *ctx) in emit_mod()
400 unsigned int sa, struct jit_ctx *ctx) in emit_dsll()
406 unsigned int sa, struct jit_ctx *ctx) in emit_dsrl32()
412 struct jit_ctx *ctx) in emit_wsbh()
419 int imm, struct jit_ctx *ctx) in emit_load_ptr()
427 struct jit_ctx *ctx) in emit_load_func()
442 static inline void emit_reg_move(ptr dst, ptr src, struct jit_ctx *ctx) in emit_reg_move()
448 static inline void emit_jit_reg_move(ptr dst, ptr src, struct jit_ctx *ctx) in emit_jit_reg_move()
454 static inline u32 b_imm(unsigned int tgt, struct jit_ctx *ctx) in b_imm()
477 unsigned int imm, struct jit_ctx *ctx) in emit_bcond()
500 static inline void emit_b(unsigned int imm, struct jit_ctx *ctx) in emit_b()
506 struct jit_ctx *ctx) in emit_jalr()
511 static inline void emit_jr(unsigned int reg, struct jit_ctx *ctx) in emit_jr()
524 static void save_bpf_jit_regs(struct jit_ctx *ctx, unsigned offset) in save_bpf_jit_regs()
558 static void restore_bpf_jit_regs(struct jit_ctx *ctx, in restore_bpf_jit_regs()
585 static unsigned int get_stack_depth(struct jit_ctx *ctx) in get_stack_depth()
602 static void build_prologue(struct jit_ctx *ctx) in build_prologue()
634 static void build_epilogue(struct jit_ctx *ctx) in build_epilogue()
652 static int build_body(struct jit_ctx *ctx) in build_body()
1194 struct jit_ctx ctx; in bpf_jit_compile() local