Home
last modified time | relevance | path

Searched refs:rv_jit_context (Results 1 – 4 of 4) sorted by relevance

/linux/arch/riscv/net/
H A Dbpf_jit.h71 struct rv_jit_context { struct
100 struct rv_jit_context ctx; argument
109 static inline void emit(const u32 insn, struct rv_jit_context *ctx) in emit()
120 static inline void emitc(const u16 insn, struct rv_jit_context *ctx) in emitc()
130 static inline int epilogue_offset(struct rv_jit_context *ctx) in epilogue_offset()
220 static inline int rv_offset(int insn, int off, struct rv_jit_context *ctx) in rv_offset()
602 static inline void emit_fence_r_rw(struct rv_jit_context *ctx) in emit_fence_r_rw()
607 static inline void emit_fence_rw_w(struct rv_jit_context *ctx) in emit_fence_rw_w()
612 static inline void emit_fence_rw_rw(struct rv_jit_context *ctx) in emit_fence_rw_rw()
987 static inline void emit_jalr(u8 rd, u8 rs, s32 imm, struct rv_jit_context *ctx) in emit_jalr()
[all …]
H A Dbpf_jit_comp64.c68 static u8 bpf_to_rv_reg(int bpf_reg, struct rv_jit_context *ctx) in bpf_to_rv_reg()
83 static bool seen_reg(int reg, struct rv_jit_context *ctx) in seen_reg()
97 static void mark_fp(struct rv_jit_context *ctx) in mark_fp()
102 static void mark_call(struct rv_jit_context *ctx) in mark_call()
123 static void emit_sextw_alt(u8 *rd, u8 ra, struct rv_jit_context *ctx) in emit_sextw_alt()
129 static void emit_zextw_alt(u8 *rd, u8 ra, struct rv_jit_context *ctx) in emit_zextw_alt()
136 static int emit_addr(u8 rd, u64 addr, bool extra_pass, struct rv_jit_context *ctx) in emit_addr()
158 static void emit_imm(u8 rd, s64 val, struct rv_jit_context *ctx) in emit_imm()
201 static void __build_epilogue(bool is_tail_call, struct rv_jit_context *ctx) in __build_epilogue()
248 struct rv_jit_context *ctx) in emit_bcc()
[all …]
H A Dbpf_jit_comp32.c111 static void emit_imm(const s8 rd, s32 imm, struct rv_jit_context *ctx) in emit_imm()
124 static void emit_imm32(const s8 *rd, s32 imm, struct rv_jit_context *ctx) in emit_imm32()
137 struct rv_jit_context *ctx) in emit_imm64()
143 static void __build_epilogue(bool is_tail_call, struct rv_jit_context *ctx) in __build_epilogue()
186 struct rv_jit_context *ctx) in bpf_get_reg64()
197 struct rv_jit_context *ctx) in bpf_put_reg64()
206 struct rv_jit_context *ctx) in bpf_get_reg32()
216 struct rv_jit_context *ctx) in bpf_put_reg32()
228 struct rv_jit_context *ctx) in emit_jump_and_link()
244 struct rv_jit_context *ctx, const u8 op) in emit_alu_i64()
[all …]
H A Dbpf_jit_core.c19 static int build_body(struct rv_jit_context *ctx, bool extra_pass, int *offset) in build_body()
50 struct rv_jit_context *ctx; in bpf_int_jit_compile()