Lines Matching refs:from

25  * the "moves" instruction to access user space from kernel space. Other
185 unsigned long __generic_copy_from_user(void *to, const void __user *from, unsigned long n);
186 unsigned long __generic_copy_to_user(void __user *to, const void *from, unsigned long n);
193 #define ____constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3)\
228 : "+d" (res), "+&a" (to), "+a" (from), "=&d" (tmp) \
231 #define ___constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3)\
232 ____constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3)
233 #define __constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3) \
234 ___constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, \
238 __constant_copy_from_user(void *to, const void __user *from, unsigned long n)
244 __constant_copy_from_user_asm(res, to, from, tmp, 1, 0, 0);
247 __constant_copy_from_user_asm(res, to, from, tmp, 2, 0, 0);
250 __constant_copy_from_user_asm(res, to, from, tmp, 2, 1, 0);
253 __constant_copy_from_user_asm(res, to, from, tmp, 4, 0, 0);
256 __constant_copy_from_user_asm(res, to, from, tmp, 4, 1, 0);
259 __constant_copy_from_user_asm(res, to, from, tmp, 4, 2, 0);
262 __constant_copy_from_user_asm(res, to, from, tmp, 4, 2, 1);
265 __constant_copy_from_user_asm(res, to, from, tmp, 4, 4, 0);
268 __constant_copy_from_user_asm(res, to, from, tmp, 4, 4, 1);
271 __constant_copy_from_user_asm(res, to, from, tmp, 4, 4, 2);
274 __constant_copy_from_user_asm(res, to, from, tmp, 4, 4, 4);
278 return __generic_copy_from_user(to, from, n);
284 #define __constant_copy_to_user_asm(res, to, from, tmp, n, s1, s2, s3) \
315 : "+d" (res), "+a" (to), "+a" (from), "=&d" (tmp) \
319 __constant_copy_to_user(void __user *to, const void *from, unsigned long n)
325 __put_user_asm(res, *(u8 *)from, (u8 __user *)to, b, d, 1);
328 __put_user_asm(res, *(u16 *)from, (u16 __user *)to, w, r, 2);
331 __constant_copy_to_user_asm(res, to, from, tmp, 3, w, b,);
334 __put_user_asm(res, *(u32 *)from, (u32 __user *)to, l, r, 4);
337 __constant_copy_to_user_asm(res, to, from, tmp, 5, l, b,);
340 __constant_copy_to_user_asm(res, to, from, tmp, 6, l, w,);
343 __constant_copy_to_user_asm(res, to, from, tmp, 7, l, w, b);
346 __constant_copy_to_user_asm(res, to, from, tmp, 8, l, l,);
349 __constant_copy_to_user_asm(res, to, from, tmp, 9, l, l, b);
352 __constant_copy_to_user_asm(res, to, from, tmp, 10, l, l, w);
355 __constant_copy_to_user_asm(res, to, from, tmp, 12, l, l, l);
359 return __generic_copy_to_user(to, from, n);
366 raw_copy_from_user(void *to, const void __user *from, unsigned long n)
369 return __constant_copy_from_user(to, from, n);
370 return __generic_copy_from_user(to, from, n);
374 raw_copy_to_user(void __user *to, const void *from, unsigned long n)
377 return __constant_copy_to_user(to, from, n);
378 return __generic_copy_to_user(to, from, n);