Lines Matching refs:n
89 __copy_to_user_memcpy(void __user *to, const void *from, unsigned long n) in __copy_to_user_memcpy() argument
95 memcpy((void *)to, from, n); in __copy_to_user_memcpy()
104 while (n) { in __copy_to_user_memcpy()
119 if (tocopy > n) in __copy_to_user_memcpy()
120 tocopy = n; in __copy_to_user_memcpy()
127 n -= tocopy; in __copy_to_user_memcpy()
138 return n; in __copy_to_user_memcpy()
142 arm_copy_to_user(void __user *to, const void *from, unsigned long n) in arm_copy_to_user() argument
151 if (n < 64) { in arm_copy_to_user()
153 n = __copy_to_user_std(to, from, n); in arm_copy_to_user()
156 n = __copy_to_user_memcpy(to, from, n); in arm_copy_to_user()
158 return n; in arm_copy_to_user()
162 __clear_user_memset(void __user *addr, unsigned long n) in __clear_user_memset() argument
167 memset((void *)addr, 0, n); in __clear_user_memset()
172 while (n) { in __clear_user_memset()
185 if (tocopy > n) in __clear_user_memset()
186 tocopy = n; in __clear_user_memset()
192 n -= tocopy; in __clear_user_memset()
202 return n; in __clear_user_memset()
205 unsigned long arm_clear_user(void __user *addr, unsigned long n) in arm_clear_user() argument
208 if (n < 64) { in arm_clear_user()
210 n = __clear_user_std(addr, n); in arm_clear_user()
213 n = __clear_user_memset(addr, n); in arm_clear_user()
215 return n; in arm_clear_user()