Lines Matching refs:n
85 __copy_to_user_memcpy(void __user *to, const void *from, unsigned long n) in __copy_to_user_memcpy() argument
91 memcpy((void *)to, from, n); in __copy_to_user_memcpy()
100 while (n) { in __copy_to_user_memcpy()
115 if (tocopy > n) in __copy_to_user_memcpy()
116 tocopy = n; in __copy_to_user_memcpy()
123 n -= tocopy; in __copy_to_user_memcpy()
134 return n; in __copy_to_user_memcpy()
138 arm_copy_to_user(void __user *to, const void *from, unsigned long n) in arm_copy_to_user() argument
147 if (n < 64) { in arm_copy_to_user()
149 n = __copy_to_user_std(to, from, n); in arm_copy_to_user()
152 n = __copy_to_user_memcpy(uaccess_mask_range_ptr(to, n), in arm_copy_to_user()
153 from, n); in arm_copy_to_user()
155 return n; in arm_copy_to_user()
159 __clear_user_memset(void __user *addr, unsigned long n) in __clear_user_memset() argument
164 memset((void *)addr, 0, n); in __clear_user_memset()
169 while (n) { in __clear_user_memset()
182 if (tocopy > n) in __clear_user_memset()
183 tocopy = n; in __clear_user_memset()
189 n -= tocopy; in __clear_user_memset()
199 return n; in __clear_user_memset()
202 unsigned long arm_clear_user(void __user *addr, unsigned long n) in arm_clear_user() argument
205 if (n < 64) { in arm_clear_user()
207 n = __clear_user_std(addr, n); in arm_clear_user()
210 n = __clear_user_memset(addr, n); in arm_clear_user()
212 return n; in arm_clear_user()