Lines Matching refs:d1
712 struct dirent_type __user *d1 = buf->dirent; \
713 struct dirent_type __user *d2 = d1 + 1; \
721 if (name_len >= sizeof(d1->d_name)) \
722 name_len = sizeof(d1->d_name) - 1; \
726 copy_to_user(d1->d_name, name, name_len) || \
727 put_user(0, d1->d_name + name_len) || \
728 put_user(name_len, &d1->d_reclen)) \
737 if (long_len >= sizeof(d1->d_name)) \
738 long_len = sizeof(d1->d_name) - 1; \
739 if (short_len >= sizeof(d1->d_name)) \
740 short_len = sizeof(d1->d_name) - 1; \
747 copy_to_user(d1->d_name, shortname, short_len) || \
748 put_user(0, d1->d_name + short_len) || \
749 put_user(short_len, &d1->d_reclen)) \
790 struct __fat_dirent __user *d1 = (struct __fat_dirent __user *)arg; in fat_dir_ioctl() local
806 if (!access_ok(VERIFY_WRITE, d1, sizeof(struct __fat_dirent[2]))) in fat_dir_ioctl()
813 if (put_user(0, &d1->d_reclen)) in fat_dir_ioctl()
816 return fat_ioctl_readdir(inode, filp, d1, fat_ioctl_filldir, in fat_dir_ioctl()
830 struct compat_dirent __user *d1 = compat_ptr(arg); in FAT_IOCTL_FILLDIR_FUNC() local
846 if (!access_ok(VERIFY_WRITE, d1, sizeof(struct compat_dirent[2]))) in FAT_IOCTL_FILLDIR_FUNC()
853 if (put_user(0, &d1->d_reclen)) in FAT_IOCTL_FILLDIR_FUNC()
856 return fat_ioctl_readdir(inode, filp, d1, fat_compat_ioctl_filldir, in FAT_IOCTL_FILLDIR_FUNC()