Lines Matching refs:namlen
143 static int fillonedir(struct dir_context *ctx, const char *name, int namlen, in fillonedir() argument
153 buf->result = verify_dirent_name(name, namlen); in fillonedir()
164 (unsigned long)(dirent->d_name + namlen + 1) - in fillonedir()
169 unsafe_put_user(namlen, &dirent->d_namlen, efault_end); in fillonedir()
170 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in fillonedir()
222 static int filldir(struct dir_context *ctx, const char *name, int namlen, in filldir() argument
229 int reclen = ALIGN(offsetof(struct linux_dirent, d_name) + namlen + 2, in filldir()
233 buf->error = verify_dirent_name(name, namlen); in filldir()
257 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in filldir()
310 static int filldir64(struct dir_context *ctx, const char *name, int namlen, in filldir64() argument
316 int reclen = ALIGN(offsetof(struct linux_dirent64, d_name) + namlen + 1, in filldir64()
320 buf->error = verify_dirent_name(name, namlen); in filldir64()
339 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in filldir64()
401 int namlen, loff_t offset, u64 ino, in compat_fillonedir() argument
411 buf->result = verify_dirent_name(name, namlen); in compat_fillonedir()
422 (unsigned long)(dirent->d_name + namlen + 1) - in compat_fillonedir()
427 unsafe_put_user(namlen, &dirent->d_namlen, efault_end); in compat_fillonedir()
428 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in compat_fillonedir()
474 static int compat_filldir(struct dir_context *ctx, const char *name, int namlen, in compat_filldir() argument
482 namlen + 2, sizeof(compat_long_t)); in compat_filldir()
485 buf->error = verify_dirent_name(name, namlen); in compat_filldir()
508 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in compat_filldir()