Lines Matching refs:current_drive

99 unsigned long current_drive = GRUB_INVALID_DRIVE;  variable
343 return rawread (current_drive, part_start + sector, byte_offset, in devread()
386 && is_disk_device (device_map, current_drive)) in devwrite()
392 return write_to_partition (device_map, current_drive, current_partition, in devwrite()
402 if (! rawwrite (current_drive, part_start + sector + i, in devwrite()
415 if (current_drive == NETWORK_DRIVE) in sane_partition()
419 && ((current_drive & 0xFFFFFF7F) < 8 in sane_partition()
420 || current_drive == cdrom_drive) in sane_partition()
425 || (current_drive & 0x80))) in sane_partition()
526 if (! (current_drive & 0x80)) in set_partition_hidden_flag()
541 while (next_partition (current_drive, 0xFFFFFF, &part, &type, in set_partition_hidden_flag()
562 if (! rawwrite (current_drive, offset, mbr)) in set_partition_hidden_flag()
864 if (current_drive == NETWORK_DRIVE) in next_partition()
928 int ret = next_partition (current_drive, dest_partition, in real_open_partition()
940 if (current_drive == NETWORK_DRIVE) in real_open_partition()
952 if (buf_drive != current_drive) in real_open_partition()
954 if (get_diskinfo (current_drive, &buf_geom)) in real_open_partition()
959 buf_drive = current_drive; in real_open_partition()
993 if (current_drive & 0x80) in real_open_partition()
1040 if (! (current_drive & 0x80) in real_open_partition()
1074 if (! (current_drive & 0x80)) in real_open_partition()
1119 current_drive = saved_drive; in set_device()
1121 current_drive = drive; in set_device()
1135 current_drive = saved_drive; in set_device()
1180 current_drive = NETWORK_DRIVE; in set_device()
1185 current_drive = cdrom_drive; in set_device()
1188 safe_parse_maxint (&device, (int *) &current_drive); in set_device()
1192 current_drive += 0x80; in set_device()
1217 if (!(current_drive & 0x80) in set_device()
1351 current_drive = GRUB_INVALID_DRIVE; in setup_part()
1368 current_drive = GRUB_INVALID_DRIVE; in setup_part()
1372 if (*filename != '/' && current_drive != NETWORK_DRIVE) in setup_part()
1378 else if (saved_drive != current_drive in setup_part()
1383 current_drive = saved_drive; in setup_part()
1388 if (*filename != '/' && current_drive != NETWORK_DRIVE) in setup_part()
1557 if ((disk_choice || disk_no == current_drive) in print_completions()
1570 && (disk_choice || cdrom_drive == current_drive) in print_completions()
1578 && (disk_choice || NETWORK_DRIVE == current_drive) in print_completions()
1724 if (*filename != '/' && current_drive != NETWORK_DRIVE) in grub_open()