Lines Matching refs:n
8 unsigned long _copy_from_user(void *to, const void __user *from, unsigned long n) in _copy_from_user() argument
10 unsigned long res = n; in _copy_from_user()
12 if (likely(access_ok(from, n))) { in _copy_from_user()
13 kasan_check_write(to, n); in _copy_from_user()
14 res = raw_copy_from_user(to, from, n); in _copy_from_user()
17 memset(to + (n - res), 0, res); in _copy_from_user()
24 unsigned long _copy_to_user(void __user *to, const void *from, unsigned long n) in _copy_to_user() argument
27 if (likely(access_ok(to, n))) { in _copy_to_user()
28 kasan_check_read(from, n); in _copy_to_user()
29 n = raw_copy_to_user(to, from, n); in _copy_to_user()
31 return n; in _copy_to_user()