Lines Matching defs:disk_ops
74 drive->disk_ops->flush(drive);
87 drive->disk_ops = NULL;
102 (void)drive->disk_ops->get_capacity(drive);
137 drive->disk_ops->flush(drive);
162 return drive->disk_ops->do_request(drive, rq, sector);
204 ret = drive->disk_ops->init_media(drive, disk);
226 drive->disk_ops->set_doorlock(drive, disk, 1);
262 drive->disk_ops->flush(drive);
265 drive->disk_ops->set_doorlock(drive, disk, 0);
310 const struct ide_disk_ops *disk_ops = drive->disk_ops;
312 if (disk_ops->unlock_native_capacity)
313 disk_ops->unlock_native_capacity(drive);
322 drive->disk_ops->get_capacity(drive);
334 return drive->disk_ops->ioctl(drive, bdev, mode, cmd, arg);
350 const struct ide_disk_ops *disk_ops = NULL;
360 disk_ops = &ide_ata_disk_ops;
364 disk_ops = &ide_atapi_disk_ops;
366 if (disk_ops == NULL)
369 if (disk_ops->check(drive, DRV_NAME) == 0) {
403 drive->disk_ops = disk_ops;
405 disk_ops->setup(drive);