Lines Matching refs:cdo

373 	const struct cdrom_device_ops *cdo = cdi->ops;  in cdrom_get_disc_info()  local
383 ret = cdo->generic_packet(cdi, &cgc); in cdrom_get_disc_info()
397 ret = cdo->generic_packet(cdi, &cgc); in cdrom_get_disc_info()
410 #define ENSURE(cdo, call, bits) \ argument
412 if (cdo->call == NULL) \
413 WARN_ON_ONCE((cdo)->capability & (bits)); \
588 const struct cdrom_device_ops *cdo = cdi->ops; in register_cdrom() local
592 if (cdo->open == NULL || cdo->release == NULL) in register_cdrom()
603 ENSURE(cdo, drive_status, CDC_DRIVE_STATUS); in register_cdrom()
604 if (cdo->check_events == NULL) in register_cdrom()
605 WARN_ON_ONCE(cdo->capability & (CDC_MEDIA_CHANGED | CDC_SELECT_DISC)); in register_cdrom()
606 ENSURE(cdo, tray_move, CDC_CLOSE_TRAY | CDC_OPEN_TRAY); in register_cdrom()
607 ENSURE(cdo, lock_door, CDC_LOCK); in register_cdrom()
608 ENSURE(cdo, select_speed, CDC_SELECT_SPEED); in register_cdrom()
609 ENSURE(cdo, get_last_session, CDC_MULTI_SESSION); in register_cdrom()
610 ENSURE(cdo, get_mcn, CDC_MCN); in register_cdrom()
611 ENSURE(cdo, reset, CDC_RESET); in register_cdrom()
612 ENSURE(cdo, generic_packet, CDC_GENERIC_PACKET); in register_cdrom()
634 WARN_ON(!cdo->generic_packet); in register_cdrom()
1047 const struct cdrom_device_ops *cdo = cdi->ops; in open_for_data() local
1052 if (cdo->drive_status != NULL) { in open_for_data()
1053 ret = cdo->drive_status(cdi, CDSL_CURRENT); in open_for_data()
1061 ret=cdo->tray_move(cdi,0); in open_for_data()
1078 ret = cdo->drive_status(cdi, CDSL_CURRENT); in open_for_data()
1088 ret = cdo->drive_status(cdi, CDSL_CURRENT); in open_for_data()
1120 ret = cdo->open(cdi, 0); /* open for data */ in open_for_data()
1130 cdo->lock_door(cdi, 1); in open_for_data()
1144 cdo->lock_door(cdi, 0); in open_for_data()
1209 const struct cdrom_device_ops *cdo) in check_for_audio_disc() argument
1216 if (cdo->drive_status != NULL) { in check_for_audio_disc()
1217 ret = cdo->drive_status(cdi, CDSL_CURRENT); in check_for_audio_disc()
1225 ret=cdo->tray_move(cdi,0); in check_for_audio_disc()
1240 ret = cdo->drive_status(cdi, CDSL_CURRENT); in check_for_audio_disc()
1264 const struct cdrom_device_ops *cdo = cdi->ops; in cdrom_release() local
1277 if ((cdo->capability & CDC_LOCK) && !cdi->keeplocked) { in cdrom_release()
1279 cdo->lock_door(cdi, 0); in cdrom_release()
1292 cdo->release(cdi); in cdrom_release()
1296 cdo->tray_move(cdi, 1); in cdrom_release()
1305 const struct cdrom_device_ops *cdo = cdi->ops; in cdrom_read_mech_status() local
1330 return cdo->generic_packet(cdi, &cgc); in cdrom_read_mech_status()
1637 const struct cdrom_device_ops *cdo = cdi->ops; in dvd_do_auth() local
1650 if ((ret = cdo->generic_packet(cdi, &cgc))) in dvd_do_auth()
1661 if ((ret = cdo->generic_packet(cdi, &cgc))) in dvd_do_auth()
1672 if ((ret = cdo->generic_packet(cdi, &cgc))) in dvd_do_auth()
1689 if ((ret = cdo->generic_packet(cdi, &cgc))) in dvd_do_auth()
1703 if ((ret = cdo->generic_packet(cdi, &cgc))) in dvd_do_auth()
1716 if ((ret = cdo->generic_packet(cdi, &cgc))) in dvd_do_auth()
1728 if ((ret = cdo->generic_packet(cdi, &cgc))) { in dvd_do_auth()
1740 if ((ret = cdo->generic_packet(cdi, &cgc))) in dvd_do_auth()
1751 if ((ret = cdo->generic_packet(cdi, &cgc))) in dvd_do_auth()
1768 if ((ret = cdo->generic_packet(cdi, &cgc))) in dvd_do_auth()
1785 const struct cdrom_device_ops *cdo = cdi->ops; in dvd_read_physical() local
1802 ret = cdo->generic_packet(cdi, cgc); in dvd_read_physical()
1836 const struct cdrom_device_ops *cdo = cdi->ops; in dvd_read_copyright() local
1845 ret = cdo->generic_packet(cdi, cgc); in dvd_read_copyright()
1860 const struct cdrom_device_ops *cdo = cdi->ops; in dvd_read_disckey() local
1875 ret = cdo->generic_packet(cdi, cgc); in dvd_read_disckey()
1888 const struct cdrom_device_ops *cdo = cdi->ops; in dvd_read_bca() local
1899 ret = cdo->generic_packet(cdi, cgc); in dvd_read_bca()
1922 const struct cdrom_device_ops *cdo = cdi->ops; in dvd_read_manufact() local
1936 ret = cdo->generic_packet(cdi, cgc); in dvd_read_manufact()
1989 const struct cdrom_device_ops *cdo = cdi->ops; in cdrom_mode_sense() local
1998 return cdo->generic_packet(cdi, cgc); in cdrom_mode_sense()
2005 const struct cdrom_device_ops *cdo = cdi->ops; in cdrom_mode_select() local
2014 return cdo->generic_packet(cdi, cgc); in cdrom_mode_select()
2021 const struct cdrom_device_ops *cdo = cdi->ops; in cdrom_read_subchannel() local
2033 if ((ret = cdo->generic_packet(cdi, &cgc))) in cdrom_read_subchannel()
2069 const struct cdrom_device_ops *cdo = cdi->ops; in cdrom_read_cd() local
2081 return cdo->generic_packet(cdi, cgc); in cdrom_read_cd()
2089 const struct cdrom_device_ops *cdo = cdi->ops; in cdrom_read_block() local
2114 return cdo->generic_packet(cdi, cgc); in cdrom_read_block()
2765 const struct cdrom_device_ops *cdo = cdi->ops; in cdrom_switch_blocksize() local
2785 return cdo->generic_packet(cdi, &cgc); in cdrom_switch_blocksize()
2791 const struct cdrom_device_ops *cdo = cdi->ops; in cdrom_get_track_info() local
2803 ret = cdo->generic_packet(cdi, &cgc); in cdrom_get_track_info()
2814 ret = cdo->generic_packet(cdi, &cgc); in cdrom_get_track_info()
3078 const struct cdrom_device_ops *cdo = cdi->ops; in mmc_ioctl_cdrom_play_msf() local
3091 return cdo->generic_packet(cdi, cgc); in mmc_ioctl_cdrom_play_msf()
3098 const struct cdrom_device_ops *cdo = cdi->ops; in mmc_ioctl_cdrom_play_blk() local
3111 return cdo->generic_packet(cdi, cgc); in mmc_ioctl_cdrom_play_blk()
3193 const struct cdrom_device_ops *cdo = cdi->ops; in mmc_ioctl_cdrom_start_stop() local
3199 return cdo->generic_packet(cdi, cgc); in mmc_ioctl_cdrom_start_stop()
3206 const struct cdrom_device_ops *cdo = cdi->ops; in mmc_ioctl_cdrom_pause_resume() local
3211 return cdo->generic_packet(cdi, cgc); in mmc_ioctl_cdrom_pause_resume()