Lines Matching refs:cdo

374 	const struct cdrom_device_ops *cdo = cdi->ops;  in cdrom_get_disc_info()  local
384 ret = cdo->generic_packet(cdi, &cgc); in cdrom_get_disc_info()
398 ret = cdo->generic_packet(cdi, &cgc); in cdrom_get_disc_info()
411 #define ENSURE(cdo, call, bits) \ argument
413 if (cdo->call == NULL) \
414 WARN_ON_ONCE((cdo)->capability & (bits)); \
589 const struct cdrom_device_ops *cdo = cdi->ops; in register_cdrom() local
593 if (cdo->open == NULL || cdo->release == NULL) in register_cdrom()
604 ENSURE(cdo, drive_status, CDC_DRIVE_STATUS); in register_cdrom()
605 if (cdo->check_events == NULL) in register_cdrom()
606 WARN_ON_ONCE(cdo->capability & (CDC_MEDIA_CHANGED | CDC_SELECT_DISC)); in register_cdrom()
607 ENSURE(cdo, tray_move, CDC_CLOSE_TRAY | CDC_OPEN_TRAY); in register_cdrom()
608 ENSURE(cdo, lock_door, CDC_LOCK); in register_cdrom()
609 ENSURE(cdo, select_speed, CDC_SELECT_SPEED); in register_cdrom()
610 ENSURE(cdo, get_last_session, CDC_MULTI_SESSION); in register_cdrom()
611 ENSURE(cdo, get_mcn, CDC_MCN); in register_cdrom()
612 ENSURE(cdo, reset, CDC_RESET); in register_cdrom()
613 ENSURE(cdo, generic_packet, CDC_GENERIC_PACKET); in register_cdrom()
635 WARN_ON(!cdo->generic_packet); in register_cdrom()
1039 const struct cdrom_device_ops *cdo = cdi->ops; in open_for_data() local
1044 if (cdo->drive_status != NULL) { in open_for_data()
1045 ret = cdo->drive_status(cdi, CDSL_CURRENT); in open_for_data()
1053 ret=cdo->tray_move(cdi,0); in open_for_data()
1070 ret = cdo->drive_status(cdi, CDSL_CURRENT); in open_for_data()
1080 ret = cdo->drive_status(cdi, CDSL_CURRENT); in open_for_data()
1112 ret = cdo->open(cdi, 0); /* open for data */ in open_for_data()
1122 cdo->lock_door(cdi, 1); in open_for_data()
1136 cdo->lock_door(cdi, 0); in open_for_data()
1201 const struct cdrom_device_ops *cdo) in check_for_audio_disc() argument
1208 if (cdo->drive_status != NULL) { in check_for_audio_disc()
1209 ret = cdo->drive_status(cdi, CDSL_CURRENT); in check_for_audio_disc()
1217 ret=cdo->tray_move(cdi,0); in check_for_audio_disc()
1232 ret = cdo->drive_status(cdi, CDSL_CURRENT); in check_for_audio_disc()
1256 const struct cdrom_device_ops *cdo = cdi->ops; in cdrom_release() local
1268 if ((cdo->capability & CDC_LOCK) && !cdi->keeplocked) { in cdrom_release()
1270 cdo->lock_door(cdi, 0); in cdrom_release()
1274 cdo->release(cdi); in cdrom_release()
1278 cdo->tray_move(cdi, 1); in cdrom_release()
1288 const struct cdrom_device_ops *cdo = cdi->ops; in cdrom_read_mech_status() local
1313 return cdo->generic_packet(cdi, &cgc); in cdrom_read_mech_status()
1620 const struct cdrom_device_ops *cdo = cdi->ops; in dvd_do_auth() local
1633 if ((ret = cdo->generic_packet(cdi, &cgc))) in dvd_do_auth()
1644 if ((ret = cdo->generic_packet(cdi, &cgc))) in dvd_do_auth()
1655 if ((ret = cdo->generic_packet(cdi, &cgc))) in dvd_do_auth()
1672 if ((ret = cdo->generic_packet(cdi, &cgc))) in dvd_do_auth()
1686 if ((ret = cdo->generic_packet(cdi, &cgc))) in dvd_do_auth()
1699 if ((ret = cdo->generic_packet(cdi, &cgc))) in dvd_do_auth()
1711 if ((ret = cdo->generic_packet(cdi, &cgc))) { in dvd_do_auth()
1723 if ((ret = cdo->generic_packet(cdi, &cgc))) in dvd_do_auth()
1734 if ((ret = cdo->generic_packet(cdi, &cgc))) in dvd_do_auth()
1751 if ((ret = cdo->generic_packet(cdi, &cgc))) in dvd_do_auth()
1768 const struct cdrom_device_ops *cdo = cdi->ops; in dvd_read_physical() local
1785 ret = cdo->generic_packet(cdi, cgc); in dvd_read_physical()
1819 const struct cdrom_device_ops *cdo = cdi->ops; in dvd_read_copyright() local
1828 ret = cdo->generic_packet(cdi, cgc); in dvd_read_copyright()
1843 const struct cdrom_device_ops *cdo = cdi->ops; in dvd_read_disckey() local
1858 ret = cdo->generic_packet(cdi, cgc); in dvd_read_disckey()
1871 const struct cdrom_device_ops *cdo = cdi->ops; in dvd_read_bca() local
1882 ret = cdo->generic_packet(cdi, cgc); in dvd_read_bca()
1905 const struct cdrom_device_ops *cdo = cdi->ops; in dvd_read_manufact() local
1919 ret = cdo->generic_packet(cdi, cgc); in dvd_read_manufact()
1972 const struct cdrom_device_ops *cdo = cdi->ops; in cdrom_mode_sense() local
1981 return cdo->generic_packet(cdi, cgc); in cdrom_mode_sense()
1988 const struct cdrom_device_ops *cdo = cdi->ops; in cdrom_mode_select() local
1997 return cdo->generic_packet(cdi, cgc); in cdrom_mode_select()
2004 const struct cdrom_device_ops *cdo = cdi->ops; in cdrom_read_subchannel() local
2016 if ((ret = cdo->generic_packet(cdi, &cgc))) in cdrom_read_subchannel()
2052 const struct cdrom_device_ops *cdo = cdi->ops; in cdrom_read_cd() local
2064 return cdo->generic_packet(cdi, cgc); in cdrom_read_cd()
2072 const struct cdrom_device_ops *cdo = cdi->ops; in cdrom_read_block() local
2097 return cdo->generic_packet(cdi, cgc); in cdrom_read_block()
2751 const struct cdrom_device_ops *cdo = cdi->ops; in cdrom_switch_blocksize() local
2771 return cdo->generic_packet(cdi, &cgc); in cdrom_switch_blocksize()
2777 const struct cdrom_device_ops *cdo = cdi->ops; in cdrom_get_track_info() local
2789 ret = cdo->generic_packet(cdi, &cgc); in cdrom_get_track_info()
2800 ret = cdo->generic_packet(cdi, &cgc); in cdrom_get_track_info()
3064 const struct cdrom_device_ops *cdo = cdi->ops; in mmc_ioctl_cdrom_play_msf() local
3077 return cdo->generic_packet(cdi, cgc); in mmc_ioctl_cdrom_play_msf()
3084 const struct cdrom_device_ops *cdo = cdi->ops; in mmc_ioctl_cdrom_play_blk() local
3097 return cdo->generic_packet(cdi, cgc); in mmc_ioctl_cdrom_play_blk()
3179 const struct cdrom_device_ops *cdo = cdi->ops; in mmc_ioctl_cdrom_start_stop() local
3185 return cdo->generic_packet(cdi, cgc); in mmc_ioctl_cdrom_start_stop()
3192 const struct cdrom_device_ops *cdo = cdi->ops; in mmc_ioctl_cdrom_pause_resume() local
3197 return cdo->generic_packet(cdi, cgc); in mmc_ioctl_cdrom_pause_resume()