Lines Matching refs:scsi_cd

117 static void get_sectorsize(struct scsi_cd *);
118 static void get_capabilities(struct scsi_cd *);
142 static inline struct scsi_cd *scsi_cd(struct gendisk *disk) in scsi_cd() function
144 return container_of(disk->private_data, struct scsi_cd, driver); in scsi_cd()
149 struct scsi_cd *cd = dev_get_drvdata(dev); in sr_runtime_suspend()
164 static inline struct scsi_cd *scsi_cd_get(struct gendisk *disk) in scsi_cd_get()
166 struct scsi_cd *cd = NULL; in scsi_cd_get()
171 cd = scsi_cd(disk); in scsi_cd_get()
182 static void scsi_cd_put(struct scsi_cd *cd) in scsi_cd_put()
238 struct scsi_cd *cd = cdi->handle; in sr_check_events()
331 struct scsi_cd *cd = scsi_cd(SCpnt->request->rq_disk); in sr_done()
393 struct scsi_cd *cd; in sr_init_command()
400 cd = scsi_cd(rq->rq_disk); in sr_init_command()
519 static void sr_revalidate_disk(struct scsi_cd *cd) in sr_revalidate_disk()
532 struct scsi_cd *cd; in sr_block_open()
559 struct scsi_cd *cd = scsi_cd(disk); in sr_block_release()
571 struct scsi_cd *cd = scsi_cd(bdev->bd_disk); in sr_block_ioctl()
614 struct scsi_cd *cd = scsi_cd(bdev->bd_disk); in sr_block_compat_ioctl()
659 struct scsi_cd *cd; in sr_block_check_events()
686 struct scsi_cd *cd = cdi->handle; in sr_open()
706 struct scsi_cd *cd = cdi->handle; in sr_release()
717 struct scsi_cd *cd; in sr_probe()
819 static void get_sectorsize(struct scsi_cd *cd) in get_sectorsize()
898 static void get_capabilities(struct scsi_cd *cd) in get_capabilities()
1011 struct scsi_cd *cd = cdi->handle; in sr_packet()
1036 struct scsi_cd *cd = container_of(kref, struct scsi_cd, kref); in sr_kref_release()
1056 struct scsi_cd *cd = dev_get_drvdata(dev); in sr_remove()