Lines Matching refs:n
89 __copy_to_user_memcpy(void __user *to, const void *from, unsigned long n) in __copy_to_user_memcpy() argument
94 memcpy((void *)to, from, n); in __copy_to_user_memcpy()
103 while (n) { in __copy_to_user_memcpy()
118 if (tocopy > n) in __copy_to_user_memcpy()
119 tocopy = n; in __copy_to_user_memcpy()
124 n -= tocopy; in __copy_to_user_memcpy()
135 return n; in __copy_to_user_memcpy()
139 __copy_to_user(void __user *to, const void *from, unsigned long n) in __copy_to_user() argument
148 if (n < 64) in __copy_to_user()
149 return __copy_to_user_std(to, from, n); in __copy_to_user()
150 return __copy_to_user_memcpy(to, from, n); in __copy_to_user()
154 __clear_user_memset(void __user *addr, unsigned long n) in __clear_user_memset() argument
157 memset((void *)addr, 0, n); in __clear_user_memset()
162 while (n) { in __clear_user_memset()
175 if (tocopy > n) in __clear_user_memset()
176 tocopy = n; in __clear_user_memset()
180 n -= tocopy; in __clear_user_memset()
190 return n; in __clear_user_memset()
193 unsigned long __clear_user(void __user *addr, unsigned long n) in __clear_user() argument
196 if (n < 64) in __clear_user()
197 return __clear_user_std(addr, n); in __clear_user()
198 return __clear_user_memset(addr, n); in __clear_user()