Lines Matching refs:len

296 extern int __copy_tofrom_user(void *to, const void *from, unsigned long len);
299 copy_from_user(void *to, const void *from, unsigned long len) in copy_from_user() argument
303 if (access_ok(VERIFY_READ, from, len)) in copy_from_user()
304 return __copy_tofrom_user(to, from, len); in copy_from_user()
307 over = (unsigned long)from + len - TASK_SIZE; in copy_from_user()
308 return __copy_tofrom_user(to, from, len - over) + over; in copy_from_user()
310 return len; in copy_from_user()
314 copy_to_user(void *to, const void *from, unsigned long len) in copy_to_user() argument
318 if (access_ok(VERIFY_WRITE, to, len)) in copy_to_user()
319 return __copy_tofrom_user(to, from, len); in copy_to_user()
322 over = (unsigned long)to + len - TASK_SIZE; in copy_to_user()
323 return __copy_tofrom_user(to, from, len - over) + over; in copy_to_user()
325 return len; in copy_to_user()
328 #define __copy_from_user(to, from, len) \ argument
329 __copy_tofrom_user((to), (from), (len))
331 #define __copy_to_user(to, from, len) \ argument
332 __copy_tofrom_user((to), (from), (len))
335 __copy_to_user_inatomic(void *to, const void *from, unsigned long len) in __copy_to_user_inatomic() argument
337 return __copy_to_user(to, from, len); in __copy_to_user_inatomic()
341 __copy_from_user_inatomic(void *to, const void *from, unsigned long len) in __copy_from_user_inatomic() argument
343 return __copy_from_user(to, from, len); in __copy_from_user_inatomic()
346 #define __copy_in_user(to, from, len) __copy_from_user(to, from, len) argument
349 copy_in_user(void *to, const void *from, unsigned long len) in copy_in_user() argument
351 if (access_ok(VERIFY_READ, from, len) && in copy_in_user()
352 access_ok(VERFITY_WRITE, to, len)) in copy_in_user()
353 return copy_from_user(to, from, len); in copy_in_user()
396 extern int __strncpy_from_user(char *dst, const char *src, long len);
398 static inline int strncpy_from_user(char *dst, const char *src, long len) in strncpy_from_user() argument
401 return __strncpy_from_user(dst, src, len); in strncpy_from_user()
412 extern int __strnlen_user(const char *str, long len);
413 static inline long strnlen_user(const char __user *str, long len) in strnlen_user() argument
418 return __strnlen_user(str, len); in strnlen_user()