Searched refs:rv_jit_context (Results  1 – 4 of 4) sorted by relevance
| /Linux-v5.10/arch/riscv/net/ | 
| D | bpf_jit.h | 68 struct rv_jit_context {  struct87 	struct rv_jit_context ctx;  argument
 101 static inline void emit(const u32 insn, struct rv_jit_context *ctx)  in emit()
 112 static inline void emitc(const u16 insn, struct rv_jit_context *ctx)  in emitc()
 122 static inline int epilogue_offset(struct rv_jit_context *ctx)  in epilogue_offset()
 212 static inline int rv_offset(int insn, int off, struct rv_jit_context *ctx)  in rv_offset()
 805 static inline void emit_jalr(u8 rd, u8 rs, s32 imm, struct rv_jit_context *ctx)  in emit_jalr()
 815 static inline void emit_mv(u8 rd, u8 rs, struct rv_jit_context *ctx)  in emit_mv()
 823 static inline void emit_add(u8 rd, u8 rs1, u8 rs2, struct rv_jit_context *ctx)  in emit_add()
 831 static inline void emit_addi(u8 rd, u8 rs, s32 imm, struct rv_jit_context *ctx)  in emit_addi()
 [all …]
 
 | 
| D | bpf_jit_comp64.c | 41 static u8 bpf_to_rv_reg(int bpf_reg, struct rv_jit_context *ctx)  in bpf_to_rv_reg()57 static bool seen_reg(int reg, struct rv_jit_context *ctx)  in seen_reg()
 72 static void mark_fp(struct rv_jit_context *ctx)  in mark_fp()
 77 static void mark_call(struct rv_jit_context *ctx)  in mark_call()
 82 static bool seen_call(struct rv_jit_context *ctx)  in seen_call()
 87 static void mark_tail_call(struct rv_jit_context *ctx)  in mark_tail_call()
 92 static bool seen_tail_call(struct rv_jit_context *ctx)  in seen_tail_call()
 97 static u8 rv_tail_call_reg(struct rv_jit_context *ctx)  in rv_tail_call_reg()
 123 static void emit_imm(u8 rd, s64 val, struct rv_jit_context *ctx)  in emit_imm()
 166 static void __build_epilogue(bool is_tail_call, struct rv_jit_context *ctx)  in __build_epilogue()
 [all …]
 
 | 
| D | bpf_jit_comp32.c | 111 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 …]
 
 | 
| D | bpf_jit_core.c | 16 static int build_body(struct rv_jit_context *ctx, bool extra_pass, int *offset)  in build_body()48 	struct rv_jit_context *ctx;  in bpf_int_jit_compile()
 
 |