Searched refs:rv_jit_context (Results 1 – 3 of 3) sorted by relevance
/linux/arch/riscv/net/ |
H A D | bpf_jit.h | 78 struct rv_jit_context { struct 104 struct rv_jit_context ctx; argument 118 static inline void emit(const u32 insn, struct rv_jit_context *ctx) in emit() 129 static inline void emitc(const u16 insn, struct rv_jit_context *ctx) in emitc() 139 static inline int epilogue_offset(struct rv_jit_context *ctx) in epilogue_offset() 229 static inline int rv_offset(int insn, int off, struct rv_jit_context *ctx) in rv_offset() 970 static inline void emit_jalr(u8 rd, u8 rs, s32 imm, struct rv_jit_context *ctx) in emit_jalr() 980 static inline void emit_mv(u8 rd, u8 rs, struct rv_jit_context *ctx) in emit_mv() 988 static inline void emit_add(u8 rd, u8 rs1, u8 rs2, struct rv_jit_context *ctx) in emit_add() 996 static inline void emit_addi(u8 rd, u8 rs, s32 imm, struct rv_jit_context *ctx) in emit_addi() [all …]
|
H A D | bpf_jit_comp64.c | 70 static u8 bpf_to_rv_reg(int bpf_reg, struct rv_jit_context *ctx) in bpf_to_rv_reg() 86 static bool seen_reg(int reg, struct rv_jit_context *ctx) in seen_reg() 101 static void mark_fp(struct rv_jit_context *ctx) in mark_fp() 106 static void mark_call(struct rv_jit_context *ctx) in mark_call() 111 static bool seen_call(struct rv_jit_context *ctx) in seen_call() 116 static void mark_tail_call(struct rv_jit_context *ctx) in mark_tail_call() 121 static bool seen_tail_call(struct rv_jit_context *ctx) in seen_tail_call() 126 static u8 rv_tail_call_reg(struct rv_jit_context *ctx) in rv_tail_call_reg() 153 static void emit_sextw_alt(u8 *rd, u8 ra, struct rv_jit_context *ctx) in emit_sextw_alt() 159 static void emit_zextw_alt(u8 *rd, u8 ra, struct rv_jit_context *ctx) in emit_zextw_alt() [all …]
|
H A 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 …]
|