/drivers/cdrom/ |
D | cdrom.c | 340 #define CDROM_CAN(type) (cdi->ops->capability & ~cdi->mask & (type)) 343 #define CHECKAUDIO if ((ret=check_for_audio_disc(cdi, cdo))) return ret 352 static int open_for_data(struct cdrom_device_info * cdi); 353 static int check_for_audio_disc(struct cdrom_device_info * cdi, 357 static int mmc_ioctl(struct cdrom_device_info *cdi, unsigned int cmd, 364 static int cdrom_mrw_exit(struct cdrom_device_info *cdi); 366 static int cdrom_get_disc_info(struct cdrom_device_info *cdi, disc_information *di); 372 static int cdrom_dummy_generic_packet(struct cdrom_device_info *cdi, in cdrom_dummy_generic_packet() argument 392 int register_cdrom(struct cdrom_device_info *cdi) in register_cdrom() argument 395 struct cdrom_device_ops *cdo = cdi->ops; in register_cdrom() [all …]
|
D | gdrom.c | 478 static int gdrom_audio_ioctl(struct cdrom_device_info *cdi, unsigned int cmd, in gdrom_audio_ioctl() argument
|
/drivers/scsi/ |
D | sr_ioctl.c | 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 [all …]
|
D | sr.c | 114 static unsigned int sr_check_events(struct cdrom_device_info *cdi, 229 static unsigned int sr_check_events(struct cdrom_device_info *cdi, in sr_check_events() argument 232 struct scsi_cd *cd = cdi->handle; in sr_check_events() 451 cd->cdi.media_written = 1; in sr_prep_fn() 489 cd->cdi.name, in sr_prep_fn() 536 ret = cdrom_open(&cd->cdi, bdev, mode); in sr_block_open() 548 cdrom_release(&cd->cdi, mode); in sr_block_release() 576 ret = cdrom_ioctl(&cd->cdi, bdev, mode, cmd, arg); in sr_block_ioctl() 606 ret = cdrom_check_events(&cd->cdi, clearing); in sr_block_check_events() 626 sr_cd_check(&cd->cdi); in sr_block_revalidate_disk() [all …]
|
D | sr_vendor.c | 96 cd->cdi.mask |= CDC_MULTI_SESSION; in sr_vendor_init() 126 printk("%s: MODE SELECT 0x%x/%d\n", cd->cdi.name, density, blocklength); in sr_set_blocklength() 148 cd->cdi.name, blocklength); in sr_set_blocklength() 157 int sr_cd_check(struct cdrom_device_info *cdi) in sr_cd_check() argument 159 Scsi_CD *cd = cdi->handle; in sr_cd_check() 165 if (cd->cdi.mask & CDC_MULTI_SESSION) in sr_cd_check() 194 "doesn't support multisession CD's\n", cd->cdi.name); in sr_cd_check() 223 cd->cdi.name); in sr_cd_check() 250 cd->cdi.name); in sr_cd_check() 281 "%s: No finished session\n", cd->cdi.name); in sr_cd_check() [all …]
|
D | sr.h | 51 struct cdrom_device_info cdi; member 67 int sr_select_speed(struct cdrom_device_info *cdi, int speed);
|
/drivers/ide/ |
D | ide-cd_ioctl.c | 20 int ide_cdrom_open_real(struct cdrom_device_info *cdi, int purpose) in ide_cdrom_open_real() argument 28 void ide_cdrom_release_real(struct cdrom_device_info *cdi) in ide_cdrom_release_real() argument 30 ide_drive_t *drive = cdi->handle; in ide_cdrom_release_real() 32 if (!cdi->use_count) in ide_cdrom_release_real() 41 int ide_cdrom_drive_status(struct cdrom_device_info *cdi, int slot_nr) in ide_cdrom_drive_status() argument 43 ide_drive_t *drive = cdi->handle; in ide_cdrom_drive_status() 55 if (!cdrom_get_media_event(cdi, &med)) { in ide_cdrom_drive_status() 88 unsigned int ide_cdrom_check_events_real(struct cdrom_device_info *cdi, in ide_cdrom_check_events_real() argument 91 ide_drive_t *drive = cdi->handle; in ide_cdrom_check_events_real() 111 struct cdrom_device_info *cdi = &cd->devinfo; in cdrom_eject() local [all …]
|
D | ide-cd.c | 856 struct cdrom_device_info *cdi = &info->devinfo; in cdrom_check_status() local 868 cmd[7] = cdi->sanyo_slot % 3; in cdrom_check_status() 954 struct cdrom_device_info *cdi = &info->devinfo; in ide_cd_read_toc() local 1105 stat = cdrom_get_last_written(cdi, &last_written); in ide_cd_read_toc() 1121 struct cdrom_device_info *cdi = &info->devinfo; in ide_cdrom_get_capabilities() local 1133 stat = cdrom_mode_sense(cdi, &cgc, GPMODE_CAPABILITIES_PAGE, 0); in ide_cdrom_get_capabilities() 1208 struct cdrom_device_info *cdi = &cd->devinfo; in ide_cdrom_probe_capabilities() local 1216 cdi->mask = (CDC_CD_R | CDC_CD_RW | CDC_DVD | CDC_DVD_R | in ide_cdrom_probe_capabilities() 1221 cdi->mask &= ~(CDC_MO_DRIVE | CDC_RAM); in ide_cdrom_probe_capabilities() 1229 cdi->mask &= ~CDC_PLAY_AUDIO; in ide_cdrom_probe_capabilities() [all …]
|
D | ide-cd.h | 122 int ide_cdrom_reset(struct cdrom_device_info *cdi);
|
/drivers/block/paride/ |
D | pcd.c | 172 static int pcd_open(struct cdrom_device_info *cdi, int purpose); 173 static void pcd_release(struct cdrom_device_info *cdi); 174 static int pcd_drive_status(struct cdrom_device_info *cdi, int slot_nr); 175 static unsigned int pcd_check_events(struct cdrom_device_info *cdi, 177 static int pcd_tray_move(struct cdrom_device_info *cdi, int position); 178 static int pcd_lock_door(struct cdrom_device_info *cdi, int lock); 179 static int pcd_drive_reset(struct cdrom_device_info *cdi); 180 static int pcd_get_mcn(struct cdrom_device_info *cdi, struct cdrom_mcn *mcn); 181 static int pcd_audio_ioctl(struct cdrom_device_info *cdi, 183 static int pcd_packet(struct cdrom_device_info *cdi, [all …]
|