Lines Matching refs: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)
180 struct scsi_cd *cd = cdi->handle;
225 struct scsi_cd *cd = scsi_cd(SCpnt->request->rq_disk);
302 struct scsi_cd *cd = scsi_cd(SCpnt->request->rq_disk);
428 struct scsi_cd *cd;
443 struct scsi_cd *cd = scsi_cd(inode->i_bdev->bd_disk);
456 struct scsi_cd *cd = scsi_cd(inode->i_bdev->bd_disk);
489 struct scsi_cd *cd = scsi_cd(disk);
508 struct scsi_cd *cd = cdi->handle;
528 struct scsi_cd *cd = cdi->handle;
539 struct scsi_cd *cd;
620 static void get_sectorsize(struct scsi_cd *cd)
701 static void get_capabilities(struct scsi_cd *cd)
837 * sr_kref_release - Called to free the scsi_cd structure
847 struct scsi_cd *cd = container_of(kref, struct scsi_cd, kref);
865 struct scsi_cd *cd = dev_get_drvdata(dev);