Home
last modified time | relevance | path

Searched refs:cdi (Results 1 – 11 of 11) sorted by relevance

/drivers/cdrom/
Dcdrom.c335 #define CDROM_CAN(type) (cdi->ops->capability & ~cdi->mask & (type))
338 #define CHECKAUDIO if ((ret=check_for_audio_disc(cdi, cdo))) return ret
347 static int open_for_data(struct cdrom_device_info * cdi);
348 static int check_for_audio_disc(struct cdrom_device_info * cdi,
352 static int mmc_ioctl(struct cdrom_device_info *cdi, unsigned int cmd,
359 static int cdrom_mrw_exit(struct cdrom_device_info *cdi);
361 static int cdrom_get_disc_info(struct cdrom_device_info *cdi, disc_information *di);
367 static int cdrom_dummy_generic_packet(struct cdrom_device_info *cdi, in cdrom_dummy_generic_packet() argument
387 int register_cdrom(struct cdrom_device_info *cdi) in register_cdrom() argument
390 struct cdrom_device_ops *cdo = cdi->ops; in register_cdrom()
[all …]
Dviocd.c188 static int viocd_open(struct cdrom_device_info *cdi, int purpose) in viocd_open() argument
190 struct disk_info *diskinfo = cdi->handle; in viocd_open()
224 static void viocd_release(struct cdrom_device_info *cdi) in viocd_release() argument
226 int device_no = DEVICE_NR((struct disk_info *)cdi->handle); in viocd_release()
329 static int viocd_media_changed(struct cdrom_device_info *cdi, int disc_nr) in viocd_media_changed() argument
333 int device_no = DEVICE_NR((struct disk_info *)cdi->handle); in viocd_media_changed()
367 static int viocd_lock_door(struct cdrom_device_info *cdi, int locking) in viocd_lock_door() argument
370 u64 device_no = DEVICE_NR((struct disk_info *)cdi->handle); in viocd_lock_door()
399 static int viocd_packet(struct cdrom_device_info *cdi, in viocd_packet() argument
416 (cdi->ops->capability & ~cdi->mask in viocd_packet()
[all …]
Dgdrom.c474 static int gdrom_audio_ioctl(struct cdrom_device_info *cdi, unsigned int cmd, in gdrom_audio_ioctl() argument
/drivers/scsi/
Dsr_ioctl.c38 static int sr_read_tochdr(struct cdrom_device_info *cdi, in sr_read_tochdr() argument
41 struct scsi_cd *cd = cdi->handle; in sr_read_tochdr()
68 static int sr_read_tocentry(struct cdrom_device_info *cdi, in sr_read_tocentry() argument
71 struct scsi_cd *cd = cdi->handle; in sr_read_tocentry()
113 static int sr_fake_playtrkind(struct cdrom_device_info *cdi, struct cdrom_ti *ti) in sr_fake_playtrkind() argument
120 ret = sr_read_tochdr(cdi, &tochdr); in sr_fake_playtrkind()
136 ret = sr_read_tocentry(cdi, &trk0_te); in sr_fake_playtrkind()
139 ret = sr_read_tocentry(cdi, &trk1_te); in sr_fake_playtrkind()
153 return sr_do_ioctl(cdi->handle, &cgc); in sr_fake_playtrkind()
156 static int sr_play_trkind(struct cdrom_device_info *cdi, in sr_play_trkind() argument
[all …]
Dsr.c202 static int sr_media_change(struct cdrom_device_info *cdi, int slot) in sr_media_change() argument
204 struct scsi_cd *cd = cdi->handle; in sr_media_change()
235 sr_cd_check(cdi); in sr_media_change()
397 cd->cdi.media_written = 1; in sr_prep_fn()
435 cd->cdi.name, in sr_prep_fn()
480 ret = cdrom_open(&cd->cdi, bdev, mode); in sr_block_open()
490 cdrom_release(&cd->cdi, mode); in sr_block_release()
513 ret = cdrom_ioctl(&cd->cdi, bdev, mode, cmd, arg); in sr_block_ioctl()
533 return cdrom_media_changed(&cd->cdi); in sr_block_media_changed()
549 static int sr_open(struct cdrom_device_info *cdi, int purpose) in sr_open() argument
[all …]
Dsr_vendor.c95 cd->cdi.mask |= CDC_MULTI_SESSION; in sr_vendor_init()
125 printk("%s: MODE SELECT 0x%x/%d\n", cd->cdi.name, density, blocklength); in sr_set_blocklength()
147 cd->cdi.name, blocklength); in sr_set_blocklength()
156 int sr_cd_check(struct cdrom_device_info *cdi) in sr_cd_check() argument
158 Scsi_CD *cd = cdi->handle; in sr_cd_check()
164 if (cd->cdi.mask & CDC_MULTI_SESSION) in sr_cd_check()
193 "doesn't support multisession CD's\n", cd->cdi.name); in sr_cd_check()
222 cd->cdi.name); in sr_cd_check()
249 cd->cdi.name); in sr_cd_check()
280 "%s: No finished session\n", cd->cdi.name); in sr_cd_check()
[all …]
Dsr.h44 struct cdrom_device_info cdi; member
60 int sr_select_speed(struct cdrom_device_info *cdi, int speed);
/drivers/ide/
Dide-cd_ioctl.c19 int ide_cdrom_open_real(struct cdrom_device_info *cdi, int purpose) in ide_cdrom_open_real() argument
27 void ide_cdrom_release_real(struct cdrom_device_info *cdi) in ide_cdrom_release_real() argument
29 ide_drive_t *drive = cdi->handle; in ide_cdrom_release_real()
31 if (!cdi->use_count) in ide_cdrom_release_real()
40 int ide_cdrom_drive_status(struct cdrom_device_info *cdi, int slot_nr) in ide_cdrom_drive_status() argument
42 ide_drive_t *drive = cdi->handle; in ide_cdrom_drive_status()
54 if (!cdrom_get_media_event(cdi, &med)) { in ide_cdrom_drive_status()
81 int ide_cdrom_check_media_change_real(struct cdrom_device_info *cdi, in ide_cdrom_check_media_change_real() argument
84 ide_drive_t *drive = cdi->handle; in ide_cdrom_check_media_change_real()
104 struct cdrom_device_info *cdi = &cd->devinfo; in cdrom_eject() local
[all …]
Dide-cd.c1117 struct cdrom_device_info *cdi = &info->devinfo; in cdrom_check_status() local
1129 cmd[7] = cdi->sanyo_slot % 3; in cdrom_check_status()
1213 struct cdrom_device_info *cdi = &info->devinfo; in ide_cd_read_toc() local
1364 stat = cdrom_get_last_written(cdi, &last_written); in ide_cd_read_toc()
1380 struct cdrom_device_info *cdi = &info->devinfo; in ide_cdrom_get_capabilities() local
1392 stat = cdrom_mode_sense(cdi, &cgc, GPMODE_CAPABILITIES_PAGE, 0); in ide_cdrom_get_capabilities()
1467 struct cdrom_device_info *cdi = &cd->devinfo; in ide_cdrom_probe_capabilities() local
1476 cdi->mask = (CDC_CD_R | CDC_CD_RW | CDC_DVD | CDC_DVD_R | in ide_cdrom_probe_capabilities()
1481 cdi->mask &= ~(CDC_MO_DRIVE | CDC_RAM); in ide_cdrom_probe_capabilities()
1489 cdi->mask &= ~CDC_PLAY_AUDIO; in ide_cdrom_probe_capabilities()
[all …]
Dide-cd.h127 int ide_cdrom_reset(struct cdrom_device_info *cdi);
/drivers/block/paride/
Dpcd.c170 static int pcd_open(struct cdrom_device_info *cdi, int purpose);
171 static void pcd_release(struct cdrom_device_info *cdi);
172 static int pcd_drive_status(struct cdrom_device_info *cdi, int slot_nr);
173 static int pcd_media_changed(struct cdrom_device_info *cdi, int slot_nr);
174 static int pcd_tray_move(struct cdrom_device_info *cdi, int position);
175 static int pcd_lock_door(struct cdrom_device_info *cdi, int lock);
176 static int pcd_drive_reset(struct cdrom_device_info *cdi);
177 static int pcd_get_mcn(struct cdrom_device_info *cdi, struct cdrom_mcn *mcn);
178 static int pcd_audio_ioctl(struct cdrom_device_info *cdi,
180 static int pcd_packet(struct cdrom_device_info *cdi,
[all …]