Lines Matching defs:scsi_cd
104 static void get_sectorsize(struct scsi_cd *);
105 static void get_capabilities(struct scsi_cd *);
128 static inline struct scsi_cd *scsi_cd(struct gendisk *disk)
130 return container_of(disk->private_data, struct scsi_cd, driver);
134 * The get and put routines for the struct scsi_cd. Note this entity
137 static inline struct scsi_cd *scsi_cd_get(struct gendisk *disk)
139 struct scsi_cd *cd = NULL;
144 cd = scsi_cd(disk);
158 static void scsi_cd_put(struct scsi_cd *cd)
206 struct scsi_cd *cd = cdi->handle;
265 struct scsi_cd *cd = scsi_cd(SCpnt->request->rq_disk);
329 struct scsi_cd *cd;
345 cd = scsi_cd(rq->rq_disk);
470 struct scsi_cd *cd;
486 struct scsi_cd *cd = scsi_cd(disk);
497 struct scsi_cd *cd = scsi_cd(bdev->bd_disk);
538 struct scsi_cd *cd = scsi_cd(disk);
557 struct scsi_cd *cd = cdi->handle;
577 struct scsi_cd *cd = cdi->handle;
588 struct scsi_cd *cd;
673 static void get_sectorsize(struct scsi_cd *cd)
754 static void get_capabilities(struct scsi_cd *cd)
873 * sr_kref_release - Called to free the scsi_cd structure
883 struct scsi_cd *cd = container_of(kref, struct scsi_cd, kref);
901 struct scsi_cd *cd = dev_get_drvdata(dev);