Lines Matching refs:namlen
179 static bool fillonedir(struct dir_context *ctx, const char *name, int namlen, in fillonedir() argument
189 buf->result = verify_dirent_name(name, namlen); in fillonedir()
200 (unsigned long)(dirent->d_name + namlen + 1) - in fillonedir()
205 unsafe_put_user(namlen, &dirent->d_namlen, efault_end); in fillonedir()
206 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in fillonedir()
258 static bool filldir(struct dir_context *ctx, const char *name, int namlen, in filldir() argument
265 int reclen = ALIGN(offsetof(struct linux_dirent, d_name) + namlen + 2, in filldir()
269 buf->error = verify_dirent_name(name, namlen); in filldir()
293 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in filldir()
346 static bool filldir64(struct dir_context *ctx, const char *name, int namlen, in filldir64() argument
352 int reclen = ALIGN(offsetof(struct linux_dirent64, d_name) + namlen + 1, in filldir64()
356 buf->error = verify_dirent_name(name, namlen); in filldir64()
375 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in filldir64()
437 int namlen, loff_t offset, u64 ino, in compat_fillonedir() argument
447 buf->result = verify_dirent_name(name, namlen); in compat_fillonedir()
458 (unsigned long)(dirent->d_name + namlen + 1) - in compat_fillonedir()
463 unsafe_put_user(namlen, &dirent->d_namlen, efault_end); in compat_fillonedir()
464 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in compat_fillonedir()
510 static bool compat_filldir(struct dir_context *ctx, const char *name, int namlen, in compat_filldir() argument
518 namlen + 2, sizeof(compat_long_t)); in compat_filldir()
521 buf->error = verify_dirent_name(name, namlen); in compat_filldir()
544 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in compat_filldir()