• Home
  • Raw
  • Download

Lines Matching refs:disk

188 	struct gendisk *disk;  member
635 set_capacity(fs->disk, fs->total_secs); in floppy_open()
671 static void floppy_release(struct gendisk *disk, fmode_t mode) in floppy_release() argument
673 struct floppy_state *fs = disk->private_data; in floppy_release()
731 static unsigned int floppy_check_events(struct gendisk *disk, in floppy_check_events() argument
734 struct floppy_state *fs = disk->private_data; in floppy_check_events()
757 return get_disk_and_module(swd->unit[drive].disk); in floppy_find()
817 swd->unit[drive].disk = alloc_disk(1); in swim_floppy_init()
818 if (swd->unit[drive].disk == NULL) { in swim_floppy_init()
830 swd->unit[drive].disk->queue = q; in swim_floppy_init()
831 blk_queue_bounce_limit(swd->unit[drive].disk->queue, in swim_floppy_init()
833 swd->unit[drive].disk->queue->queuedata = &swd->unit[drive]; in swim_floppy_init()
838 swd->unit[drive].disk->flags = GENHD_FL_REMOVABLE; in swim_floppy_init()
839 swd->unit[drive].disk->major = FLOPPY_MAJOR; in swim_floppy_init()
840 swd->unit[drive].disk->first_minor = drive; in swim_floppy_init()
841 sprintf(swd->unit[drive].disk->disk_name, "fd%d", drive); in swim_floppy_init()
842 swd->unit[drive].disk->fops = &floppy_fops; in swim_floppy_init()
843 swd->unit[drive].disk->events = DISK_EVENT_MEDIA_CHANGE; in swim_floppy_init()
844 swd->unit[drive].disk->private_data = &swd->unit[drive]; in swim_floppy_init()
845 set_capacity(swd->unit[drive].disk, 2880); in swim_floppy_init()
846 add_disk(swd->unit[drive].disk); in swim_floppy_init()
857 struct gendisk *disk = swd->unit[drive].disk; in swim_floppy_init() local
859 if (disk) { in swim_floppy_init()
860 if (disk->queue) { in swim_floppy_init()
861 blk_cleanup_queue(disk->queue); in swim_floppy_init()
862 disk->queue = NULL; in swim_floppy_init()
865 put_disk(disk); in swim_floppy_init()
938 del_gendisk(swd->unit[drive].disk); in swim_remove()
939 blk_cleanup_queue(swd->unit[drive].disk->queue); in swim_remove()
941 put_disk(swd->unit[drive].disk); in swim_remove()