Home
last modified time | relevance | path

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

/linux/arch/sparc/kernel/
H A 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 …]
H A 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()
H A 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/arch/riscv/include/asm/
H A Dinsn-def.h32 .macro insn_r, opcode, func3, func7, rd, rs1, rs2
33 .insn r \opcode, \func3, \func7, \rd, \rs1, \rs2
40 .macro insn_s, opcode, func3, rs2, simm12, rs1
41 .insn s \opcode, \func3, \rs2, \simm12(\rs1)
48 .macro insn_r, opcode, func3, func7, rd, rs1, rs2
54 (.L__gpr_num_\rs2 << INSN_R_RS2_SHIFT))
65 .macro insn_s, opcode, func3, rs2, simm12, rs1
68 (.L__gpr_num_\rs2 << INSN_S_RS2_SHIFT) | \
84 #define __INSN_R(opcode, func3, func7, rd, rs1, rs2) \ argument
85 ".insn r " opcode ", " func3 ", " func7 ", " rd ", " rs1 ", " rs2 "\n"
[all …]
/linux/arch/sparc/math-emu/
H A 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 …]
H A 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/arch/riscv/net/
H A 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/arch/parisc/net/
H A Dbpf_jit_comp32.c707 const s8 *rs2 = bpf_get_reg64(src2, tmp2, ctx); in emit_branch_r64() local
722 emit(hppa_bne(hi(rs1), hi(rs2), NO_JUMP(1)), ctx); in emit_branch_r64()
723 emit(hppa_bne(lo(rs1), lo(rs2), NO_JUMP(0)), ctx); in emit_branch_r64()
726 emit(hppa_bgtu(hi(rs1), hi(rs2), JUMP(2)), ctx); in emit_branch_r64()
727 emit(hppa_bltu(hi(rs1), hi(rs2), NO_JUMP(1)), ctx); in emit_branch_r64()
728 emit(hppa_bleu(lo(rs1), lo(rs2), NO_JUMP(0)), ctx); in emit_branch_r64()
731 emit(hppa_bltu(hi(rs1), hi(rs2), JUMP(2)), ctx); in emit_branch_r64()
732 emit(hppa_bgtu(hi(rs1), hi(rs2), NO_JUMP(1)), ctx); in emit_branch_r64()
733 emit(hppa_bgeu(lo(rs1), lo(rs2), NO_JUMP(0)), ctx); in emit_branch_r64()
736 emit(hppa_bgtu(hi(rs1), hi(rs2), JUMP(2)), ctx); in emit_branch_r64()
[all …]
/linux/arch/arm/kernel/
H A 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/arch/arm64/boot/dts/arm/
H A Drtsm_ve-motherboard-rs2.dtsi5 * "rs2" extension for the v2m motherboard
10 arm,v2m-memory-map = "rs2";
H A Dfvp-base-revc.dts18 #include "rtsm_ve-motherboard-rs2.dtsi"
/linux/lib/crypto/mips/
H A Dpoly1305-mips.pl729 my ($h0,$h1,$h2,$h3,$h4, $r0,$r1,$r2,$r3, $rs1,$rs2,$rs3) =
784 lw $rs2,40($ctx)
921 maddu $rs2,$d2 # d2*s2
931 maddu $rs2,$d3 # d3*s2
941 maddu $rs2,$h4 # h4*s2
976 multu ($rs2,$d2) # d2*s2
977 mflo ($a3,$rs2,$d2)
978 mfhi ($t1,$rs2,$d2)
1013 multu ($rs2,$d3) # d3*s2
1017 mflo ($at,$rs2,$d3)
[all …]
/linux/arch/arm64/kernel/
H A Dsleep.S39 .macro compute_mpidr_hash dst, rs0, rs1, rs2, rs3, mpidr, mask
47 lsr \mask ,\mask, \rs2
/linux/arch/sparc/net/
H A 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 …]
/linux/lib/crypto/riscv/
H A Dpoly1305-riscv.pl457 my ($h0,$h1,$h2,$h3,$h4, $r0,$r1,$r2,$r3, $rs1,$rs2,$rs3) =
506 lw $rs2,40($ctx)
574 MULX ($t6,$a3,$rs2,$d2) # d2*s2
604 MULX ($t4,$t3,$rs2,$d3) # d3*s2
639 mulw $t3,$rs2,$h4 # h4*s2
/linux/arch/arc/net/
H A Dbpf_jit_arcv2.c1138 static u8 arc_or_r(u8 *buf, u8 rd, u8 rs1, u8 rs2) in arc_or_r() argument
1140 const u32 insn = OPC_OR | OP_A(rd) | OP_B(rs1) | OP_C(rs2); in arc_or_r()
1196 static u8 arc_asl_r(u8 *buf, u8 rd, u8 rs1, u8 rs2) in arc_asl_r() argument
1198 const u32 insn = OPC_ASL | OP_A(rd) | OP_B(rs1) | OP_C(rs2); in arc_asl_r()
1214 static u8 arc_asr_r(u8 *buf, u8 rd, u8 rs1, u8 rs2) in arc_asr_r() argument
1216 const u32 insn = OPC_ASR | OP_A(rd) | OP_B(rs1) | OP_C(rs2); in arc_asr_r()
1232 static u8 arc_lsr_r(u8 *buf, u8 rd, u8 rs1, u8 rs2) in arc_lsr_r() argument
1234 const u32 insn = OPC_LSR | OP_A(rd) | OP_B(rs1) | OP_C(rs2); in arc_lsr_r()