Searched refs:jit_ctx (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/arch/mips/net/
H A Dbpf_jit.c90 * struct jit_ctx - JIT context
98 struct jit_ctx { struct
119 static inline void emit_jit_reg_move(ptr dst, ptr src, struct jit_ctx *ctx);
151 unsigned int src2, struct jit_ctx *ctx) emit_addu()
156 static inline void emit_nop(struct jit_ctx *ctx) emit_nop()
162 static inline void emit_load_imm(unsigned int dst, u32 imm, struct jit_ctx *ctx) emit_load_imm()
183 unsigned int src2, struct jit_ctx *ctx) emit_or()
189 struct jit_ctx *ctx) emit_ori()
200 int imm, struct jit_ctx *ctx) emit_daddiu()
210 u32 imm, struct jit_ctx *ctx) emit_addiu()
221 unsigned int src2, struct jit_ctx *ctx) emit_and()
227 u32 imm, struct jit_ctx *ctx) emit_andi()
239 unsigned int src2, struct jit_ctx *ctx) emit_xor()
244 static inline void emit_xori(ptr dst, ptr src, u32 imm, struct jit_ctx *ctx) emit_xori()
255 static inline void emit_stack_offset(int offset, struct jit_ctx *ctx) emit_stack_offset()
261 unsigned int src2, struct jit_ctx *ctx) emit_subu()
266 static inline void emit_neg(unsigned int reg, struct jit_ctx *ctx) emit_neg()
272 unsigned int sa, struct jit_ctx *ctx) emit_sllv()
278 unsigned int sa, struct jit_ctx *ctx) emit_sll()
289 unsigned int sa, struct jit_ctx *ctx) emit_srlv()
295 unsigned int sa, struct jit_ctx *ctx) emit_srl()
306 unsigned int src2, struct jit_ctx *ctx) emit_slt()
312 unsigned int src2, struct jit_ctx *ctx) emit_sltu()
318 unsigned int imm, struct jit_ctx *ctx) emit_sltiu()
333 struct jit_ctx *ctx) emit_store_stack_reg()
339 struct jit_ctx *ctx) emit_store()
346 struct jit_ctx *ctx) emit_load_stack_reg()
352 unsigned int offset, struct jit_ctx *ctx) emit_load()
358 unsigned int offset, struct jit_ctx *ctx) emit_load_byte()
364 unsigned int offset, struct jit_ctx *ctx) emit_half_load()
370 unsigned int src2, struct jit_ctx *ctx) emit_mul()
376 struct jit_ctx *ctx) emit_div()
388 struct jit_ctx *ctx) emit_mod()
400 unsigned int sa, struct jit_ctx *ctx) emit_dsll()
406 unsigned int sa, struct jit_ctx *ctx) emit_dsrl32()
412 struct jit_ctx *ctx) emit_wsbh()
419 int imm, struct jit_ctx *ctx) emit_load_ptr()
427 struct jit_ctx *ctx) emit_load_func()
442 static inline void emit_reg_move(ptr dst, ptr src, struct jit_ctx *ctx) emit_reg_move()
448 static inline void emit_jit_reg_move(ptr dst, ptr src, struct jit_ctx *ctx) emit_jit_reg_move()
454 static inline u32 b_imm(unsigned int tgt, struct jit_ctx *ctx) b_imm()
477 unsigned int imm, struct jit_ctx *ctx) emit_bcond()
500 static inline void emit_b(unsigned int imm, struct jit_ctx *ctx) emit_b()
506 struct jit_ctx *ctx) emit_jalr()
511 static inline void emit_jr(unsigned int reg, struct jit_ctx *ctx) emit_jr()
524 static void save_bpf_jit_regs(struct jit_ctx *ctx, unsigned offset) save_bpf_jit_regs()
558 static void restore_bpf_jit_regs(struct jit_ctx *ctx, restore_bpf_jit_regs()
585 static unsigned int get_stack_depth(struct jit_ctx *ctx) get_stack_depth()
602 static void build_prologue(struct jit_ctx *ctx) build_prologue()
634 static void build_epilogue(struct jit_ctx *ctx) build_epilogue()
652 static int build_body(struct jit_ctx *ctx) build_body()
1194 struct jit_ctx ctx; bpf_jit_compile()
/linux-4.4.14/arch/arm/net/
H A Dbpf_jit_32.c59 struct jit_ctx { struct
141 static inline void _emit(int cond, u32 inst, struct jit_ctx *ctx) _emit()
155 static inline void emit(u32 inst, struct jit_ctx *ctx) emit()
160 static u16 saved_regs(struct jit_ctx *ctx) saved_regs()
184 static inline int mem_words_used(struct jit_ctx *ctx) mem_words_used()
198 static void build_prologue(struct jit_ctx *ctx) build_prologue()
238 static void build_epilogue(struct jit_ctx *ctx) build_epilogue()
277 static u16 imm_offset(u32 k, struct jit_ctx *ctx) imm_offset()
325 static inline void emit_mov_i_no8m(int rd, u32 val, struct jit_ctx *ctx) emit_mov_i_no8m()
336 static inline void emit_mov_i(int rd, u32 val, struct jit_ctx *ctx) emit_mov_i()
348 static void emit_load_be32(u8 cond, u8 r_res, u8 r_addr, struct jit_ctx *ctx) emit_load_be32()
360 static void emit_load_be16(u8 cond, u8 r_res, u8 r_addr, struct jit_ctx *ctx) emit_load_be16()
367 static inline void emit_swap16(u8 r_dst, u8 r_src, struct jit_ctx *ctx) emit_swap16()
384 static void emit_load_be32(u8 cond, u8 r_res, u8 r_addr, struct jit_ctx *ctx) emit_load_be32()
392 static void emit_load_be16(u8 cond, u8 r_res, u8 r_addr, struct jit_ctx *ctx) emit_load_be16()
402 struct jit_ctx *ctx __maybe_unused) emit_swap16()
413 static inline u32 b_imm(unsigned tgt, struct jit_ctx *ctx) b_imm()
439 static inline void emit_err_ret(u8 cond, struct jit_ctx *ctx) emit_err_ret()
451 static inline void emit_blx_r(u8 tgt_reg, struct jit_ctx *ctx) emit_blx_r()
465 static inline void emit_udivmod(u8 rd, u8 rm, u8 rn, struct jit_ctx *ctx, emit_udivmod()
504 static inline void update_on_xread(struct jit_ctx *ctx) update_on_xread()
512 static int build_body(struct jit_ctx *ctx) build_body()
992 struct jit_ctx ctx; bpf_jit_compile()
/linux-4.4.14/arch/arm64/net/
H A Dbpf_jit_comp.c59 struct jit_ctx { struct
68 static inline void emit(const u32 insn, struct jit_ctx *ctx) emit()
77 struct jit_ctx *ctx) emit_a64_mov_i64()
94 const s32 val, struct jit_ctx *ctx) emit_a64_mov_i()
114 const struct jit_ctx *ctx) bpf2a64_offset()
131 static inline int epilogue_offset(const struct jit_ctx *ctx) epilogue_offset()
148 static void build_prologue(struct jit_ctx *ctx) build_prologue()
209 static void build_epilogue(struct jit_ctx *ctx) build_epilogue()
247 static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx) build_insn()
721 static int build_body(struct jit_ctx *ctx) build_body()
759 struct jit_ctx ctx; bpf_int_jit_compile()

Completed in 500 milliseconds