Lines Matching refs:cd
60 struct cdrom_info *cd = NULL; in ide_cd_get() local
63 cd = ide_drv_g(disk, cdrom_info); in ide_cd_get()
64 if (cd) { in ide_cd_get()
65 if (ide_device_get(cd->drive)) in ide_cd_get()
66 cd = NULL; in ide_cd_get()
68 get_device(&cd->dev); in ide_cd_get()
72 return cd; in ide_cd_get()
75 static void ide_cd_put(struct cdrom_info *cd) in ide_cd_put() argument
77 ide_drive_t *drive = cd->drive; in ide_cd_put()
80 put_device(&cd->dev); in ide_cd_put()
703 struct cdrom_info *cd = drive->driver_data; in cdrom_start_rw() local
715 if (get_disk_ro(cd->disk)) in cdrom_start_rw()
734 cd->devinfo.media_written = 1; in cdrom_start_rw()
1142 struct cdrom_info *cd = drive->driver_data; in ide_cdrom_update_speed() local
1158 cd->current_speed = DIV_ROUND_CLOSEST(curspeed, 176); in ide_cdrom_update_speed()
1159 cd->max_speed = DIV_ROUND_CLOSEST(maxspeed, 176); in ide_cdrom_update_speed()
1207 struct cdrom_info *cd = drive->driver_data; in ide_cdrom_probe_capabilities() local
1208 struct cdrom_device_info *cdi = &cd->devinfo; in ide_cdrom_probe_capabilities()
1283 if (cd->max_speed) in ide_cdrom_probe_capabilities()
1284 printk(KERN_CONT " %dX", cd->max_speed); in ide_cdrom_probe_capabilities()
1497 struct cdrom_info *cd = drive->driver_data; in ide_cdrom_setup() local
1498 struct cdrom_device_info *cdi = &cd->devinfo; in ide_cdrom_setup()
1531 cd->devinfo.handle = NULL; in ide_cdrom_setup()
1535 ide_proc_register_driver(drive, cd->driver); in ide_cdrom_setup()