Lines Matching refs:drive_id
839 static __inline__ int ntfs_device_win32_open_drive(int drive_id, win32_fd *fd, in ntfs_device_win32_open_drive() argument
846 sprintf(filename, "\\\\.\\PhysicalDrive%d", drive_id); in ntfs_device_win32_open_drive()
877 static __inline__ int ntfs_device_win32_open_lowlevel(int drive_id, in ntfs_device_win32_open_lowlevel() argument
897 unicode_buffer[4] = cpu_to_le16(drive_id + 'A'); in ntfs_device_win32_open_lowlevel()
964 static HANDLE ntfs_device_win32_open_volume_for_partition(unsigned int drive_id, in ntfs_device_win32_open_volume_for_partition() argument
977 "path_length=%lld, flags=%d.\n", drive_id, in ntfs_device_win32_open_volume_for_partition()
1020 if ((extent->DiskNumber==drive_id) && in ntfs_device_win32_open_volume_for_partition()
1129 static int ntfs_device_win32_open_partition(int drive_id, in ntfs_device_win32_open_partition() argument
1137 sprintf(drive_name, "\\\\.\\PhysicalDrive%d", drive_id); in ntfs_device_win32_open_partition()
1148 drive_id, part_start, part_length, flags); in ntfs_device_win32_open_partition()
1187 partition_id, drive_id); in ntfs_device_win32_open_partition()
1208 int drive_id = 0, numparams; in ntfs_device_win32_open() local
1225 drive_id = toupper(drive_char) - 'A'; in ntfs_device_win32_open()
1234 drive_id); in ntfs_device_win32_open()
1235 err = ntfs_device_win32_open_drive(drive_id, &fd, flags); in ntfs_device_win32_open()
1239 dev->d_name, drive_id, part); in ntfs_device_win32_open()
1240 err = ntfs_device_win32_open_partition(drive_id, part, &fd, in ntfs_device_win32_open()
1246 err = ntfs_device_win32_open_lowlevel(drive_id, &fd, in ntfs_device_win32_open()