Home | History | Annotate | Download | only in stage2

Lines Matching refs:current_drive

92 unsigned long current_drive = GRUB_INVALID_DRIVE;
327 return rawread (current_drive, part_start + sector, byte_offset,
370 && is_disk_device (device_map, current_drive))
376 return write_to_partition (device_map, current_drive, current_partition,
386 if (! rawwrite (current_drive, part_start + sector + i,
399 if (current_drive == NETWORK_DRIVE)
403 && ((current_drive & 0xFFFFFF7F) < 8
404 || current_drive == cdrom_drive)
409 || (current_drive & 0x80)))
510 if (! (current_drive & 0x80))
525 while (next_partition (current_drive, 0xFFFFFF, &part, &type,
539 if (! rawwrite (current_drive, offset, mbr))
716 if (current_drive == NETWORK_DRIVE)
766 int ret = next_partition (current_drive, dest_partition,
777 if (current_drive == NETWORK_DRIVE)
789 if (buf_drive != current_drive)
791 if (get_diskinfo (current_drive, &buf_geom))
796 buf_drive = current_drive;
829 if (current_drive & 0x80)
875 if (! (current_drive & 0x80)
908 if (! (current_drive & 0x80))
953 current_drive = saved_drive;
955 current_drive = drive;
969 current_drive = saved_drive;
1014 current_drive = NETWORK_DRIVE;
1019 current_drive = cdrom_drive;
1022 safe_parse_maxint (&device, (int *) &current_drive);
1026 current_drive += 0x80;
1051 if (!(current_drive & 0x80)
1185 current_drive = GRUB_INVALID_DRIVE;
1202 current_drive = GRUB_INVALID_DRIVE;
1212 else if (saved_drive != current_drive
1217 current_drive = saved_drive;
1391 if ((disk_choice || disk_no == current_drive)
1404 && (disk_choice || cdrom_drive == current_drive)
1412 && (disk_choice || NETWORK_DRIVE == current_drive)