Home
last modified time | relevance | path

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

/linux/arch/loongarch/net/
H A Dbpf_jit.h13 struct jit_ctx { struct
30 struct jit_ctx ctx; argument
55 static inline int bpf2la_offset(int bpf_insn, int off, const struct jit_ctx *ctx) in bpf2la_offset()
67 static inline int epilogue_offset(const struct jit_ctx *ctx) in epilogue_offset()
76 static inline void emit_zext_32(struct jit_ctx *ctx, enum loongarch_gpr reg, bool is32) in emit_zext_32()
85 static inline void emit_sext_32(struct jit_ctx *ctx, enum loongarch_gpr reg, bool is32) in emit_sext_32()
96 static inline void emit_abi_ext(struct jit_ctx *ctx, int reg, u8 size, bool sign) in emit_abi_ext()
119 static inline void move_addr(struct jit_ctx *ctx, enum loongarch_gpr rd, u64 addr) in move_addr()
140 static inline void move_imm(struct jit_ctx *ctx, enum loongarch_gpr rd, long imm, bool is32) in move_imm()
203 static inline void move_reg(struct jit_ctx *ctx, enum loongarch_gpr rd, in move_reg()
[all …]
H A Dbpf_jit.c43 static void prepare_bpf_tail_call_cnt(struct jit_ctx *ctx, int *store_offset) in prepare_bpf_tail_call_cnt()
126 static void build_prologue(struct jit_ctx *ctx) in build_prologue()
203 static void __build_epilogue(struct jit_ctx *ctx, bool is_tail_call) in __build_epilogue()
263 static void build_epilogue(struct jit_ctx *ctx) in build_epilogue()
278 static int emit_bpf_tail_call(struct jit_ctx *ctx, int insn) in emit_bpf_tail_call()
347 static void emit_atomic(const struct bpf_insn *insn, struct jit_ctx *ctx) in emit_atomic()
479 struct jit_ctx *ctx, in add_exception_handler()
540 static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx, bool extra_pass) in build_insn()
1278 static int build_body(struct jit_ctx *ctx, bool extra_pass) in build_body()
1317 static int validate_code(struct jit_ctx *ctx) in validate_code()
[all …]
/linux/arch/arm/net/
H A Dbpf_jit_32.c202 struct jit_ctx { struct
271 static inline void _emit(int cond, u32 inst, struct jit_ctx *ctx) in _emit()
285 static inline void emit(u32 inst, struct jit_ctx *ctx) in emit()
409 static u16 imm_offset(u32 k, struct jit_ctx *ctx) in imm_offset()
455 const struct jit_ctx *ctx) { in bpf2a32_offset()
469 static inline void emit_mov_i_no8m(const u8 rd, u32 val, struct jit_ctx *ctx) in emit_mov_i_no8m()
480 static inline void emit_mov_i(const u8 rd, u32 val, struct jit_ctx *ctx) in emit_mov_i()
490 static void emit_bx_r(u8 tgt_reg, struct jit_ctx *ctx) in emit_bx_r()
498 static inline void emit_blx_r(u8 tgt_reg, struct jit_ctx *ctx) in emit_blx_r()
508 static inline int epilogue_offset(const struct jit_ctx *ctx) in epilogue_offset()
[all …]
/linux/arch/arm64/net/
H A Dbpf_jit_comp.c79 struct jit_ctx { struct
110 static inline void emit(const u32 insn, struct jit_ctx *ctx) in emit() argument
118 static inline void emit_u32_data(const u32 data, struct jit_ctx *ctx) in emit_u32_data()
127 const s32 val, struct jit_ctx *ctx) in emit_a64_mov_i()
156 struct jit_ctx *ctx) in emit_a64_mov_i64()
180 static inline void emit_bti(u32 insn, struct jit_ctx *ctx) in emit_bti()
186 static inline void emit_kcfi(u32 hash, struct jit_ctx *ctx) in emit_kcfi()
198 struct jit_ctx *ctx) in emit_addr_mov_i64()
211 static bool should_emit_indirect_call(long target, const struct jit_ctx *ctx) in should_emit_indirect_call()
225 static void emit_direct_call(u64 target, struct jit_ctx *ctx) in emit_direct_call()
[all …]
/linux/arch/sparc/net/
H A 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 …]