Lines Matching defs:current_drive
231 ide_drive *current_drive;
324 && controller->current_drive != NULL) {
327 controller->current_drive->nr,
330 if (device_io_read_buffer(controller->current_drive->device,
338 device_path(controller->current_drive->device));
366 && controller->current_drive != NULL) {
369 controller->current_drive->nr,
372 if (device_io_write_buffer(controller->current_drive->device,
380 device_path(controller->current_drive->device));
401 controller->current_drive = &controller->drive[drive_nr];
404 controller->current_drive = NULL;
419 if (controller->current_drive == NULL)
422 controller->fifo_size = controller->current_drive->geometry.byte;
428 if (controller->current_drive == NULL)
438 else if (controller->current_drive->geometry.head != 0
439 && controller->current_drive->geometry.sector != 0) {
446 * ((cylinder_nr * controller->current_drive->geometry.head + head_nr)
447 * controller->current_drive->geometry.sector + sector_nr - 1);
451 controller->nr, controller->current_drive->nr);
454 controller->current_drive == NULL ? -1L : (long)controller->current_drive->nr,