Lines Matching refs:scsi_cd
114 static int get_sectorsize(struct scsi_cd *);
115 static int get_capabilities(struct scsi_cd *);
140 static inline struct scsi_cd *scsi_cd(struct gendisk *disk) in scsi_cd() function
147 struct scsi_cd *cd = dev_get_drvdata(dev); in sr_runtime_suspend()
208 struct scsi_cd *cd = cdi->handle; in sr_check_events()
302 struct scsi_cd *cd = scsi_cd(rq->q->disk); in sr_done()
362 struct scsi_cd *cd; in sr_init_command()
369 cd = scsi_cd(rq->q->disk); in sr_init_command()
476 static int sr_revalidate_disk(struct scsi_cd *cd) in sr_revalidate_disk()
497 struct scsi_cd *cd = scsi_cd(disk); in sr_block_open()
523 struct scsi_cd *cd = scsi_cd(disk); in sr_block_release()
535 struct scsi_cd *cd = scsi_cd(bdev->bd_disk); in sr_block_ioctl()
569 struct scsi_cd *cd = disk->private_data; in sr_block_check_events()
578 struct scsi_cd *cd = disk->private_data; in sr_free_disk()
602 struct scsi_cd *cd = cdi->handle; in sr_open()
623 struct scsi_cd *cd; in sr_probe()
730 static int get_sectorsize(struct scsi_cd *cd) in get_sectorsize()
807 static int get_capabilities(struct scsi_cd *cd) in get_capabilities()
921 struct scsi_cd *cd = cdi->handle; in sr_packet()
987 struct scsi_cd *cd = dev_get_drvdata(dev); in sr_remove()