Home
last modified time | relevance | path

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

/Linux-v6.1/arch/riscv/net/
Dbpf_jit.h68 struct rv_jit_context { struct
89 struct rv_jit_context ctx; argument
103 static inline void emit(const u32 insn, struct rv_jit_context *ctx) in emit()
114 static inline void emitc(const u16 insn, struct rv_jit_context *ctx) in emitc()
124 static inline int epilogue_offset(struct rv_jit_context *ctx) in epilogue_offset()
214 static inline int rv_offset(int insn, int off, struct rv_jit_context *ctx) in rv_offset()
874 static inline void emit_jalr(u8 rd, u8 rs, s32 imm, struct rv_jit_context *ctx) in emit_jalr()
884 static inline void emit_mv(u8 rd, u8 rs, struct rv_jit_context *ctx) in emit_mv()
892 static inline void emit_add(u8 rd, u8 rs1, u8 rs2, struct rv_jit_context *ctx) in emit_add()
900 static inline void emit_addi(u8 rd, u8 rs, s32 imm, struct rv_jit_context *ctx) in emit_addi()
[all …]
Dbpf_jit_comp64.c57 static u8 bpf_to_rv_reg(int bpf_reg, struct rv_jit_context *ctx) in bpf_to_rv_reg()
73 static bool seen_reg(int reg, struct rv_jit_context *ctx) in seen_reg()
88 static void mark_fp(struct rv_jit_context *ctx) in mark_fp()
93 static void mark_call(struct rv_jit_context *ctx) in mark_call()
98 static bool seen_call(struct rv_jit_context *ctx) in seen_call()
103 static void mark_tail_call(struct rv_jit_context *ctx) in mark_tail_call()
108 static bool seen_tail_call(struct rv_jit_context *ctx) in seen_tail_call()
113 static u8 rv_tail_call_reg(struct rv_jit_context *ctx) in rv_tail_call_reg()
139 static void emit_imm(u8 rd, s64 val, struct rv_jit_context *ctx) in emit_imm()
182 static void __build_epilogue(bool is_tail_call, struct rv_jit_context *ctx) in __build_epilogue()
[all …]
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 …]
Dbpf_jit_core.c16 static int build_body(struct rv_jit_context *ctx, bool extra_pass, int *offset) in build_body()
49 struct rv_jit_context *ctx; in bpf_int_jit_compile()