Lines Matching refs:drive_info
39 struct driveinfo drive_info; in read_mbr() local
40 drive_info.disk = drive; in read_mbr()
43 return read_sectors(&drive_info, buf, 0, 1); in read_mbr()
59 struct driveinfo drive_info; in dev_read() local
60 drive_info.disk = drive; in dev_read()
62 return read_sectors(&drive_info, buf, lba, sectors); in dev_read()
75 int read_sectors(struct driveinfo *drive_info, void *data, in read_sectors() argument
84 if (get_drive_parameters(drive_info) == -1) in read_sectors()
97 if (drive_info->ebios) { in read_sectors()
106 inreg.edx.b[0] = drive_info->disk; in read_sectors()
111 if (!drive_info->cbios) { // XXX errno in read_sectors()
120 lba_to_chs(drive_info, lba, &s, &h, &c); in read_sectors()
130 inreg.edx.b[0] = drive_info->disk; in read_sectors()