Lines Matching full:disk
20 #include "ide-disk.h"
34 static struct ide_disk_obj *ide_disk_get(struct gendisk *disk) in ide_disk_get() argument
39 idkp = ide_drv_g(disk, ide_disk_obj); in ide_disk_get()
70 struct gendisk *g = idkp->disk; in ide_gd_remove()
86 struct gendisk *g = idkp->disk; in ide_disk_release()
97 * reinitialized on resume otherwise the disk
126 spin down the disk in this case, especially since Alpha
132 the disk to expire its write cache. */
186 struct gendisk *disk = bdev->bd_disk; local
191 idkp = ide_disk_get(disk);
205 ret = drive->disk_ops->init_media(drive, disk);
208 * Allow O_NDELAY to open a drive without a disk, or with an
209 * unreadable disk, so that we can get the format capacity
227 drive->disk_ops->set_doorlock(drive, disk, 1);
232 set_capacity(disk, ide_gd_capacity(drive));
233 set_bit(GD_NEED_PART_SCAN, &disk->state);
258 static void ide_gd_release(struct gendisk *disk, fmode_t mode) argument
260 struct ide_disk_obj *idkp = ide_drv_g(disk, ide_disk_obj);
270 drive->disk_ops->set_doorlock(drive, disk, 0);
291 static void ide_gd_unlock_native_capacity(struct gendisk *disk) argument
293 struct ide_disk_obj *idkp = ide_drv_g(disk, ide_disk_obj);
365 printk(KERN_ERR PFX "%s: can't allocate a disk structure\n",
385 idkp->disk = g;
425 MODULE_ALIAS("ide:*m-disk*");
426 MODULE_ALIAS("ide-disk");
432 MODULE_DESCRIPTION("generic ATA/ATAPI disk driver");