Lines Matching refs:n
127 unsigned long n) in __clear_user() argument
139 : "=r"(n), "=r"(to) \ in __clear_user()
140 : "0"(n), "1"(to) in __clear_user()
142 return n; in __clear_user()
146 unsigned long n) in clear_user() argument
149 if (unlikely(!access_ok(VERIFY_WRITE, to, n))) in clear_user()
150 return n; in clear_user()
152 return __clear_user(to, n); in clear_user()
367 #define __copy_from_user(to, from, n) \ argument
369 (void __user *)(from), (n))
370 #define __copy_from_user_inatomic(to, from, n) \ argument
371 __copy_from_user((to), (from), (n))
374 const void __user *from, unsigned long n) in copy_from_user() argument
377 if (access_ok(VERIFY_READ, from, n)) in copy_from_user()
378 return __copy_from_user(to, from, n); in copy_from_user()
379 return n; in copy_from_user()
382 #define __copy_to_user(to, from, n) \ argument
384 (__force const void __user *)(from), (n))
385 #define __copy_to_user_inatomic(to, from, n) __copy_to_user((to), (from), (n)) argument
388 const void *from, unsigned long n) in copy_to_user() argument
391 if (access_ok(VERIFY_WRITE, to, n)) in copy_to_user()
392 return __copy_to_user(to, from, n); in copy_to_user()
393 return n; in copy_to_user()
418 static inline long strnlen_user(const char __user *src, long n) in strnlen_user() argument
422 return __strnlen_user(src, n); in strnlen_user()