Searched refs:rv_jit_context (Results 1 – 4 of 4) 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() 611 static inline void emit_fence_r_rw(struct rv_jit_context *ctx) in emit_fence_r_rw() 616 static inline void emit_fence_rw_w(struct rv_jit_context *ctx) in emit_fence_rw_w() 621 static inline void emit_fence_rw_rw(struct rv_jit_context *ctx) in emit_fence_rw_rw() 985 static inline void emit_jalr(u8 rd, u8 rs, s32 imm, struct rv_jit_context *ct 79 progrv_jit_context global() argument 80 insnsrv_jit_context global() argument [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 *ct [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 *ct in emit_alu_i64() [all...] |
H A D | bpf_jit_core.c | 19 static int build_body(struct rv_jit_context *ctx, bool extra_pass, int *offset) in build_body() 51 struct rv_jit_context *ctx; in bpf_int_jit_compile()
|