Lines Matching refs:disk
255 static void floppy_release(struct gendisk *disk, fmode_t mode);
256 static unsigned int floppy_check_events(struct gendisk *disk,
258 static int floppy_revalidate(struct gendisk *disk);
1024 static void floppy_release(struct gendisk *disk, fmode_t mode) in floppy_release() argument
1026 struct floppy_state *fs = disk->private_data; in floppy_release()
1038 static unsigned int floppy_check_events(struct gendisk *disk, in floppy_check_events() argument
1041 struct floppy_state *fs = disk->private_data; in floppy_check_events()
1045 static int floppy_revalidate(struct gendisk *disk) in floppy_revalidate() argument
1047 struct floppy_state *fs = disk->private_data; in floppy_revalidate()
1206 struct gendisk *disk; in swim3_attach() local
1218 disk = disks[index] = alloc_disk(1); in swim3_attach()
1219 if (disk == NULL) in swim3_attach()
1221 disk->queue = blk_init_queue(do_fd_request, &swim3_lock); in swim3_attach()
1222 if (disk->queue == NULL) { in swim3_attach()
1223 put_disk(disk); in swim3_attach()
1226 disk->queue->queuedata = &floppy_states[index]; in swim3_attach()
1236 disk->major = FLOPPY_MAJOR; in swim3_attach()
1237 disk->first_minor = index; in swim3_attach()
1238 disk->fops = &floppy_fops; in swim3_attach()
1239 disk->private_data = &floppy_states[index]; in swim3_attach()
1240 disk->flags |= GENHD_FL_REMOVABLE; in swim3_attach()
1241 sprintf(disk->disk_name, "fd%d", index); in swim3_attach()
1242 set_capacity(disk, 2880); in swim3_attach()
1243 add_disk(disk); in swim3_attach()