Searched refs:imm12_1 (Results 1 – 1 of 1) sorted by relevance
/Linux-v6.6/arch/riscv/net/ |
D | bpf_jit.h | 250 static inline u32 rv_b_insn(u16 imm12_1, u8 rs2, u8 rs1, u8 funct3, u8 opcode) in rv_b_insn() argument 252 u8 imm12 = ((imm12_1 & 0x800) >> 5) | ((imm12_1 & 0x3f0) >> 4); in rv_b_insn() 253 u8 imm4_1 = ((imm12_1 & 0xf) << 1) | ((imm12_1 & 0x400) >> 10); in rv_b_insn() 467 static inline u32 rv_beq(u8 rs1, u8 rs2, u16 imm12_1) in rv_beq() argument 469 return rv_b_insn(imm12_1, rs2, rs1, 0, 0x63); in rv_beq() 472 static inline u32 rv_bne(u8 rs1, u8 rs2, u16 imm12_1) in rv_bne() argument 474 return rv_b_insn(imm12_1, rs2, rs1, 1, 0x63); in rv_bne() 477 static inline u32 rv_bltu(u8 rs1, u8 rs2, u16 imm12_1) in rv_bltu() argument 479 return rv_b_insn(imm12_1, rs2, rs1, 6, 0x63); in rv_bltu() 482 static inline u32 rv_bgtu(u8 rs1, u8 rs2, u16 imm12_1) in rv_bgtu() argument [all …]
|