Lines Matching refs:cdi
40 static int sr_read_tochdr(struct cdrom_device_info *cdi, in sr_read_tochdr() argument
43 struct scsi_cd *cd = cdi->handle; in sr_read_tochdr()
70 static int sr_read_tocentry(struct cdrom_device_info *cdi, in sr_read_tocentry() argument
73 struct scsi_cd *cd = cdi->handle; in sr_read_tocentry()
115 static int sr_fake_playtrkind(struct cdrom_device_info *cdi, struct cdrom_ti *ti) in sr_fake_playtrkind() argument
122 ret = sr_read_tochdr(cdi, &tochdr); in sr_fake_playtrkind()
138 ret = sr_read_tocentry(cdi, &trk0_te); in sr_fake_playtrkind()
141 ret = sr_read_tocentry(cdi, &trk1_te); in sr_fake_playtrkind()
155 return sr_do_ioctl(cdi->handle, &cgc); in sr_fake_playtrkind()
158 static int sr_play_trkind(struct cdrom_device_info *cdi, in sr_play_trkind() argument
162 struct scsi_cd *cd = cdi->handle; in sr_play_trkind()
177 result = sr_fake_playtrkind(cdi, ti); in sr_play_trkind()
222 printk(KERN_INFO "%s: disc change detected.\n", cd->cdi.name); in sr_do_ioctl()
232 printk(KERN_INFO "%s: CDROM not ready yet.\n", cd->cdi.name); in sr_do_ioctl()
244 … printk(KERN_INFO "%s: CDROM not ready. Make sure there is a disc in the drive.\n", cd->cdi.name); in sr_do_ioctl()
262 printk(KERN_ERR "%s: CDROM (ioctl) error, command: ", cd->cdi.name); in sr_do_ioctl()
280 int sr_tray_move(struct cdrom_device_info *cdi, int pos) in sr_tray_move() argument
282 Scsi_CD *cd = cdi->handle; in sr_tray_move()
293 int sr_lock_door(struct cdrom_device_info *cdi, int lock) in sr_lock_door() argument
295 Scsi_CD *cd = cdi->handle; in sr_lock_door()
301 int sr_drive_status(struct cdrom_device_info *cdi, int slot) in sr_drive_status() argument
303 struct scsi_cd *cd = cdi->handle; in sr_drive_status()
319 if (!cdrom_get_media_event(cdi, &med)) { in sr_drive_status()
358 int sr_disk_status(struct cdrom_device_info *cdi) in sr_disk_status() argument
360 Scsi_CD *cd = cdi->handle; in sr_disk_status()
366 rc = sr_read_tochdr(cdi, &toc_h); in sr_disk_status()
373 if (sr_read_tocentry(cdi, &toc_e)) in sr_disk_status()
389 int sr_get_last_session(struct cdrom_device_info *cdi, in sr_get_last_session() argument
392 Scsi_CD *cd = cdi->handle; in sr_get_last_session()
400 int sr_get_mcn(struct cdrom_device_info *cdi, struct cdrom_mcn *mcn) in sr_get_mcn() argument
402 Scsi_CD *cd = cdi->handle; in sr_get_mcn()
428 int sr_reset(struct cdrom_device_info *cdi) in sr_reset() argument
433 int sr_select_speed(struct cdrom_device_info *cdi, int speed) in sr_select_speed() argument
435 Scsi_CD *cd = cdi->handle; in sr_select_speed()
461 int sr_audio_ioctl(struct cdrom_device_info *cdi, unsigned int cmd, void *arg) in sr_audio_ioctl() argument
465 return sr_read_tochdr(cdi, arg); in sr_audio_ioctl()
467 return sr_read_tocentry(cdi, arg); in sr_audio_ioctl()
469 return sr_play_trkind(cdi, arg); in sr_audio_ioctl()
495 cd->cdi.name, lba, format, blksize); in sr_read_cd()
551 printk("%s: sr_read_sector lba=%d blksize=%d\n", cd->cdi.name, lba, blksize); in sr_read_sector()
595 printk("%s: sr_is_xa: %d\n", cd->cdi.name, is_xa); in sr_is_xa()