Lines Matching defs:ctx
157 #define emit_instr(ctx, func, ...) \ argument
170 #define emit_long_instr(ctx, func, ...) \ argument
186 unsigned int src2, struct jit_ctx *ctx) in emit_addu()
191 static inline void emit_nop(struct jit_ctx *ctx) in emit_nop()
197 static inline void emit_load_imm(unsigned int dst, u32 imm, struct jit_ctx *ctx) in emit_load_imm()
218 unsigned int src2, struct jit_ctx *ctx) in emit_or()
224 struct jit_ctx *ctx) in emit_ori()
235 int imm, struct jit_ctx *ctx) in emit_daddiu()
245 u32 imm, struct jit_ctx *ctx) in emit_addiu()
256 unsigned int src2, struct jit_ctx *ctx) in emit_and()
262 u32 imm, struct jit_ctx *ctx) in emit_andi()
274 unsigned int src2, struct jit_ctx *ctx) in emit_xor()
279 static inline void emit_xori(ptr dst, ptr src, u32 imm, struct jit_ctx *ctx) in emit_xori()
290 static inline void emit_stack_offset(int offset, struct jit_ctx *ctx) in emit_stack_offset()
296 unsigned int src2, struct jit_ctx *ctx) in emit_subu()
301 static inline void emit_neg(unsigned int reg, struct jit_ctx *ctx) in emit_neg()
307 unsigned int sa, struct jit_ctx *ctx) in emit_sllv()
313 unsigned int sa, struct jit_ctx *ctx) in emit_sll()
324 unsigned int sa, struct jit_ctx *ctx) in emit_srlv()
330 unsigned int sa, struct jit_ctx *ctx) in emit_srl()
341 unsigned int src2, struct jit_ctx *ctx) in emit_slt()
347 unsigned int src2, struct jit_ctx *ctx) in emit_sltu()
353 unsigned int imm, struct jit_ctx *ctx) in emit_sltiu()
368 struct jit_ctx *ctx) in emit_store_stack_reg()
374 struct jit_ctx *ctx) in emit_store()
381 struct jit_ctx *ctx) in emit_load_stack_reg()
387 unsigned int offset, struct jit_ctx *ctx) in emit_load()
393 unsigned int offset, struct jit_ctx *ctx) in emit_load_byte()
399 unsigned int offset, struct jit_ctx *ctx) in emit_half_load()
405 unsigned int src2, struct jit_ctx *ctx) in emit_mul()
411 struct jit_ctx *ctx) in emit_div()
423 struct jit_ctx *ctx) in emit_mod()
435 unsigned int sa, struct jit_ctx *ctx) in emit_dsll()
441 unsigned int sa, struct jit_ctx *ctx) in emit_dsrl32()
447 struct jit_ctx *ctx) in emit_wsbh()
454 int imm, struct jit_ctx *ctx) in emit_load_ptr()
462 struct jit_ctx *ctx) in emit_load_func()
477 static inline void emit_reg_move(ptr dst, ptr src, struct jit_ctx *ctx) in emit_reg_move()
483 static inline void emit_jit_reg_move(ptr dst, ptr src, struct jit_ctx *ctx) in emit_jit_reg_move()
489 static inline u32 b_imm(unsigned int tgt, struct jit_ctx *ctx) in b_imm()
512 unsigned int imm, struct jit_ctx *ctx) in emit_bcond()
535 static inline void emit_b(unsigned int imm, struct jit_ctx *ctx) in emit_b()
541 struct jit_ctx *ctx) in emit_jalr()
546 static inline void emit_jr(unsigned int reg, struct jit_ctx *ctx) in emit_jr()
559 static void save_bpf_jit_regs(struct jit_ctx *ctx, unsigned offset) in save_bpf_jit_regs()
607 static void restore_bpf_jit_regs(struct jit_ctx *ctx, in restore_bpf_jit_regs()
647 static unsigned int get_stack_depth(struct jit_ctx *ctx) in get_stack_depth()
674 static void build_prologue(struct jit_ctx *ctx) in build_prologue()
693 static void build_epilogue(struct jit_ctx *ctx) in build_epilogue()
737 static int build_body(struct jit_ctx *ctx) in build_body()
1318 struct jit_ctx ctx; in bpf_jit_compile() local