Lines Matching refs:drive_info
304 static inline int chs_to_lba(const struct driveinfo *drive_info, in chs_to_lba() argument
309 if (drive_info->edd_params.sectors_per_track > 0 && in chs_to_lba()
310 drive_info->edd_params.heads > 0) in chs_to_lba()
312 (head * drive_info->edd_params.sectors_per_track) + in chs_to_lba()
313 (cylinder * (drive_info->edd_params.heads) * in chs_to_lba()
314 drive_info->edd_params.sectors_per_track); in chs_to_lba()
315 else if (drive_info->cbios) in chs_to_lba()
316 return (sector - 1) + (head * drive_info->legacy_sectors_per_track) + in chs_to_lba()
317 (cylinder * (drive_info->legacy_max_head + 1) * in chs_to_lba()
318 drive_info->legacy_sectors_per_track); in chs_to_lba()
321 void lba_to_chs(const struct driveinfo *drive_info, const int lba,
324 int get_drive_parameters(struct driveinfo *drive_info);