Lines Matching refs:disk
97 struct gendisk *disk; member
490 static void gdrom_bdops_release(struct gendisk *disk, fmode_t mode) in gdrom_bdops_release() argument
497 static unsigned int gdrom_bdops_check_events(struct gendisk *disk, in gdrom_bdops_check_events() argument
718 gd.disk->major = gdrom_major; in probe_gdrom_setupdisk()
719 gd.disk->first_minor = 1; in probe_gdrom_setupdisk()
720 gd.disk->minors = 1; in probe_gdrom_setupdisk()
721 strcpy(gd.disk->disk_name, GDROM_DEV_NAME); in probe_gdrom_setupdisk()
731 gd.disk->queue = gd.gdrom_rq; in probe_gdrom_setupqueue()
774 gd.disk = alloc_disk(1); in probe_gdrom()
775 if (!gd.disk) { in probe_gdrom()
780 if (register_cdrom(gd.disk, gd.cd_info)) { in probe_gdrom()
784 gd.disk->fops = &gdrom_bdops; in probe_gdrom()
785 gd.disk->events = DISK_EVENT_MEDIA_CHANGE; in probe_gdrom()
810 add_disk(gd.disk); in probe_gdrom()
821 del_gendisk(gd.disk); in probe_gdrom()
837 del_gendisk(gd.disk); in remove_gdrom()