Searched refs:jit_ctx (Results 1 – 4 of 4) sorted by relevance
| /Linux-v5.4/arch/arm/net/ |
| D | bpf_jit_32.c | 188 struct jit_ctx { struct 219 static inline void _emit(int cond, u32 inst, struct jit_ctx *ctx) in _emit() argument 233 static inline void emit(u32 inst, struct jit_ctx *ctx) in emit() 354 static u16 imm_offset(u32 k, struct jit_ctx *ctx) in imm_offset() 400 const struct jit_ctx *ctx) { in bpf2a32_offset() 414 static inline void emit_mov_i_no8m(const u8 rd, u32 val, struct jit_ctx *ctx) in emit_mov_i_no8m() 425 static inline void emit_mov_i(const u8 rd, u32 val, struct jit_ctx *ctx) in emit_mov_i() 435 static void emit_bx_r(u8 tgt_reg, struct jit_ctx *ctx) in emit_bx_r() 443 static inline void emit_blx_r(u8 tgt_reg, struct jit_ctx *ctx) in emit_blx_r() 453 static inline int epilogue_offset(const struct jit_ctx *ctx) in epilogue_offset() [all …]
|
| /Linux-v5.4/arch/sparc/net/ |
| D | bpf_jit_comp_64.c | 189 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-v5.4/arch/arm64/net/ |
| D | bpf_jit_comp.c | 54 struct jit_ctx { struct 63 static inline void emit(const u32 insn, struct jit_ctx *ctx) in emit() argument 72 const s32 val, struct jit_ctx *ctx) in emit_a64_mov_i() 101 struct jit_ctx *ctx) in emit_a64_mov_i64() 131 struct jit_ctx *ctx) in emit_addr_mov_i64() 145 const struct jit_ctx *ctx) in bpf2a64_offset() 162 static inline int epilogue_offset(const struct jit_ctx *ctx) in epilogue_offset() 176 static int build_prologue(struct jit_ctx *ctx, bool ebpf_from_cbpf) in build_prologue() 243 static int emit_bpf_tail_call(struct jit_ctx *ctx) in emit_bpf_tail_call() 308 static void build_epilogue(struct jit_ctx *ctx) in build_epilogue() [all …]
|
| /Linux-v5.4/arch/mips/net/ |
| D | ebpf_jit.c | 100 struct jit_ctx { struct 119 static enum reg_val_type get_reg_val_type(const struct jit_ctx *ctx, in get_reg_val_type() argument 141 static unsigned int j_target(struct jit_ctx *ctx, int target_idx) in j_target() 159 static u32 b_imm(unsigned int tgt, struct jit_ctx *ctx) in b_imm() 193 static int ebpf_to_mips_reg(struct jit_ctx *ctx, in ebpf_to_mips_reg() 270 static int gen_int_prologue(struct jit_ctx *ctx) in gen_int_prologue() 352 static int build_int_epilogue(struct jit_ctx *ctx, int dest_reg) in build_int_epilogue() 409 struct jit_ctx *ctx) in gen_imm_to_reg() 422 static int gen_imm_insn(const struct bpf_insn *insn, struct jit_ctx *ctx, in gen_imm_insn() 567 static void emit_const_to_reg(struct jit_ctx *ctx, int dst, u64 value) in emit_const_to_reg() [all …]
|