Searched refs:rvoff (Results 1 – 2 of 2) sorted by relevance
/linux/arch/riscv/net/ |
H A D | bpf_jit_comp64.c | 280 static void emit_bcc(u8 cond, u8 rd, u8 rs, int rvoff, in emit_bcc() argument 285 emit(rv_beq(rd, rs, rvoff >> 1), ctx); in emit_bcc() 288 emit(rv_bltu(rs, rd, rvoff >> 1), ctx); in emit_bcc() 291 emit(rv_bltu(rd, rs, rvoff >> 1), ctx); in emit_bcc() 294 emit(rv_bgeu(rd, rs, rvoff >> 1), ctx); in emit_bcc() 297 emit(rv_bgeu(rs, rd, rvoff >> 1), ctx); in emit_bcc() 300 emit(rv_bne(rd, rs, rvoff >> 1), ctx); in emit_bcc() 303 emit(rv_blt(rs, rd, rvoff >> 1), ctx); in emit_bcc() 306 emit(rv_blt(rd, rs, rvoff >> 1), ctx); in emit_bcc() 309 emit(rv_bge(rd, rs, rvoff >> 1), ctx); in emit_bcc() [all …]
|
H A D | bpf_jit_comp32.c | 227 static void emit_jump_and_link(u8 rd, s32 rvoff, bool force_jalr, in emit_jump_and_link() argument 232 if (rvoff && is_21b_int(rvoff) && !force_jalr) { in emit_jump_and_link() 233 emit(rv_jal(rd, rvoff >> 1), ctx); in emit_jump_and_link() 237 upper = (rvoff + (1 << 11)) >> 12; in emit_jump_and_link() 238 lower = rvoff & 0xfff; in emit_jump_and_link() 564 static int emit_branch_r64(const s8 *src1, const s8 *src2, s32 rvoff, in emit_branch_r64() argument 647 rvoff -= ninsns_rvoff(e - s); in emit_branch_r64() 648 emit_jump_and_link(RV_REG_ZERO, rvoff, true, ctx); in emit_branch_r64() 652 static int emit_bcc(u8 op, u8 rd, u8 rs, int rvoff, struct rv_jit_context *ctx) in emit_bcc() argument 664 } else if (!is_13b_int(rvoff)) { in emit_bcc() [all …]
|