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()
522 struct scsi_cd *cd; in sr_block_open()
538 struct scsi_cd *cd = scsi_cd(disk); in sr_block_release()
548 struct scsi_cd *cd = scsi_cd(bdev->bd_disk); in sr_block_ioctl()
585 struct scsi_cd *cd = scsi_cd(disk); in sr_block_check_events()
595 struct scsi_cd *cd = scsi_cd(disk); in sr_block_revalidate_disk()
624 struct scsi_cd *cd = cdi->handle; in sr_open()
644 struct scsi_cd *cd = cdi->handle; in sr_release()
655 struct scsi_cd *cd; in sr_probe()
751 static void get_sectorsize(struct scsi_cd *cd) in get_sectorsize()
832 static void get_capabilities(struct scsi_cd *cd) in get_capabilities()
943 struct scsi_cd *cd = cdi->handle; in sr_packet()
968 struct scsi_cd *cd = container_of(kref, struct scsi_cd, kref); in sr_kref_release()
986 struct scsi_cd *cd = dev_get_drvdata(dev); in sr_remove()