Lines Matching refs:n
62 __copy_from_user_inatomic(void *to, const void __user *from, unsigned long n) in __copy_from_user_inatomic() argument
64 kasan_check_write(to, n); in __copy_from_user_inatomic()
65 check_object_size(to, n, false); in __copy_from_user_inatomic()
66 return raw_copy_from_user(to, from, n); in __copy_from_user_inatomic()
70 __copy_from_user(void *to, const void __user *from, unsigned long n) in __copy_from_user() argument
73 kasan_check_write(to, n); in __copy_from_user()
74 check_object_size(to, n, false); in __copy_from_user()
75 return raw_copy_from_user(to, from, n); in __copy_from_user()
92 __copy_to_user_inatomic(void __user *to, const void *from, unsigned long n) in __copy_to_user_inatomic() argument
94 kasan_check_read(from, n); in __copy_to_user_inatomic()
95 check_object_size(from, n, true); in __copy_to_user_inatomic()
96 return raw_copy_to_user(to, from, n); in __copy_to_user_inatomic()
100 __copy_to_user(void __user *to, const void *from, unsigned long n) in __copy_to_user() argument
103 kasan_check_read(from, n); in __copy_to_user()
104 check_object_size(from, n, true); in __copy_to_user()
105 return raw_copy_to_user(to, from, n); in __copy_to_user()
110 _copy_from_user(void *to, const void __user *from, unsigned long n) in _copy_from_user() argument
112 unsigned long res = n; in _copy_from_user()
114 if (likely(access_ok(VERIFY_READ, from, n))) { in _copy_from_user()
115 kasan_check_write(to, n); in _copy_from_user()
116 res = raw_copy_from_user(to, from, n); in _copy_from_user()
119 memset(to + (n - res), 0, res); in _copy_from_user()
129 _copy_to_user(void __user *to, const void *from, unsigned long n) in _copy_to_user() argument
132 if (access_ok(VERIFY_WRITE, to, n)) { in _copy_to_user()
133 kasan_check_read(from, n); in _copy_to_user()
134 n = raw_copy_to_user(to, from, n); in _copy_to_user()
136 return n; in _copy_to_user()
144 copy_from_user(void *to, const void __user *from, unsigned long n) in copy_from_user() argument
146 if (likely(check_copy_size(to, n, false))) in copy_from_user()
147 n = _copy_from_user(to, from, n); in copy_from_user()
148 return n; in copy_from_user()
152 copy_to_user(void __user *to, const void *from, unsigned long n) in copy_to_user() argument
154 if (likely(check_copy_size(from, n, true))) in copy_to_user()
155 n = _copy_to_user(to, from, n); in copy_to_user()
156 return n; in copy_to_user()
160 copy_in_user(void __user *to, const void __user *from, unsigned long n) in copy_in_user() argument
163 if (access_ok(VERIFY_WRITE, to, n) && access_ok(VERIFY_READ, from, n)) in copy_in_user()
164 n = raw_copy_in_user(to, from, n); in copy_in_user()
165 return n; in copy_in_user()
226 const void __user *from, unsigned long n) in __copy_from_user_inatomic_nocache() argument
228 return __copy_from_user_inatomic(to, from, n); in __copy_from_user_inatomic_nocache()