Lines Matching refs:scsi_cd
113 static void get_sectorsize(struct scsi_cd *);
114 static void get_capabilities(struct scsi_cd *);
138 static inline struct scsi_cd *scsi_cd(struct gendisk *disk) in scsi_cd() function
140 return container_of(disk->private_data, struct scsi_cd, driver); in scsi_cd()
145 struct scsi_cd *cd = dev_get_drvdata(dev); in sr_runtime_suspend()
160 static inline struct scsi_cd *scsi_cd_get(struct gendisk *disk) in scsi_cd_get()
162 struct scsi_cd *cd = NULL; in scsi_cd_get()
167 cd = scsi_cd(disk); in scsi_cd_get()
178 static void scsi_cd_put(struct scsi_cd *cd) in scsi_cd_put()
232 struct scsi_cd *cd = cdi->handle; in sr_check_events()
325 struct scsi_cd *cd = scsi_cd(SCpnt->request->rq_disk); in sr_done()
389 struct scsi_cd *cd; in sr_init_command()
397 cd = scsi_cd(rq->rq_disk); in sr_init_command()
525 struct scsi_cd *cd; in sr_block_open()
551 struct scsi_cd *cd = scsi_cd(disk); in sr_block_release()
561 struct scsi_cd *cd = scsi_cd(bdev->bd_disk); in sr_block_ioctl()
604 struct scsi_cd *cd; in sr_block_check_events()
620 struct scsi_cd *cd; in sr_block_revalidate_disk()
653 struct scsi_cd *cd = cdi->handle; in sr_open()
673 struct scsi_cd *cd = cdi->handle; in sr_release()
684 struct scsi_cd *cd; in sr_probe()
779 static void get_sectorsize(struct scsi_cd *cd) in get_sectorsize()
860 static void get_capabilities(struct scsi_cd *cd) in get_capabilities()
973 struct scsi_cd *cd = cdi->handle; in sr_packet()
998 struct scsi_cd *cd = container_of(kref, struct scsi_cd, kref); in sr_kref_release()
1016 struct scsi_cd *cd = dev_get_drvdata(dev); in sr_remove()