Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/cdrom/
Dcdrom.c333 #define CDROM_CAN(type) (cdi->ops->capability & ~cdi->mask & (type))
347 int cdrom_dummy_generic_packet(struct cdrom_device_info *cdi, in cdrom_dummy_generic_packet() argument
361 static int cdrom_flush_cache(struct cdrom_device_info *cdi) in cdrom_flush_cache() argument
370 return cdi->ops->generic_packet(cdi, &cgc); in cdrom_flush_cache()
374 static int cdrom_get_disc_info(struct cdrom_device_info *cdi, in cdrom_get_disc_info() argument
377 const struct cdrom_device_ops *cdo = cdi->ops; in cdrom_get_disc_info()
387 ret = cdo->generic_packet(cdi, &cgc); in cdrom_get_disc_info()
401 ret = cdo->generic_packet(cdi, &cgc); in cdrom_get_disc_info()
424 static int cdrom_mrw_probe_pc(struct cdrom_device_info *cdi) in cdrom_mrw_probe_pc() argument
434 if (!cdrom_mode_sense(cdi, &cgc, MRW_MODE_PC, 0)) { in cdrom_mrw_probe_pc()
[all …]
Dgdrom.c459 static int gdrom_audio_ioctl(struct cdrom_device_info *cdi, unsigned int cmd, in gdrom_audio_ioctl() argument
/kernel/linux/linux-5.10/drivers/ide/
Dide-cd_ioctl.c21 int ide_cdrom_open_real(struct cdrom_device_info *cdi, int purpose) in ide_cdrom_open_real() argument
29 void ide_cdrom_release_real(struct cdrom_device_info *cdi) in ide_cdrom_release_real() argument
31 ide_drive_t *drive = cdi->handle; in ide_cdrom_release_real()
33 if (!cdi->use_count) in ide_cdrom_release_real()
42 int ide_cdrom_drive_status(struct cdrom_device_info *cdi, int slot_nr) in ide_cdrom_drive_status() argument
44 ide_drive_t *drive = cdi->handle; in ide_cdrom_drive_status()
56 if (!cdrom_get_media_event(cdi, &med)) { in ide_cdrom_drive_status()
90 unsigned int ide_cdrom_check_events_real(struct cdrom_device_info *cdi, in ide_cdrom_check_events_real() argument
93 ide_drive_t *drive = cdi->handle; in ide_cdrom_check_events_real()
112 struct cdrom_device_info *cdi = &cd->devinfo; in cdrom_eject() local
[all …]
Dide-cd.c962 struct cdrom_device_info *cdi; in cdrom_check_status() local
970 cdi = &info->devinfo; in cdrom_check_status()
979 cmd[7] = cdi->sanyo_slot % 3; in cdrom_check_status()
1063 struct cdrom_device_info *cdi = &info->devinfo; in ide_cd_read_toc() local
1212 stat = cdrom_get_last_written(cdi, &last_written); in ide_cd_read_toc()
1228 struct cdrom_device_info *cdi = &info->devinfo; in ide_cdrom_get_capabilities() local
1240 stat = cdrom_mode_sense(cdi, &cgc, GPMODE_CAPABILITIES_PAGE, 0); in ide_cdrom_get_capabilities()
1314 struct cdrom_device_info *cdi = &cd->devinfo; in ide_cdrom_probe_capabilities() local
1322 cdi->mask = (CDC_CD_R | CDC_CD_RW | CDC_DVD | CDC_DVD_R | in ide_cdrom_probe_capabilities()
1327 cdi->mask &= ~(CDC_MO_DRIVE | CDC_RAM); in ide_cdrom_probe_capabilities()
[all …]
Dide-cd.h119 int ide_cdrom_reset(struct cdrom_device_info *cdi);
/kernel/linux/linux-5.10/drivers/scsi/
Dsr_ioctl.c40 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 …]
Dsr.c120 static unsigned int sr_check_events(struct cdrom_device_info *cdi,
235 static unsigned int sr_check_events(struct cdrom_device_info *cdi, in sr_check_events() argument
238 struct scsi_cd *cd = cdi->handle; in sr_check_events()
444 cd->cdi.media_written = 1; in sr_init_command()
526 sr_cd_check(&cd->cdi); in sr_revalidate_disk()
546 ret = cdrom_open(&cd->cdi, bdev, mode); in sr_block_open()
562 cdrom_release(&cd->cdi, mode); in sr_block_release()
596 ret = cdrom_ioctl(&cd->cdi, bdev, mode, cmd, arg); in sr_block_ioctl()
639 ret = cdrom_ioctl(&cd->cdi, bdev, mode, cmd, (unsigned long)argp); in sr_block_compat_ioctl()
666 ret = cdrom_check_events(&cd->cdi, clearing); in sr_block_check_events()
[all …]
Dsr_vendor.c95 cd->cdi.mask |= CDC_MULTI_SESSION; in sr_vendor_init()
110 cd->cdi.mask |= ( in sr_vendor_init()
171 int sr_cd_check(struct cdrom_device_info *cdi) in sr_cd_check() argument
173 Scsi_CD *cd = cdi->handle; in sr_cd_check()
179 if (cd->cdi.mask & CDC_MULTI_SESSION) in sr_cd_check()
324 if (CDS_AUDIO != sr_disk_status(cdi) && 1 == sr_is_xa(cd)) in sr_cd_check()
331 cdi->mask |= CDC_MULTI_SESSION; in sr_cd_check()
Dsr.h54 struct cdrom_device_info cdi; member
63 sdev_prefix_printk(prefix, (cd)->device, (cd)->cdi.name, fmt, ##a)
74 int sr_select_speed(struct cdrom_device_info *cdi, int speed);
/kernel/linux/linux-5.10/tools/thermal/tmon/
Dsysfs.c96 static int probe_cdev(struct cdev_info *cdi, char *path) in probe_cdev() argument
98 sysfs_get_string(path, "type", cdi->type); in probe_cdev()
99 sysfs_get_ulong(path, "max_state", &cdi->max_state); in probe_cdev()
100 sysfs_get_ulong(path, "cur_state", &cdi->cur_state); in probe_cdev()
104 cdi->type, cdi->max_state, cdi->cur_state, cdi->instance); in probe_cdev()
366 sysfs_get_string(cdev_name, "type", ptdata.cdi[k].type); in scan_cdevs()
367 ptdata.cdi[k].instance = i; in scan_cdevs()
368 if (strstr(ptdata.cdi[k].type, ctrl_cdev)) { in scan_cdevs()
369 ptdata.cdi[k].flag |= CDEV_FLAG_IN_CONTROL; in scan_cdevs()
450 ptdata.cdi = calloc(ptdata.max_cdev_instance + 1, in probe_thermal_sysfs()
[all …]
Dtui.c217 ptdata.cdi[j].instance, in show_cooling_device()
218 ptdata.cdi[j].type, in show_cooling_device()
219 ptdata.cdi[j].cur_state, in show_cooling_device()
220 ptdata.cdi[j].max_state); in show_cooling_device()
237 cdev_inst = ptdata.cdi[j].instance; in show_cooling_device()
303 ptdata.cdi[j].type, ptdata.cdi[j].instance); in show_dialogue()
430 CDEV, ptdata.cdi[ch].instance); in handle_input_val()
456 ptdata.cdi[cdev_id].type, in handle_input_choice()
457 ptdata.cdi[cdev_id].instance); in handle_input_choice()
Dtmon.c190 i, ptdata.cdi[i].type); in prepare_logging()
199 fprintf(tmon_log, "%s%d ", ptdata.cdi[i].type, in prepare_logging()
200 ptdata.cdi[i].instance); in prepare_logging()
Dtmon.h95 struct cdev_info *cdi; member
/kernel/linux/linux-5.10/include/linux/
Dcdrom.h74 unsigned int (*check_events) (struct cdrom_device_info *cdi,
96 int cdrom_multisession(struct cdrom_device_info *cdi,
98 int cdrom_read_tocentry(struct cdrom_device_info *cdi,
102 extern int cdrom_open(struct cdrom_device_info *cdi, struct block_device *bdev,
104 extern void cdrom_release(struct cdrom_device_info *cdi, fmode_t mode);
105 extern int cdrom_ioctl(struct cdrom_device_info *cdi, struct block_device *bdev,
107 extern unsigned int cdrom_check_events(struct cdrom_device_info *cdi,
110 extern int register_cdrom(struct gendisk *disk, struct cdrom_device_info *cdi);
111 extern void unregister_cdrom(struct cdrom_device_info *cdi);
116 int cdi; member
[all …]
Dgenhd.h206 struct cdrom_device_info *cdi; member
214 #define disk_to_cdi(disk) ((disk)->cdi)
/kernel/linux/linux-5.10/fs/udf/
Dlowlevel.c30 struct cdrom_device_info *cdi = disk_to_cdi(sb->s_bdev->bd_disk); in udf_get_last_session() local
33 if (!cdi) { in udf_get_last_session()
39 if (cdrom_multisession(cdi, &ms_info) == 0) { in udf_get_last_session()
51 struct cdrom_device_info *cdi = disk_to_cdi(bdev->bd_disk); in udf_get_last_block() local
58 if (!cdi || cdrom_get_last_written(cdi, &lblock) || lblock == 0) in udf_get_last_block()
/kernel/linux/linux-5.10/drivers/block/paride/
Dpcd.c172 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 …]
/kernel/linux/linux-5.10/fs/hfsplus/
Dwrapper.c130 struct cdrom_device_info *cdi = disk_to_cdi(sb->s_bdev->bd_disk); in hfsplus_get_last_session() local
139 if (!cdi) in hfsplus_get_last_session()
144 if (cdrom_read_tocentry(cdi, &te) || in hfsplus_get_last_session()
150 } else if (cdi) { in hfsplus_get_last_session()
154 if (cdrom_multisession(cdi, &ms_info) == 0 && ms_info.xa_flag) in hfsplus_get_last_session()
/kernel/linux/linux-5.10/fs/hmdfs/
Ddentry.c272 struct hmdfs_dentry_info_merge *cdi = hmdfs_dm(dentry); in clear_comrades() local
274 wait_event(cdi->wait_queue, !has_merge_lookup_work(cdi)); in clear_comrades()
275 mutex_lock(&cdi->comrade_list_lock); in clear_comrades()
276 clear_comrades_locked(&cdi->comrade_list); in clear_comrades()
277 mutex_unlock(&cdi->comrade_list_lock); in clear_comrades()
Dinode_merge.c59 struct hmdfs_dentry_info_merge *cdi = hmdfs_dm(child_dentry); in update_inode_attr() local
63 mutex_lock(&cdi->comrade_list_lock); in update_inode_attr()
64 fst_comrade = list_first_entry(&cdi->comrade_list, in update_inode_attr()
66 list_for_each_entry(comrade, &cdi->comrade_list, list) { in update_inode_attr()
82 mutex_unlock(&cdi->comrade_list_lock); in update_inode_attr()
212 struct hmdfs_dentry_info_merge *cdi = hmdfs_dm(child_dentry); in assign_comrades_unlocked() local
214 mutex_lock(&cdi->comrade_list_lock); in assign_comrades_unlocked()
215 WARN_ON(!list_empty(&cdi->comrade_list)); in assign_comrades_unlocked()
216 list_splice_init(onstack_comrades_head, &cdi->comrade_list); in assign_comrades_unlocked()
217 mutex_unlock(&cdi->comrade_list_lock); in assign_comrades_unlocked()
/kernel/linux/linux-5.10/fs/hfs/
Dmdb.c35 struct cdrom_device_info *cdi = disk_to_cdi(sb->s_bdev->bd_disk); in hfs_get_last_session() local
44 if (!cdi) in hfs_get_last_session()
49 if (cdrom_read_tocentry(cdi, &te) || in hfs_get_last_session()
56 } else if (cdi) { in hfs_get_last_session()
60 if (cdrom_multisession(cdi, &ms_info) == 0 && ms_info.xa_flag) in hfs_get_last_session()
/kernel/linux/linux-5.10/Documentation/cdrom/
Dcdrom-standard.rst327 int open(struct cdrom_device_info *cdi, int purpose)
343 void release(struct cdrom_device_info *cdi)
354 int drive_status(struct cdrom_device_info *cdi, int slot_nr)
370 int tray_move(struct cdrom_device_info *cdi, int position)
385 int lock_door(struct cdrom_device_info *cdi, int lock)
400 int select_speed(struct cdrom_device_info *cdi, int speed)
424 int select_disc(struct cdrom_device_info *cdi, int number)
433 int get_last_session(struct cdrom_device_info *cdi,
437 device *cdi->dev*, the start of the last session of the current disc
450 int get_mcn(struct cdrom_device_info *cdi,
[all …]
/kernel/linux/linux-5.10/fs/isofs/
Dinode.c548 struct cdrom_device_info *cdi = disk_to_cdi(sb->s_bdev->bd_disk); in isofs_get_last_session() local
554 if (!cdi) in isofs_get_last_session()
559 if (cdrom_read_tocentry(cdi, &te) == 0) { in isofs_get_last_session()
570 if (cdi) { in isofs_get_last_session()
574 if (cdrom_multisession(cdi, &ms_info) == 0) { in isofs_get_last_session()
/kernel/linux/linux-5.10/net/sched/
DKconfig70 <http://luxik.cdi.cz/~devik/qos/htb/> for complete manual and
/kernel/linux/linux-5.10/
DCREDITS890 E: devik@cdi.cz
891 W: http://luxik.cdi.cz/~devik/qos/