Lines Matching refs:val
12 #define STT(reg,val) asm volatile ("ftoit $f"#reg",%0" : "=r"(val)); argument
14 #define STT(reg,val) asm volatile ("stt $f"#reg",%0" : "=m"(val)); argument
20 unsigned long val; in alpha_read_fp_reg() local
23 case 0: STT( 0, val); break; in alpha_read_fp_reg()
24 case 1: STT( 1, val); break; in alpha_read_fp_reg()
25 case 2: STT( 2, val); break; in alpha_read_fp_reg()
26 case 3: STT( 3, val); break; in alpha_read_fp_reg()
27 case 4: STT( 4, val); break; in alpha_read_fp_reg()
28 case 5: STT( 5, val); break; in alpha_read_fp_reg()
29 case 6: STT( 6, val); break; in alpha_read_fp_reg()
30 case 7: STT( 7, val); break; in alpha_read_fp_reg()
31 case 8: STT( 8, val); break; in alpha_read_fp_reg()
32 case 9: STT( 9, val); break; in alpha_read_fp_reg()
33 case 10: STT(10, val); break; in alpha_read_fp_reg()
34 case 11: STT(11, val); break; in alpha_read_fp_reg()
35 case 12: STT(12, val); break; in alpha_read_fp_reg()
36 case 13: STT(13, val); break; in alpha_read_fp_reg()
37 case 14: STT(14, val); break; in alpha_read_fp_reg()
38 case 15: STT(15, val); break; in alpha_read_fp_reg()
39 case 16: STT(16, val); break; in alpha_read_fp_reg()
40 case 17: STT(17, val); break; in alpha_read_fp_reg()
41 case 18: STT(18, val); break; in alpha_read_fp_reg()
42 case 19: STT(19, val); break; in alpha_read_fp_reg()
43 case 20: STT(20, val); break; in alpha_read_fp_reg()
44 case 21: STT(21, val); break; in alpha_read_fp_reg()
45 case 22: STT(22, val); break; in alpha_read_fp_reg()
46 case 23: STT(23, val); break; in alpha_read_fp_reg()
47 case 24: STT(24, val); break; in alpha_read_fp_reg()
48 case 25: STT(25, val); break; in alpha_read_fp_reg()
49 case 26: STT(26, val); break; in alpha_read_fp_reg()
50 case 27: STT(27, val); break; in alpha_read_fp_reg()
51 case 28: STT(28, val); break; in alpha_read_fp_reg()
52 case 29: STT(29, val); break; in alpha_read_fp_reg()
53 case 30: STT(30, val); break; in alpha_read_fp_reg()
54 case 31: STT(31, val); break; in alpha_read_fp_reg()
57 return val; in alpha_read_fp_reg()
62 #define LDT(reg,val) asm volatile ("itoft %0,$f"#reg : : "r"(val)); argument
64 #define LDT(reg,val) asm volatile ("ldt $f"#reg",%0" : : "m"(val)); argument
68 alpha_write_fp_reg (unsigned long reg, unsigned long val) in alpha_write_fp_reg() argument
71 case 0: LDT( 0, val); break; in alpha_write_fp_reg()
72 case 1: LDT( 1, val); break; in alpha_write_fp_reg()
73 case 2: LDT( 2, val); break; in alpha_write_fp_reg()
74 case 3: LDT( 3, val); break; in alpha_write_fp_reg()
75 case 4: LDT( 4, val); break; in alpha_write_fp_reg()
76 case 5: LDT( 5, val); break; in alpha_write_fp_reg()
77 case 6: LDT( 6, val); break; in alpha_write_fp_reg()
78 case 7: LDT( 7, val); break; in alpha_write_fp_reg()
79 case 8: LDT( 8, val); break; in alpha_write_fp_reg()
80 case 9: LDT( 9, val); break; in alpha_write_fp_reg()
81 case 10: LDT(10, val); break; in alpha_write_fp_reg()
82 case 11: LDT(11, val); break; in alpha_write_fp_reg()
83 case 12: LDT(12, val); break; in alpha_write_fp_reg()
84 case 13: LDT(13, val); break; in alpha_write_fp_reg()
85 case 14: LDT(14, val); break; in alpha_write_fp_reg()
86 case 15: LDT(15, val); break; in alpha_write_fp_reg()
87 case 16: LDT(16, val); break; in alpha_write_fp_reg()
88 case 17: LDT(17, val); break; in alpha_write_fp_reg()
89 case 18: LDT(18, val); break; in alpha_write_fp_reg()
90 case 19: LDT(19, val); break; in alpha_write_fp_reg()
91 case 20: LDT(20, val); break; in alpha_write_fp_reg()
92 case 21: LDT(21, val); break; in alpha_write_fp_reg()
93 case 22: LDT(22, val); break; in alpha_write_fp_reg()
94 case 23: LDT(23, val); break; in alpha_write_fp_reg()
95 case 24: LDT(24, val); break; in alpha_write_fp_reg()
96 case 25: LDT(25, val); break; in alpha_write_fp_reg()
97 case 26: LDT(26, val); break; in alpha_write_fp_reg()
98 case 27: LDT(27, val); break; in alpha_write_fp_reg()
99 case 28: LDT(28, val); break; in alpha_write_fp_reg()
100 case 29: LDT(29, val); break; in alpha_write_fp_reg()
101 case 30: LDT(30, val); break; in alpha_write_fp_reg()
102 case 31: LDT(31, val); break; in alpha_write_fp_reg()
108 #define STS(reg,val) asm volatile ("ftois $f"#reg",%0" : "=r"(val)); argument
110 #define STS(reg,val) asm volatile ("sts $f"#reg",%0" : "=m"(val)); argument
116 unsigned long val; in alpha_read_fp_reg_s() local
119 case 0: STS( 0, val); break; in alpha_read_fp_reg_s()
120 case 1: STS( 1, val); break; in alpha_read_fp_reg_s()
121 case 2: STS( 2, val); break; in alpha_read_fp_reg_s()
122 case 3: STS( 3, val); break; in alpha_read_fp_reg_s()
123 case 4: STS( 4, val); break; in alpha_read_fp_reg_s()
124 case 5: STS( 5, val); break; in alpha_read_fp_reg_s()
125 case 6: STS( 6, val); break; in alpha_read_fp_reg_s()
126 case 7: STS( 7, val); break; in alpha_read_fp_reg_s()
127 case 8: STS( 8, val); break; in alpha_read_fp_reg_s()
128 case 9: STS( 9, val); break; in alpha_read_fp_reg_s()
129 case 10: STS(10, val); break; in alpha_read_fp_reg_s()
130 case 11: STS(11, val); break; in alpha_read_fp_reg_s()
131 case 12: STS(12, val); break; in alpha_read_fp_reg_s()
132 case 13: STS(13, val); break; in alpha_read_fp_reg_s()
133 case 14: STS(14, val); break; in alpha_read_fp_reg_s()
134 case 15: STS(15, val); break; in alpha_read_fp_reg_s()
135 case 16: STS(16, val); break; in alpha_read_fp_reg_s()
136 case 17: STS(17, val); break; in alpha_read_fp_reg_s()
137 case 18: STS(18, val); break; in alpha_read_fp_reg_s()
138 case 19: STS(19, val); break; in alpha_read_fp_reg_s()
139 case 20: STS(20, val); break; in alpha_read_fp_reg_s()
140 case 21: STS(21, val); break; in alpha_read_fp_reg_s()
141 case 22: STS(22, val); break; in alpha_read_fp_reg_s()
142 case 23: STS(23, val); break; in alpha_read_fp_reg_s()
143 case 24: STS(24, val); break; in alpha_read_fp_reg_s()
144 case 25: STS(25, val); break; in alpha_read_fp_reg_s()
145 case 26: STS(26, val); break; in alpha_read_fp_reg_s()
146 case 27: STS(27, val); break; in alpha_read_fp_reg_s()
147 case 28: STS(28, val); break; in alpha_read_fp_reg_s()
148 case 29: STS(29, val); break; in alpha_read_fp_reg_s()
149 case 30: STS(30, val); break; in alpha_read_fp_reg_s()
150 case 31: STS(31, val); break; in alpha_read_fp_reg_s()
153 return val; in alpha_read_fp_reg_s()
158 #define LDS(reg,val) asm volatile ("itofs %0,$f"#reg : : "r"(val)); argument
160 #define LDS(reg,val) asm volatile ("lds $f"#reg",%0" : : "m"(val)); argument
164 alpha_write_fp_reg_s (unsigned long reg, unsigned long val) in alpha_write_fp_reg_s() argument
167 case 0: LDS( 0, val); break; in alpha_write_fp_reg_s()
168 case 1: LDS( 1, val); break; in alpha_write_fp_reg_s()
169 case 2: LDS( 2, val); break; in alpha_write_fp_reg_s()
170 case 3: LDS( 3, val); break; in alpha_write_fp_reg_s()
171 case 4: LDS( 4, val); break; in alpha_write_fp_reg_s()
172 case 5: LDS( 5, val); break; in alpha_write_fp_reg_s()
173 case 6: LDS( 6, val); break; in alpha_write_fp_reg_s()
174 case 7: LDS( 7, val); break; in alpha_write_fp_reg_s()
175 case 8: LDS( 8, val); break; in alpha_write_fp_reg_s()
176 case 9: LDS( 9, val); break; in alpha_write_fp_reg_s()
177 case 10: LDS(10, val); break; in alpha_write_fp_reg_s()
178 case 11: LDS(11, val); break; in alpha_write_fp_reg_s()
179 case 12: LDS(12, val); break; in alpha_write_fp_reg_s()
180 case 13: LDS(13, val); break; in alpha_write_fp_reg_s()
181 case 14: LDS(14, val); break; in alpha_write_fp_reg_s()
182 case 15: LDS(15, val); break; in alpha_write_fp_reg_s()
183 case 16: LDS(16, val); break; in alpha_write_fp_reg_s()
184 case 17: LDS(17, val); break; in alpha_write_fp_reg_s()
185 case 18: LDS(18, val); break; in alpha_write_fp_reg_s()
186 case 19: LDS(19, val); break; in alpha_write_fp_reg_s()
187 case 20: LDS(20, val); break; in alpha_write_fp_reg_s()
188 case 21: LDS(21, val); break; in alpha_write_fp_reg_s()
189 case 22: LDS(22, val); break; in alpha_write_fp_reg_s()
190 case 23: LDS(23, val); break; in alpha_write_fp_reg_s()
191 case 24: LDS(24, val); break; in alpha_write_fp_reg_s()
192 case 25: LDS(25, val); break; in alpha_write_fp_reg_s()
193 case 26: LDS(26, val); break; in alpha_write_fp_reg_s()
194 case 27: LDS(27, val); break; in alpha_write_fp_reg_s()
195 case 28: LDS(28, val); break; in alpha_write_fp_reg_s()
196 case 29: LDS(29, val); break; in alpha_write_fp_reg_s()
197 case 30: LDS(30, val); break; in alpha_write_fp_reg_s()
198 case 31: LDS(31, val); break; in alpha_write_fp_reg_s()