• Home
  • Raw
  • Download

Lines Matching refs:disk

252 static void floppy_release(struct gendisk *disk, fmode_t mode);
253 static unsigned int floppy_check_events(struct gendisk *disk,
255 static int floppy_revalidate(struct gendisk *disk);
988 static void floppy_release(struct gendisk *disk, fmode_t mode) in floppy_release() argument
990 struct floppy_state *fs = disk->private_data; in floppy_release()
1006 static unsigned int floppy_check_events(struct gendisk *disk, in floppy_check_events() argument
1009 struct floppy_state *fs = disk->private_data; in floppy_check_events()
1013 static int floppy_revalidate(struct gendisk *disk) in floppy_revalidate() argument
1015 struct floppy_state *fs = disk->private_data; in floppy_revalidate()
1176 struct gendisk *disk; in swim3_attach() local
1188 disk = alloc_disk(1); in swim3_attach()
1189 if (disk == NULL) { in swim3_attach()
1197 disk->queue = blk_mq_init_sq_queue(&fs->tag_set, &swim3_mq_ops, 2, in swim3_attach()
1199 if (IS_ERR(disk->queue)) { in swim3_attach()
1200 rc = PTR_ERR(disk->queue); in swim3_attach()
1201 disk->queue = NULL; in swim3_attach()
1204 blk_queue_bounce_limit(disk->queue, BLK_BOUNCE_HIGH); in swim3_attach()
1205 disk->queue->queuedata = fs; in swim3_attach()
1211 disk->major = FLOPPY_MAJOR; in swim3_attach()
1212 disk->first_minor = floppy_count; in swim3_attach()
1213 disk->fops = &floppy_fops; in swim3_attach()
1214 disk->private_data = fs; in swim3_attach()
1215 disk->events = DISK_EVENT_MEDIA_CHANGE; in swim3_attach()
1216 disk->flags |= GENHD_FL_REMOVABLE; in swim3_attach()
1217 sprintf(disk->disk_name, "fd%d", floppy_count); in swim3_attach()
1218 set_capacity(disk, 2880); in swim3_attach()
1219 add_disk(disk); in swim3_attach()
1221 disks[floppy_count++] = disk; in swim3_attach()
1225 blk_cleanup_queue(disk->queue); in swim3_attach()
1226 disk->queue = NULL; in swim3_attach()
1229 put_disk(disk); in swim3_attach()