Lines Matching refs:len
291 extern int __copy_tofrom_user(void *to, const void *from, unsigned long len);
294 copy_from_user(void *to, const void *from, unsigned long len) in copy_from_user() argument
298 if (access_ok(VERIFY_READ, from, len)) in copy_from_user()
299 return __copy_tofrom_user(to, from, len); in copy_from_user()
302 over = (unsigned long)from + len - TASK_SIZE; in copy_from_user()
303 return __copy_tofrom_user(to, from, len - over) + over; in copy_from_user()
305 return len; in copy_from_user()
309 copy_to_user(void *to, const void *from, unsigned long len) in copy_to_user() argument
313 if (access_ok(VERIFY_WRITE, to, len)) in copy_to_user()
314 return __copy_tofrom_user(to, from, len); in copy_to_user()
317 over = (unsigned long)to + len - TASK_SIZE; in copy_to_user()
318 return __copy_tofrom_user(to, from, len - over) + over; in copy_to_user()
320 return len; in copy_to_user()
323 #define __copy_from_user(to, from, len) \ argument
324 __copy_tofrom_user((to), (from), (len))
326 #define __copy_to_user(to, from, len) \ argument
327 __copy_tofrom_user((to), (from), (len))
330 __copy_to_user_inatomic(void *to, const void *from, unsigned long len) in __copy_to_user_inatomic() argument
332 return __copy_to_user(to, from, len); in __copy_to_user_inatomic()
336 __copy_from_user_inatomic(void *to, const void *from, unsigned long len) in __copy_from_user_inatomic() argument
338 return __copy_from_user(to, from, len); in __copy_from_user_inatomic()
341 #define __copy_in_user(to, from, len) __copy_from_user(to, from, len) argument
344 copy_in_user(void *to, const void *from, unsigned long len) in copy_in_user() argument
346 if (access_ok(VERIFY_READ, from, len) && in copy_in_user()
347 access_ok(VERFITY_WRITE, to, len)) in copy_in_user()
348 return copy_from_user(to, from, len); in copy_in_user()
391 extern int __strncpy_from_user(char *dst, const char *src, long len);
393 static inline int strncpy_from_user(char *dst, const char *src, long len) in strncpy_from_user() argument
396 return __strncpy_from_user(dst, src, len); in strncpy_from_user()
407 extern int __strnlen_user(const char *str, long len);
408 static inline long strnlen_user(const char __user *str, long len) in strnlen_user() argument
413 return __strnlen_user(str, len); in strnlen_user()