Home
last modified time | relevance | path

Searched refs:jit_ctx (Results 1 – 5 of 5) sorted by relevance

/Linux-v4.19/arch/mips/net/
Dbpf_jit.c97 struct jit_ctx { struct
118 static inline void emit_jit_reg_move(ptr dst, ptr src, struct jit_ctx *ctx); 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()
[all …]
Debpf_jit.c104 struct jit_ctx { struct
123 static enum reg_val_type get_reg_val_type(const struct jit_ctx *ctx, in get_reg_val_type() argument
139 static unsigned int j_target(struct jit_ctx *ctx, int target_idx) in j_target()
157 static u32 b_imm(unsigned int tgt, struct jit_ctx *ctx) in b_imm()
191 int ebpf_to_mips_reg(struct jit_ctx *ctx, const struct bpf_insn *insn, in ebpf_to_mips_reg()
267 static int gen_int_prologue(struct jit_ctx *ctx) in gen_int_prologue()
341 static int build_int_epilogue(struct jit_ctx *ctx, int dest_reg) in build_int_epilogue()
388 struct jit_ctx *ctx) in gen_imm_to_reg()
401 static int gen_imm_insn(const struct bpf_insn *insn, struct jit_ctx *ctx, in gen_imm_insn()
546 static void emit_const_to_reg(struct jit_ctx *ctx, int dst, u64 value) in emit_const_to_reg()
[all …]
/Linux-v4.19/arch/arm/net/
Dbpf_jit_32.c191 struct jit_ctx { struct
222 static inline void _emit(int cond, u32 inst, struct jit_ctx *ctx) in _emit() argument
236 static inline void emit(u32 inst, struct jit_ctx *ctx) in emit()
357 static u16 imm_offset(u32 k, struct jit_ctx *ctx) in imm_offset()
403 const struct jit_ctx *ctx) { in bpf2a32_offset()
417 static inline void emit_mov_i_no8m(const u8 rd, u32 val, struct jit_ctx *ctx) in emit_mov_i_no8m()
428 static inline void emit_mov_i(const u8 rd, u32 val, struct jit_ctx *ctx) in emit_mov_i()
438 static void emit_bx_r(u8 tgt_reg, struct jit_ctx *ctx) in emit_bx_r()
446 static inline void emit_blx_r(u8 tgt_reg, struct jit_ctx *ctx) in emit_blx_r()
456 static inline int epilogue_offset(const struct jit_ctx *ctx) in epilogue_offset()
[all …]
/Linux-v4.19/arch/sparc/net/
Dbpf_jit_comp_64.c189 struct jit_ctx { struct
236 static void emit(const u32 insn, struct jit_ctx *ctx) in emit()
244 static void emit_call(u32 *func, struct jit_ctx *ctx) in emit_call()
256 static void emit_nop(struct jit_ctx *ctx) in emit_nop()
261 static void emit_reg_move(u32 from, u32 to, struct jit_ctx *ctx) in emit_reg_move()
267 static void emit_set_const(s32 K, u32 reg, struct jit_ctx *ctx) in emit_set_const()
274 static void emit_set_const_sext(s32 K, u32 reg, struct jit_ctx *ctx) in emit_set_const_sext()
288 static void emit_alu(u32 opcode, u32 src, u32 dst, struct jit_ctx *ctx) in emit_alu()
293 static void emit_alu3(u32 opcode, u32 a, u32 b, u32 c, struct jit_ctx *ctx) in emit_alu3()
299 struct jit_ctx *ctx) in emit_alu_K()
[all …]
/Linux-v4.19/arch/arm64/net/
Dbpf_jit_comp.c65 struct jit_ctx { struct
74 static inline void emit(const u32 insn, struct jit_ctx *ctx) in emit() argument
83 const s32 val, struct jit_ctx *ctx) in emit_a64_mov_i()
112 struct jit_ctx *ctx) in emit_a64_mov_i64()
143 struct jit_ctx *ctx) in emit_addr_mov_i64()
157 const struct jit_ctx *ctx) in bpf2a64_offset()
174 static inline int epilogue_offset(const struct jit_ctx *ctx) in epilogue_offset()
188 static int build_prologue(struct jit_ctx *ctx, bool ebpf_from_cbpf) in build_prologue()
255 static int emit_bpf_tail_call(struct jit_ctx *ctx) in emit_bpf_tail_call()
320 static void build_epilogue(struct jit_ctx *ctx) in build_epilogue()
[all …]