Lines Matching defs:drive
61 * Search for a specific drive, based on the MBR signature.
62 * Return drive and iterator at 0th position.
69 int drive;
71 for (drive = 0x80; drive < 0x80 + fixed_cnt; drive++) {
72 if (disk_get_params(drive, &diskinfo))
81 drive = -1;
84 return drive;
88 * Search for a specific drive/partition, based on the GPT GUID.
89 * Return drive and iterator at proper position.
96 int drive;
98 for (drive = 0x80; drive < 0x80 + fixed_cnt; drive++) {
99 if (disk_get_params(drive, &diskinfo))
111 drive = -1;
114 return drive;
118 * Search for a specific drive/partition, based on the GPT label.
119 * Return drive and iterator at proper position.
125 int drive;
127 for (drive = 0x80; drive < 0x80 + fixed_cnt; drive++) {
128 if (disk_get_params(drive, &diskinfo))
140 drive = -1;
143 return drive;
279 int drive, hd, partition;
309 drive = hd | strtol(opt.drivename, NULL, 0);
311 if (disk_get_params(drive, &diskinfo))
325 drive = sdi->iso.drive_number;
328 drive = sdi->disk.drive_number;
331 if (disk_get_params(drive, &diskinfo))
350 error("Unparsable drive specification.");