Lines Matching +full:3 +full:- +full:n
1 // SPDX-License-Identifier: GPL-2.0
45 current->thread.mm_segment = fs; in set_fs()
69 old_fs = current->thread.mm_segment; in enable_sacf_uaccess()
74 current->thread.mm_segment |= 1; in enable_sacf_uaccess()
96 current->thread.mm_segment = old_fs; in disable_sacf_uaccess()
110 tmp1 = -4096UL; in copy_from_user_mvcos()
112 "0: .insn ss,0xc80000000000,0(%0,%2),0(%1),0\n" in copy_from_user_mvcos()
113 "6: jz 4f\n" in copy_from_user_mvcos()
114 "1: algr %0,%3\n" in copy_from_user_mvcos()
115 " slgr %1,%3\n" in copy_from_user_mvcos()
116 " slgr %2,%3\n" in copy_from_user_mvcos()
117 " j 0b\n" in copy_from_user_mvcos()
118 "2: la %4,4095(%1)\n"/* %4 = ptr + 4095 */ in copy_from_user_mvcos()
119 " nr %4,%3\n" /* %4 = (ptr + 4095) & -4096 */ in copy_from_user_mvcos()
120 " slgr %4,%1\n" in copy_from_user_mvcos()
121 " clgr %0,%4\n" /* copy crosses next page boundary? */ in copy_from_user_mvcos()
122 " jnh 5f\n" in copy_from_user_mvcos()
123 "3: .insn ss,0xc80000000000,0(%4,%2),0(%1),0\n" in copy_from_user_mvcos()
124 "7: slgr %0,%4\n" in copy_from_user_mvcos()
125 " j 5f\n" in copy_from_user_mvcos()
126 "4: slgr %0,%0\n" in copy_from_user_mvcos()
127 "5:\n" in copy_from_user_mvcos()
128 EX_TABLE(0b,2b) EX_TABLE(3b,5b) EX_TABLE(6b,2b) EX_TABLE(7b,5b) in copy_from_user_mvcos()
141 tmp1 = -256UL; in copy_from_user_mvcp()
143 " sacf 0\n" in copy_from_user_mvcp()
144 "0: mvcp 0(%0,%2),0(%1),%3\n" in copy_from_user_mvcp()
145 "7: jz 5f\n" in copy_from_user_mvcp()
146 "1: algr %0,%3\n" in copy_from_user_mvcp()
147 " la %1,256(%1)\n" in copy_from_user_mvcp()
148 " la %2,256(%2)\n" in copy_from_user_mvcp()
149 "2: mvcp 0(%0,%2),0(%1),%3\n" in copy_from_user_mvcp()
150 "8: jnz 1b\n" in copy_from_user_mvcp()
151 " j 5f\n" in copy_from_user_mvcp()
152 "3: la %4,255(%1)\n" /* %4 = ptr + 255 */ in copy_from_user_mvcp()
153 " lghi %3,-4096\n" in copy_from_user_mvcp()
154 " nr %4,%3\n" /* %4 = (ptr + 255) & -4096 */ in copy_from_user_mvcp()
155 " slgr %4,%1\n" in copy_from_user_mvcp()
156 " clgr %0,%4\n" /* copy crosses next page boundary? */ in copy_from_user_mvcp()
157 " jnh 6f\n" in copy_from_user_mvcp()
158 "4: mvcp 0(%4,%2),0(%1),%3\n" in copy_from_user_mvcp()
159 "9: slgr %0,%4\n" in copy_from_user_mvcp()
160 " j 6f\n" in copy_from_user_mvcp()
161 "5: slgr %0,%0\n" in copy_from_user_mvcp()
162 "6: sacf 768\n" in copy_from_user_mvcp()
163 EX_TABLE(0b,3b) EX_TABLE(2b,3b) EX_TABLE(4b,6b) in copy_from_user_mvcp()
164 EX_TABLE(7b,3b) EX_TABLE(8b,3b) EX_TABLE(9b,6b) in copy_from_user_mvcp()
171 unsigned long raw_copy_from_user(void *to, const void __user *from, unsigned long n) in raw_copy_from_user() argument
174 return copy_from_user_mvcos(to, from, n); in raw_copy_from_user()
175 return copy_from_user_mvcp(to, from, n); in raw_copy_from_user()
185 tmp1 = -4096UL; in copy_to_user_mvcos()
187 "0: .insn ss,0xc80000000000,0(%0,%1),0(%2),0\n" in copy_to_user_mvcos()
188 "6: jz 4f\n" in copy_to_user_mvcos()
189 "1: algr %0,%3\n" in copy_to_user_mvcos()
190 " slgr %1,%3\n" in copy_to_user_mvcos()
191 " slgr %2,%3\n" in copy_to_user_mvcos()
192 " j 0b\n" in copy_to_user_mvcos()
193 "2: la %4,4095(%1)\n"/* %4 = ptr + 4095 */ in copy_to_user_mvcos()
194 " nr %4,%3\n" /* %4 = (ptr + 4095) & -4096 */ in copy_to_user_mvcos()
195 " slgr %4,%1\n" in copy_to_user_mvcos()
196 " clgr %0,%4\n" /* copy crosses next page boundary? */ in copy_to_user_mvcos()
197 " jnh 5f\n" in copy_to_user_mvcos()
198 "3: .insn ss,0xc80000000000,0(%4,%1),0(%2),0\n" in copy_to_user_mvcos()
199 "7: slgr %0,%4\n" in copy_to_user_mvcos()
200 " j 5f\n" in copy_to_user_mvcos()
201 "4: slgr %0,%0\n" in copy_to_user_mvcos()
202 "5:\n" in copy_to_user_mvcos()
203 EX_TABLE(0b,2b) EX_TABLE(3b,5b) EX_TABLE(6b,2b) EX_TABLE(7b,5b) in copy_to_user_mvcos()
216 tmp1 = -256UL; in copy_to_user_mvcs()
218 " sacf 0\n" in copy_to_user_mvcs()
219 "0: mvcs 0(%0,%1),0(%2),%3\n" in copy_to_user_mvcs()
220 "7: jz 5f\n" in copy_to_user_mvcs()
221 "1: algr %0,%3\n" in copy_to_user_mvcs()
222 " la %1,256(%1)\n" in copy_to_user_mvcs()
223 " la %2,256(%2)\n" in copy_to_user_mvcs()
224 "2: mvcs 0(%0,%1),0(%2),%3\n" in copy_to_user_mvcs()
225 "8: jnz 1b\n" in copy_to_user_mvcs()
226 " j 5f\n" in copy_to_user_mvcs()
227 "3: la %4,255(%1)\n" /* %4 = ptr + 255 */ in copy_to_user_mvcs()
228 " lghi %3,-4096\n" in copy_to_user_mvcs()
229 " nr %4,%3\n" /* %4 = (ptr + 255) & -4096 */ in copy_to_user_mvcs()
230 " slgr %4,%1\n" in copy_to_user_mvcs()
231 " clgr %0,%4\n" /* copy crosses next page boundary? */ in copy_to_user_mvcs()
232 " jnh 6f\n" in copy_to_user_mvcs()
233 "4: mvcs 0(%4,%1),0(%2),%3\n" in copy_to_user_mvcs()
234 "9: slgr %0,%4\n" in copy_to_user_mvcs()
235 " j 6f\n" in copy_to_user_mvcs()
236 "5: slgr %0,%0\n" in copy_to_user_mvcs()
237 "6: sacf 768\n" in copy_to_user_mvcs()
238 EX_TABLE(0b,3b) EX_TABLE(2b,3b) EX_TABLE(4b,6b) in copy_to_user_mvcs()
239 EX_TABLE(7b,3b) EX_TABLE(8b,3b) EX_TABLE(9b,6b) in copy_to_user_mvcs()
246 unsigned long raw_copy_to_user(void __user *to, const void *from, unsigned long n) in raw_copy_to_user() argument
249 return copy_to_user_mvcos(to, from, n); in raw_copy_to_user()
250 return copy_to_user_mvcs(to, from, n); in raw_copy_to_user()
260 tmp1 = -4096UL; in copy_in_user_mvcos()
263 "0: .insn ss,0xc80000000000,0(%0,%1),0(%2),0\n" in copy_in_user_mvcos()
264 " jz 2f\n" in copy_in_user_mvcos()
265 "1: algr %0,%3\n" in copy_in_user_mvcos()
266 " slgr %1,%3\n" in copy_in_user_mvcos()
267 " slgr %2,%3\n" in copy_in_user_mvcos()
268 " j 0b\n" in copy_in_user_mvcos()
269 "2:slgr %0,%0\n" in copy_in_user_mvcos()
270 "3: \n" in copy_in_user_mvcos()
271 EX_TABLE(0b,3b) in copy_in_user_mvcos()
285 " sacf 256\n" in copy_in_user_mvc()
286 " aghi %0,-1\n" in copy_in_user_mvc()
287 " jo 5f\n" in copy_in_user_mvc()
288 " bras %3,3f\n" in copy_in_user_mvc()
289 "0: aghi %0,257\n" in copy_in_user_mvc()
290 "1: mvc 0(1,%1),0(%2)\n" in copy_in_user_mvc()
291 " la %1,1(%1)\n" in copy_in_user_mvc()
292 " la %2,1(%2)\n" in copy_in_user_mvc()
293 " aghi %0,-1\n" in copy_in_user_mvc()
294 " jnz 1b\n" in copy_in_user_mvc()
295 " j 5f\n" in copy_in_user_mvc()
296 "2: mvc 0(256,%1),0(%2)\n" in copy_in_user_mvc()
297 " la %1,256(%1)\n" in copy_in_user_mvc()
298 " la %2,256(%2)\n" in copy_in_user_mvc()
299 "3: aghi %0,-256\n" in copy_in_user_mvc()
300 " jnm 2b\n" in copy_in_user_mvc()
301 "4: ex %0,1b-0b(%3)\n" in copy_in_user_mvc()
302 "5: slgr %0,%0\n" in copy_in_user_mvc()
303 "6: sacf 768\n" in copy_in_user_mvc()
311 unsigned long raw_copy_in_user(void __user *to, const void __user *from, unsigned long n) in raw_copy_in_user() argument
314 return copy_in_user_mvcos(to, from, n); in raw_copy_in_user()
315 return copy_in_user_mvc(to, from, n); in raw_copy_in_user()
324 tmp1 = -4096UL; in clear_user_mvcos()
326 "0: .insn ss,0xc80000000000,0(%0,%1),0(%4),0\n" in clear_user_mvcos()
327 " jz 4f\n" in clear_user_mvcos()
328 "1: algr %0,%2\n" in clear_user_mvcos()
329 " slgr %1,%2\n" in clear_user_mvcos()
330 " j 0b\n" in clear_user_mvcos()
331 "2: la %3,4095(%1)\n"/* %4 = to + 4095 */ in clear_user_mvcos()
332 " nr %3,%2\n" /* %4 = (to + 4095) & -4096 */ in clear_user_mvcos()
333 " slgr %3,%1\n" in clear_user_mvcos()
334 " clgr %0,%3\n" /* copy crosses next page boundary? */ in clear_user_mvcos()
335 " jnh 5f\n" in clear_user_mvcos()
336 "3: .insn ss,0xc80000000000,0(%3,%1),0(%4),0\n" in clear_user_mvcos()
337 " slgr %0,%3\n" in clear_user_mvcos()
338 " j 5f\n" in clear_user_mvcos()
339 "4: slgr %0,%0\n" in clear_user_mvcos()
340 "5:\n" in clear_user_mvcos()
341 EX_TABLE(0b,2b) EX_TABLE(3b,5b) in clear_user_mvcos()
354 " sacf 256\n" in clear_user_xc()
355 " aghi %0,-1\n" in clear_user_xc()
356 " jo 5f\n" in clear_user_xc()
357 " bras %3,3f\n" in clear_user_xc()
358 " xc 0(1,%1),0(%1)\n" in clear_user_xc()
359 "0: aghi %0,257\n" in clear_user_xc()
360 " la %2,255(%1)\n" /* %2 = ptr + 255 */ in clear_user_xc()
361 " srl %2,12\n" in clear_user_xc()
362 " sll %2,12\n" /* %2 = (ptr + 255) & -4096 */ in clear_user_xc()
363 " slgr %2,%1\n" in clear_user_xc()
364 " clgr %0,%2\n" /* clear crosses next page boundary? */ in clear_user_xc()
365 " jnh 5f\n" in clear_user_xc()
366 " aghi %2,-1\n" in clear_user_xc()
367 "1: ex %2,0(%3)\n" in clear_user_xc()
368 " aghi %2,1\n" in clear_user_xc()
369 " slgr %0,%2\n" in clear_user_xc()
370 " j 5f\n" in clear_user_xc()
371 "2: xc 0(256,%1),0(%1)\n" in clear_user_xc()
372 " la %1,256(%1)\n" in clear_user_xc()
373 "3: aghi %0,-256\n" in clear_user_xc()
374 " jnm 2b\n" in clear_user_xc()
375 "4: ex %0,0(%3)\n" in clear_user_xc()
376 "5: slgr %0,%0\n" in clear_user_xc()
377 "6: sacf 768\n" in clear_user_xc()
400 " la %2,0(%1)\n" in strnlen_user_srst()
401 " la %3,0(%0,%1)\n" in strnlen_user_srst()
402 " slgr %0,%0\n" in strnlen_user_srst()
403 " sacf 256\n" in strnlen_user_srst()
404 "0: srst %3,%2\n" in strnlen_user_srst()
405 " jo 0b\n" in strnlen_user_srst()
406 " la %0,1(%3)\n" /* strnlen_user results includes \0 */ in strnlen_user_srst()
407 " slgr %0,%1\n" in strnlen_user_srst()
408 "1: sacf 768\n" in strnlen_user_srst()
437 offset = (size_t)src & (L1_CACHE_BYTES - 1); in __strncpy_from_user()
438 len = min(size - done, L1_CACHE_BYTES - offset); in __strncpy_from_user()
440 return -EFAULT; in __strncpy_from_user()