Lines Matching refs:namlen

181 static bool fillonedir(struct dir_context *ctx, const char *name, int namlen,  in fillonedir()  argument
191 buf->result = verify_dirent_name(name, namlen); in fillonedir()
202 (unsigned long)(dirent->d_name + namlen + 1) - in fillonedir()
207 unsafe_put_user(namlen, &dirent->d_namlen, efault_end); in fillonedir()
208 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in fillonedir()
259 static bool filldir(struct dir_context *ctx, const char *name, int namlen, in filldir() argument
266 int reclen = ALIGN(offsetof(struct linux_dirent, d_name) + namlen + 2, in filldir()
270 buf->error = verify_dirent_name(name, namlen); in filldir()
294 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in filldir()
345 static bool filldir64(struct dir_context *ctx, const char *name, int namlen, in filldir64() argument
351 int reclen = ALIGN(offsetof(struct linux_dirent64, d_name) + namlen + 1, in filldir64()
355 buf->error = verify_dirent_name(name, namlen); in filldir64()
374 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in filldir64()
434 int namlen, loff_t offset, u64 ino, in compat_fillonedir() argument
444 buf->result = verify_dirent_name(name, namlen); in compat_fillonedir()
455 (unsigned long)(dirent->d_name + namlen + 1) - in compat_fillonedir()
460 unsafe_put_user(namlen, &dirent->d_namlen, efault_end); in compat_fillonedir()
461 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in compat_fillonedir()
506 static bool compat_filldir(struct dir_context *ctx, const char *name, int namlen, in compat_filldir() argument
514 namlen + 2, sizeof(compat_long_t)); in compat_filldir()
517 buf->error = verify_dirent_name(name, namlen); in compat_filldir()
540 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in compat_filldir()