Lines Matching refs:drive_info
35 int write_sectors(const struct driveinfo *drive_info, const unsigned int lba, in write_sectors() argument
54 if (drive_info->ebios) { in write_sectors()
63 inreg.edx.b[0] = drive_info->disk; in write_sectors()
68 if (!drive_info->cbios) { // XXX errno in write_sectors()
77 lba_to_chs(drive_info, lba, &s, &h, &c); in write_sectors()
87 inreg.edx.b[0] = drive_info->disk; in write_sectors()
109 int write_verify_sector(struct driveinfo *drive_info, in write_verify_sector() argument
112 return write_verify_sectors(drive_info, lba, data, SECTOR); in write_verify_sector()
122 int write_verify_sectors(struct driveinfo *drive_info, in write_verify_sectors() argument
129 if (write_sectors(drive_info, lba, data, size) == -1) in write_verify_sectors()
132 if (read_sectors(drive_info, rb, lba, size) == -1) in write_verify_sectors()