Lines Matching refs:d1
706 struct dirent_type __user *d1 = buf->dirent; \
707 struct dirent_type __user *d2 = d1 + 1; \
715 if (name_len >= sizeof(d1->d_name)) \
716 name_len = sizeof(d1->d_name) - 1; \
720 copy_to_user(d1->d_name, name, name_len) || \
721 put_user(0, d1->d_name + name_len) || \
722 put_user(name_len, &d1->d_reclen)) \
731 if (long_len >= sizeof(d1->d_name)) \
732 long_len = sizeof(d1->d_name) - 1; \
733 if (short_len >= sizeof(d1->d_name)) \
734 short_len = sizeof(d1->d_name) - 1; \
741 copy_to_user(d1->d_name, shortname, short_len) || \
742 put_user(0, d1->d_name + short_len) || \
743 put_user(short_len, &d1->d_reclen)) \
784 struct __fat_dirent __user *d1 = (struct __fat_dirent __user *)arg; in fat_dir_ioctl() local
800 if (!access_ok(VERIFY_WRITE, d1, sizeof(struct __fat_dirent[2]))) in fat_dir_ioctl()
807 if (put_user(0, &d1->d_reclen)) in fat_dir_ioctl()
810 return fat_ioctl_readdir(inode, filp, d1, fat_ioctl_filldir, in fat_dir_ioctl()
824 struct compat_dirent __user *d1 = compat_ptr(arg); in FAT_IOCTL_FILLDIR_FUNC() local
840 if (!access_ok(VERIFY_WRITE, d1, sizeof(struct compat_dirent[2]))) in FAT_IOCTL_FILLDIR_FUNC()
847 if (put_user(0, &d1->d_reclen)) in FAT_IOCTL_FILLDIR_FUNC()
850 return fat_ioctl_readdir(inode, filp, d1, fat_compat_ioctl_filldir, in FAT_IOCTL_FILLDIR_FUNC()