Lines Matching refs:scsi_cd
119 static void get_sectorsize(struct scsi_cd *);
120 static void get_capabilities(struct scsi_cd *);
147 static inline struct scsi_cd *scsi_cd(struct gendisk *disk) in scsi_cd() function
149 return container_of(disk->private_data, struct scsi_cd, driver); in scsi_cd()
154 struct scsi_cd *cd = dev_get_drvdata(dev); in sr_runtime_suspend()
169 static inline struct scsi_cd *scsi_cd_get(struct gendisk *disk) in scsi_cd_get()
171 struct scsi_cd *cd = NULL; in scsi_cd_get()
176 cd = scsi_cd(disk); in scsi_cd_get()
187 static void scsi_cd_put(struct scsi_cd *cd) in scsi_cd_put()
243 struct scsi_cd *cd = cdi->handle; in sr_check_events()
337 struct scsi_cd *cd = scsi_cd(rq->rq_disk); in sr_done()
397 struct scsi_cd *cd; in sr_init_command()
404 cd = scsi_cd(rq->rq_disk); in sr_init_command()
511 static void sr_revalidate_disk(struct scsi_cd *cd) in sr_revalidate_disk()
524 struct scsi_cd *cd; in sr_block_open()
551 struct scsi_cd *cd = scsi_cd(disk); in sr_block_release()
564 struct scsi_cd *cd = scsi_cd(disk); in sr_block_ioctl()
599 struct scsi_cd *cd; in sr_block_check_events()
624 struct scsi_cd *cd = cdi->handle; in sr_open()
650 struct scsi_cd *cd; in sr_probe()
753 static void get_sectorsize(struct scsi_cd *cd) in get_sectorsize()
832 static void get_capabilities(struct scsi_cd *cd) in get_capabilities()
945 struct scsi_cd *cd = cdi->handle; in sr_packet()
1021 struct scsi_cd *cd = container_of(kref, struct scsi_cd, kref); in sr_kref_release()
1041 struct scsi_cd *cd = dev_get_drvdata(dev); in sr_remove()