Home
last modified time | relevance | path

Searched refs:rs2 (Results 1 – 14 of 14) sorted by relevance

/Linux-v6.1/arch/riscv/net/
Dbpf_jit.h226 static inline u32 rv_r_insn(u8 funct7, u8 rs2, u8 rs1, u8 funct3, u8 rd, in rv_r_insn() argument
229 return (funct7 << 25) | (rs2 << 20) | (rs1 << 15) | (funct3 << 12) | in rv_r_insn()
239 static inline u32 rv_s_insn(u16 imm11_0, u8 rs2, u8 rs1, u8 funct3, u8 opcode) in rv_s_insn() argument
243 return (imm11_5 << 25) | (rs2 << 20) | (rs1 << 15) | (funct3 << 12) | in rv_s_insn()
247 static inline u32 rv_b_insn(u16 imm12_1, u8 rs2, u8 rs1, u8 funct3, u8 opcode) in rv_b_insn() argument
252 return (imm12 << 25) | (rs2 << 20) | (rs1 << 15) | (funct3 << 12) | in rv_b_insn()
271 static inline u32 rv_amo_insn(u8 funct5, u8 aq, u8 rl, u8 rs2, u8 rs1, in rv_amo_insn() argument
276 return rv_r_insn(funct7, rs2, rs1, funct3, rd, opcode); in rv_amo_insn()
281 static inline u16 rv_cr_insn(u8 funct4, u8 rd, u8 rs2, u8 op) in rv_cr_insn() argument
283 return (funct4 << 12) | (rd << 7) | (rs2 << 2) | op; in rv_cr_insn()
[all …]
Dbpf_jit_comp32.c572 const s8 *rs2 = bpf_get_reg64(src2, tmp2, ctx); in emit_branch_r64() local
587 emit(rv_bne(hi(rs1), hi(rs2), NO_JUMP(1)), ctx); in emit_branch_r64()
588 emit(rv_bne(lo(rs1), lo(rs2), NO_JUMP(0)), ctx); in emit_branch_r64()
591 emit(rv_bgtu(hi(rs1), hi(rs2), JUMP(2)), ctx); in emit_branch_r64()
592 emit(rv_bltu(hi(rs1), hi(rs2), NO_JUMP(1)), ctx); in emit_branch_r64()
593 emit(rv_bleu(lo(rs1), lo(rs2), NO_JUMP(0)), ctx); in emit_branch_r64()
596 emit(rv_bltu(hi(rs1), hi(rs2), JUMP(2)), ctx); in emit_branch_r64()
597 emit(rv_bgtu(hi(rs1), hi(rs2), NO_JUMP(1)), ctx); in emit_branch_r64()
598 emit(rv_bgeu(lo(rs1), lo(rs2), NO_JUMP(0)), ctx); in emit_branch_r64()
601 emit(rv_bgtu(hi(rs1), hi(rs2), JUMP(2)), ctx); in emit_branch_r64()
[all …]
/Linux-v6.1/arch/sparc/kernel/
Dvisemul.c140 static inline void maybe_flush_windows(unsigned int rs1, unsigned int rs2, in maybe_flush_windows() argument
143 if (rs2 >= 16 || rs1 >= 16 || rd >= 16) { in maybe_flush_windows()
296 unsigned long orig_rs1, rs1, orig_rs2, rs2, rd_val; in edge() local
301 orig_rs2 = rs2 = fetch_reg(RS2(insn), regs); in edge()
305 rs2 = rs2 & 0xffffffff; in edge()
312 right = edge8_tab[rs2 & 0x7].right; in edge()
317 right = edge8_tab_l[rs2 & 0x7].right; in edge()
323 right = edge16_tab[(rs2 >> 1) & 0x3].right; in edge()
329 right = edge16_tab_l[(rs2 >> 1) & 0x3].right; in edge()
335 right = edge32_tab[(rs2 >> 2) & 0x1].right; in edge()
[all …]
Dunaligned_32.c72 static inline void maybe_flush_windows(unsigned int rs1, unsigned int rs2, in maybe_flush_windows() argument
75 if(rs2 >= 16 || rs1 >= 16 || rd >= 16) { in maybe_flush_windows()
140 unsigned int rs2 = insn & 0x1f; in compute_effective_address() local
147 maybe_flush_windows(rs1, rs2, rd); in compute_effective_address()
148 return (fetch_reg(rs1, regs) + fetch_reg(rs2, regs)); in compute_effective_address()
156 unsigned int rs2 = insn & 0x1f; in safe_compute_effective_address() local
163 maybe_flush_windows(rs1, rs2, rd); in safe_compute_effective_address()
164 return (safe_fetch_reg(rs1, regs) + safe_fetch_reg(rs2, regs)); in safe_compute_effective_address()
Dunaligned_64.c104 static inline void maybe_flush_windows(unsigned int rs1, unsigned int rs2, in maybe_flush_windows() argument
107 if (rs2 >= 16 || rs1 >= 16 || rd >= 16) { in maybe_flush_windows()
174 unsigned int rs2 = insn & 0x1f; in compute_effective_address() local
181 maybe_flush_windows(rs1, rs2, rd, from_kernel); in compute_effective_address()
182 addr = (fetch_reg(rs1, regs) + fetch_reg(rs2, regs)); in compute_effective_address()
/Linux-v6.1/arch/riscv/include/asm/
Dinsn-def.h19 .macro insn_r, opcode, func3, func7, rd, rs1, rs2
20 .insn r \opcode, \func3, \func7, \rd, \rs1, \rs2
27 .macro insn_r, opcode, func3, func7, rd, rs1, rs2
33 (.L__gpr_num_\rs2 << INSN_R_RS2_SHIFT))
44 #define __INSN_R(opcode, func3, func7, rd, rs1, rs2) \
45 ".insn r " opcode ", " func3 ", " func7 ", " rd ", " rs1 ", " rs2 "\n"
66 #define __INSN_R(opcode, func3, func7, rd, rs1, rs2) \
68 "insn_r " opcode ", " func3 ", " func7 ", " rd ", " rs1 ", " rs2 "\n" \
75 #define INSN_R(opcode, func3, func7, rd, rs1, rs2) \ argument
77 RV_##rd, RV_##rs1, RV_##rs2)
/Linux-v6.1/arch/sparc/math-emu/
Dmath_64.c359 argp rs1 = NULL, rs2 = NULL, rd = NULL; in do_mathemu() local
398 case 1: rs2 = (argp)&f->regs[freg]; in do_mathemu()
401 rs2 = (argp)&zero; in do_mathemu()
405 case 7: FP_UNPACK_QP (QB, rs2); break; in do_mathemu()
406 case 6: FP_UNPACK_DP (DB, rs2); break; in do_mathemu()
407 case 5: FP_UNPACK_SP (SB, rs2); break; in do_mathemu()
457 case FMOVQ: rd->q[0] = rs2->q[0]; rd->q[1] = rs2->q[1]; break; in do_mathemu()
458 case FABSQ: rd->q[0] = rs2->q[0] & 0x7fffffffffffffffUL; rd->q[1] = rs2->q[1]; break; in do_mathemu()
459 case FNEGQ: rd->q[0] = rs2->q[0] ^ 0x8000000000000000UL; rd->q[1] = rs2->q[1]; break; in do_mathemu()
468 case FITOQ: IR = rs2->s; FP_FROM_INT_Q (QR, IR, 32, int); break; in do_mathemu()
[all …]
Dmath_32.c284 argp rs1 = NULL, rs2 = NULL, rd = NULL; in do_one_mathemu() local
390 rs2 = (argp)&fregs[freg]; in do_one_mathemu()
392 case 7: FP_UNPACK_QP (QB, rs2); break; in do_one_mathemu()
393 case 6: FP_UNPACK_DP (DB, rs2); break; in do_one_mathemu()
394 case 5: FP_UNPACK_SP (SB, rs2); break; in do_one_mathemu()
452 case FMOVS: rd->s = rs2->s; break; in do_one_mathemu()
453 case FABSS: rd->s = rs2->s & 0x7fffffff; break; in do_one_mathemu()
454 case FNEGS: rd->s = rs2->s ^ 0x80000000; break; in do_one_mathemu()
460 case FITOS: IR = rs2->s; FP_FROM_INT_S (SR, IR, 32, int); break; in do_one_mathemu()
461 case FITOD: IR = rs2->s; FP_FROM_INT_D (DR, IR, 32, int); break; in do_one_mathemu()
[all …]
/Linux-v6.1/arch/arm/kernel/
Dsleep.S38 .macro compute_mpidr_hash dst, rs0, rs1, rs2, mpidr, mask
48 ARM( orr \dst, \dst, \mask, lsr \rs2 ) @ dst|=(aff2>>rs2)
49 THUMB( lsr \mask, \mask, \rs2 )
/Linux-v6.1/arch/arm64/boot/dts/arm/
Drtsm_ve-motherboard-rs2.dtsi5 * "rs2" extension for the v2m motherboard
10 arm,v2m-memory-map = "rs2";
Dfvp-base-revc.dts18 #include "rtsm_ve-motherboard-rs2.dtsi"
/Linux-v6.1/arch/mips/crypto/
Dpoly1305-mips.pl733 my ($h0,$h1,$h2,$h3,$h4, $r0,$r1,$r2,$r3, $rs1,$rs2,$rs3) =
788 lw $rs2,40($ctx)
925 maddu $rs2,$d2 # d2*s2
935 maddu $rs2,$d3 # d3*s2
945 maddu $rs2,$h4 # h4*s2
980 multu ($rs2,$d2) # d2*s2
981 mflo ($a3,$rs2,$d2)
982 mfhi ($t1,$rs2,$d2)
1017 multu ($rs2,$d3) # d3*s2
1021 mflo ($at,$rs2,$d3)
[all …]
/Linux-v6.1/arch/arm64/kernel/
Dsleep.S39 .macro compute_mpidr_hash dst, rs0, rs1, rs2, rs3, mpidr, mask
47 lsr \mask ,\mask, \rs2
/Linux-v6.1/arch/sparc/net/
Dbpf_jit_comp_64.c1260 u32 opcode = 0, rs2; in build_insn() local
1280 rs2 = S13(off); in build_insn()
1283 rs2 = RS2(tmp); in build_insn()
1285 emit(opcode | RS1(src) | rs2 | RD(dst), ctx); in build_insn()
1300 u32 opcode = 0, rs2; in build_insn() local
1325 rs2 = S13(off); in build_insn()
1329 rs2 = RS2(tmp); in build_insn()
1331 emit(opcode | RS1(dst) | rs2 | RD(tmp2), ctx); in build_insn()
1341 u32 opcode = 0, rs2; in build_insn() local
1362 rs2 = S13(off); in build_insn()
[all …]