Lines Matching refs:cd_info

98 	struct cdrom_device_info *cd_info;  member
120 static int gdrom_packetcommand(struct cdrom_device_info *cd_info,
122 static int gdrom_hardreset(struct cdrom_device_info *cd_info);
214 gdrom_hardreset(gd.cd_info); in gdrom_execute_diagnostic()
238 gdrom_packetcommand(gd.cd_info, spin_command); in gdrom_preparedisk_cmd()
279 gdrom_packetcommand(gd.cd_info, toc_command); in gdrom_readtoc_cmd()
313 static int gdrom_get_last_session(struct cdrom_device_info *cd_info, in gdrom_get_last_session() argument
355 static int gdrom_open(struct cdrom_device_info *cd_info, int purpose) in gdrom_open() argument
362 static void gdrom_release(struct cdrom_device_info *cd_info) in gdrom_release() argument
366 static int gdrom_drivestatus(struct cdrom_device_info *cd_info, int ignore) in gdrom_drivestatus() argument
379 static unsigned int gdrom_check_events(struct cdrom_device_info *cd_info, in gdrom_check_events() argument
388 static int gdrom_hardreset(struct cdrom_device_info *cd_info) in gdrom_hardreset() argument
399 static int gdrom_packetcommand(struct cdrom_device_info *cd_info, in gdrom_packetcommand() argument
432 gdrom_packetcommand(gd.cd_info, sense_command); in gdrom_getsense()
485 ret = cdrom_open(gd.cd_info, bdev, mode); in gdrom_bdops_open()
493 cdrom_release(gd.cd_info, mode); in gdrom_bdops_release()
500 return cdrom_check_events(gd.cd_info, clearing); in gdrom_bdops_check_events()
509 ret = cdrom_ioctl(gd.cd_info, bdev, mode, cmd, arg); in gdrom_bdops_ioctl()
706 gd.cd_info->ops = &gdrom_ops; in probe_gdrom_setupcd()
707 gd.cd_info->capacity = 1; in probe_gdrom_setupcd()
708 strcpy(gd.cd_info->name, GDROM_DEV_NAME); in probe_gdrom_setupcd()
709 gd.cd_info->mask = CDC_CLOSE_TRAY|CDC_OPEN_TRAY|CDC_LOCK| in probe_gdrom_setupcd()
758 gd.cd_info = kzalloc(sizeof(struct cdrom_device_info), GFP_KERNEL); in probe_gdrom()
759 if (!gd.cd_info) { in probe_gdrom()
770 if (register_cdrom(gd.cd_info)) { in probe_gdrom()
813 kfree(gd.cd_info); in probe_gdrom()
830 unregister_cdrom(gd.cd_info); in remove_gdrom()
863 kfree(gd.cd_info); in exit_gdrom()