• Home
  • Raw
  • Download

Lines Matching refs:n

80 		const void __user * from, unsigned long n)  in __copy_from_user()  argument
82 if (__builtin_constant_p(n)) { in __copy_from_user()
83 switch(n) { in __copy_from_user()
103 memcpy(to, (const void __force *)from, n); in __copy_from_user()
110 const void *from, unsigned long n) in __copy_to_user() argument
112 if (__builtin_constant_p(n)) { in __copy_to_user()
113 switch(n) { in __copy_to_user()
133 memcpy((void __force *)to, from, n); in __copy_to_user()
239 size_t n = __copy_from_user(x, ptr, size); in __get_user_fn() local
240 if (unlikely(n)) { in __get_user_fn()
241 memset(x + (size - n), 0, n); in __get_user_fn()
262 const void __user * from, unsigned long n) in copy_from_user() argument
264 unsigned long res = n; in copy_from_user()
266 if (likely(access_ok(VERIFY_READ, from, n))) in copy_from_user()
267 res = __copy_from_user(to, from, n); in copy_from_user()
269 memset(to + (n - res), 0, res); in copy_from_user()
274 const void *from, unsigned long n) in copy_to_user() argument
277 if (access_ok(VERIFY_WRITE, to, n)) in copy_to_user()
278 return __copy_to_user(to, from, n); in copy_to_user()
280 return n; in copy_to_user()
312 #define __strnlen_user(s, n) (strnlen((s), (n)) + 1) argument
320 static inline long strnlen_user(const char __user *src, long n) in strnlen_user() argument
324 return __strnlen_user(src, n); in strnlen_user()
337 __clear_user(void __user *to, unsigned long n) in __clear_user() argument
339 memset((void __force *)to, 0, n); in __clear_user()
345 clear_user(void __user *to, unsigned long n) in clear_user() argument
348 if (!access_ok(VERIFY_WRITE, to, n)) in clear_user()
349 return n; in clear_user()
351 return __clear_user(to, n); in clear_user()