Lines Matching refs:n
24 static inline int __movsl_is_ok(unsigned long a1, unsigned long a2, unsigned long n) in __movsl_is_ok() argument
27 if (n >= 64 && ((a1 ^ a2) & movsl_mask.mask)) in __movsl_is_ok()
32 #define movsl_is_ok(a1, a2, n) \ argument
33 __movsl_is_ok((unsigned long)(a1), (unsigned long)(a2), (n))
156 clear_user(void __user *to, unsigned long n) in clear_user() argument
159 if (access_ok(VERIFY_WRITE, to, n)) in clear_user()
160 __do_clear_user(to, n); in clear_user()
161 return n; in clear_user()
177 __clear_user(void __user *to, unsigned long n) in __clear_user() argument
179 __do_clear_user(to, n); in __clear_user()
180 return n; in __clear_user()
195 long strnlen_user(const char __user *s, long n) in strnlen_user() argument
221 :"=&r" (n), "=&D" (s), "=&a" (res), "=&c" (tmp) in strnlen_user()
222 :"0" (n), "1" (s), "2" (0), "3" (mask) in strnlen_user()
718 unsigned long n) in __copy_to_user_ll() argument
729 return n; in __copy_to_user_ll()
737 while (n) { in __copy_to_user_ll()
744 if (len > n) in __copy_to_user_ll()
745 len = n; in __copy_to_user_ll()
772 n -= len; in __copy_to_user_ll()
774 return n; in __copy_to_user_ll()
777 if (movsl_is_ok(to, from, n)) in __copy_to_user_ll()
778 __copy_user(to, from, n); in __copy_to_user_ll()
780 n = __copy_user_intel(to, from, n); in __copy_to_user_ll()
781 return n; in __copy_to_user_ll()
786 unsigned long n) in __copy_from_user_ll() argument
788 if (movsl_is_ok(to, from, n)) in __copy_from_user_ll()
789 __copy_user_zeroing(to, from, n); in __copy_from_user_ll()
791 n = __copy_user_zeroing_intel(to, from, n); in __copy_from_user_ll()
792 return n; in __copy_from_user_ll()
797 unsigned long n) in __copy_from_user_ll_nozero() argument
799 if (movsl_is_ok(to, from, n)) in __copy_from_user_ll_nozero()
800 __copy_user(to, from, n); in __copy_from_user_ll_nozero()
802 n = __copy_user_intel((void __user *)to, in __copy_from_user_ll_nozero()
803 (const void *)from, n); in __copy_from_user_ll_nozero()
804 return n; in __copy_from_user_ll_nozero()
809 unsigned long n) in __copy_from_user_ll_nocache() argument
812 if (n > 64 && cpu_has_xmm2) in __copy_from_user_ll_nocache()
813 n = __copy_user_zeroing_intel_nocache(to, from, n); in __copy_from_user_ll_nocache()
815 __copy_user_zeroing(to, from, n); in __copy_from_user_ll_nocache()
817 __copy_user_zeroing(to, from, n); in __copy_from_user_ll_nocache()
819 return n; in __copy_from_user_ll_nocache()
824 unsigned long n) in __copy_from_user_ll_nocache_nozero() argument
827 if (n > 64 && cpu_has_xmm2) in __copy_from_user_ll_nocache_nozero()
828 n = __copy_user_intel_nocache(to, from, n); in __copy_from_user_ll_nocache_nozero()
830 __copy_user(to, from, n); in __copy_from_user_ll_nocache_nozero()
832 __copy_user(to, from, n); in __copy_from_user_ll_nocache_nozero()
834 return n; in __copy_from_user_ll_nocache_nozero()
852 copy_to_user(void __user *to, const void *from, unsigned long n) in copy_to_user() argument
854 if (access_ok(VERIFY_WRITE, to, n)) in copy_to_user()
855 n = __copy_to_user(to, from, n); in copy_to_user()
856 return n; in copy_to_user()
877 _copy_from_user(void *to, const void __user *from, unsigned long n) in _copy_from_user() argument
879 if (access_ok(VERIFY_READ, from, n)) in _copy_from_user()
880 n = __copy_from_user(to, from, n); in _copy_from_user()
882 memset(to, 0, n); in _copy_from_user()
883 return n; in _copy_from_user()