Lines Matching refs:cmd

363 	cgc.cmd[0] = GPCMD_FLUSH_CACHE;  in cdrom_flush_cache()
380 cgc.cmd[0] = GPCMD_READ_DISC_INFO; in cdrom_get_disc_info()
381 cgc.cmd[8] = cgc.buflen = 2; in cdrom_get_disc_info()
397 cgc.cmd[8] = cgc.buflen = buflen; in cdrom_get_disc_info()
453 cgc.cmd[0] = GPCMD_GET_CONFIGURATION; in cdrom_is_mrw()
454 cgc.cmd[3] = CDF_MRW; in cdrom_is_mrw()
455 cgc.cmd[8] = sizeof(buffer); in cdrom_is_mrw()
486 cgc.cmd[0] = GPCMD_FORMAT_UNIT; in cdrom_mrw_bgformat()
487 cgc.cmd[1] = (1 << 4) | 1; in cdrom_mrw_bgformat()
520 cgc.cmd[0] = GPCMD_CLOSE_TRACK; in cdrom_mrw_bgformat_susp()
525 cgc.cmd[1] = !!immed; in cdrom_mrw_bgformat_susp()
526 cgc.cmd[2] = 1 << 1; in cdrom_mrw_bgformat_susp()
669 cgc.cmd[0] = GPCMD_GET_EVENT_STATUS_NOTIFICATION; in cdrom_get_media_event()
670 cgc.cmd[1] = 1; /* IMMED */ in cdrom_get_media_event()
671 cgc.cmd[4] = 1 << 4; /* media event */ in cdrom_get_media_event()
672 cgc.cmd[8] = sizeof(buffer); in cdrom_get_media_event()
698 cgc.cmd[0] = GPCMD_GET_CONFIGURATION; /* often 0x46 */ in cdrom_get_random_writable()
699 cgc.cmd[3] = CDF_RWRT; /* often 0x0020 */ in cdrom_get_random_writable()
700 cgc.cmd[8] = sizeof(buffer); /* often 0x18 */ in cdrom_get_random_writable()
719 cgc.cmd[0] = GPCMD_GET_CONFIGURATION; in cdrom_has_defect_mgt()
720 cgc.cmd[3] = CDF_HWDM; in cdrom_has_defect_mgt()
721 cgc.cmd[8] = sizeof(buffer); in cdrom_has_defect_mgt()
872 cgc.cmd[0] = GPCMD_GET_CONFIGURATION; in cdrom_mmc3_profile()
873 cgc.cmd[1] = 0; in cdrom_mmc3_profile()
874 cgc.cmd[2] = cgc.cmd[3] = 0; /* Starting Feature Number */ in cdrom_mmc3_profile()
875 cgc.cmd[8] = sizeof(buffer); /* Allocation Length */ in cdrom_mmc3_profile()
962 cgc.cmd[0] = GPCMD_FLUSH_CACHE; in cdrom_dvd_rw_close_write()
967 cgc.cmd[0] = GPCMD_CLOSE_TRACK; in cdrom_dvd_rw_close_write()
973 cgc.cmd[0] = GPCMD_CLOSE_TRACK; in cdrom_dvd_rw_close_write()
974 cgc.cmd[2] = 2; /* Close session */ in cdrom_dvd_rw_close_write()
1310 cgc.cmd[0] = GPCMD_MECHANISM_STATUS; in cdrom_read_mech_status()
1311 cgc.cmd[8] = (length >> 8) & 0xff; in cdrom_read_mech_status()
1312 cgc.cmd[9] = length & 0xff; in cdrom_read_mech_status()
1377 cgc.cmd[0] = GPCMD_LOAD_UNLOAD; in cdrom_load_unload()
1378 cgc.cmd[4] = 2 + (slot >= 0); in cdrom_load_unload()
1379 cgc.cmd[8] = slot; in cdrom_load_unload()
1386 cgc.cmd[0] = GPCMD_TEST_UNIT_READY; in cdrom_load_unload()
1387 cgc.cmd[7] = slot; in cdrom_load_unload()
1388 cgc.cmd[4] = cgc.cmd[8] = 0; in cdrom_load_unload()
1573 cgc->cmd[0] = GPCMD_REPORT_KEY; in setup_report_key()
1574 cgc->cmd[10] = type | (agid << 6); in setup_report_key()
1589 cgc->cmd[9] = cgc->buflen; in setup_report_key()
1595 cgc->cmd[0] = GPCMD_SEND_KEY; in setup_send_key()
1596 cgc->cmd[10] = type | (agid << 6); in setup_send_key()
1611 cgc->cmd[9] = cgc->buflen; in setup_send_key()
1667 cgc.cmd[5] = ai->lstk.lba; in dvd_do_auth()
1668 cgc.cmd[4] = ai->lstk.lba >> 8; in dvd_do_auth()
1669 cgc.cmd[3] = ai->lstk.lba >> 16; in dvd_do_auth()
1670 cgc.cmd[2] = ai->lstk.lba >> 24; in dvd_do_auth()
1775 cgc->cmd[0] = GPCMD_READ_DVD_STRUCTURE; in dvd_read_physical()
1776 cgc->cmd[6] = layer_num; in dvd_read_physical()
1777 cgc->cmd[7] = s->type; in dvd_read_physical()
1778 cgc->cmd[9] = cgc->buflen & 0xff; in dvd_read_physical()
1822 cgc->cmd[0] = GPCMD_READ_DVD_STRUCTURE; in dvd_read_copyright()
1823 cgc->cmd[6] = s->copyright.layer_num; in dvd_read_copyright()
1824 cgc->cmd[7] = s->type; in dvd_read_copyright()
1825 cgc->cmd[8] = cgc->buflen >> 8; in dvd_read_copyright()
1826 cgc->cmd[9] = cgc->buflen & 0xff; in dvd_read_copyright()
1852 cgc->cmd[0] = GPCMD_READ_DVD_STRUCTURE; in dvd_read_disckey()
1853 cgc->cmd[7] = s->type; in dvd_read_disckey()
1854 cgc->cmd[8] = size >> 8; in dvd_read_disckey()
1855 cgc->cmd[9] = size & 0xff; in dvd_read_disckey()
1856 cgc->cmd[10] = s->disckey.agid << 6; in dvd_read_disckey()
1878 cgc->cmd[0] = GPCMD_READ_DVD_STRUCTURE; in dvd_read_bca()
1879 cgc->cmd[7] = s->type; in dvd_read_bca()
1880 cgc->cmd[9] = cgc->buflen & 0xff; in dvd_read_bca()
1914 cgc->cmd[0] = GPCMD_READ_DVD_STRUCTURE; in dvd_read_manufact()
1915 cgc->cmd[7] = s->type; in dvd_read_manufact()
1916 cgc->cmd[8] = size >> 8; in dvd_read_manufact()
1917 cgc->cmd[9] = size & 0xff; in dvd_read_manufact()
1974 memset(cgc->cmd, 0, sizeof(cgc->cmd)); in cdrom_mode_sense()
1976 cgc->cmd[0] = GPCMD_MODE_SENSE_10; in cdrom_mode_sense()
1977 cgc->cmd[2] = page_code | (page_control << 6); in cdrom_mode_sense()
1978 cgc->cmd[7] = cgc->buflen >> 8; in cdrom_mode_sense()
1979 cgc->cmd[8] = cgc->buflen & 0xff; in cdrom_mode_sense()
1990 memset(cgc->cmd, 0, sizeof(cgc->cmd)); in cdrom_mode_select()
1992 cgc->cmd[0] = GPCMD_MODE_SELECT_10; in cdrom_mode_select()
1993 cgc->cmd[1] = 0x10; /* PF */ in cdrom_mode_select()
1994 cgc->cmd[7] = cgc->buflen >> 8; in cdrom_mode_select()
1995 cgc->cmd[8] = cgc->buflen & 0xff; in cdrom_mode_select()
2010 cgc.cmd[0] = GPCMD_READ_SUBCHANNEL; in cdrom_read_subchannel()
2011 cgc.cmd[1] = subchnl->cdsc_format;/* MSF or LBA addressing */ in cdrom_read_subchannel()
2012 cgc.cmd[2] = 0x40; /* request subQ data */ in cdrom_read_subchannel()
2013 cgc.cmd[3] = mcn ? 2 : 1; in cdrom_read_subchannel()
2014 cgc.cmd[8] = 16; in cdrom_read_subchannel()
2054 memset(&cgc->cmd, 0, sizeof(cgc->cmd)); in cdrom_read_cd()
2055 cgc->cmd[0] = GPCMD_READ_10; in cdrom_read_cd()
2056 cgc->cmd[2] = (lba >> 24) & 0xff; in cdrom_read_cd()
2057 cgc->cmd[3] = (lba >> 16) & 0xff; in cdrom_read_cd()
2058 cgc->cmd[4] = (lba >> 8) & 0xff; in cdrom_read_cd()
2059 cgc->cmd[5] = lba & 0xff; in cdrom_read_cd()
2060 cgc->cmd[6] = (nblocks >> 16) & 0xff; in cdrom_read_cd()
2061 cgc->cmd[7] = (nblocks >> 8) & 0xff; in cdrom_read_cd()
2062 cgc->cmd[8] = nblocks & 0xff; in cdrom_read_cd()
2074 memset(&cgc->cmd, 0, sizeof(cgc->cmd)); in cdrom_read_block()
2075 cgc->cmd[0] = GPCMD_READ_CD; in cdrom_read_block()
2077 cgc->cmd[1] = format << 2; in cdrom_read_block()
2079 cgc->cmd[2] = (lba >> 24) & 0xff; in cdrom_read_block()
2080 cgc->cmd[3] = (lba >> 16) & 0xff; in cdrom_read_block()
2081 cgc->cmd[4] = (lba >> 8) & 0xff; in cdrom_read_block()
2082 cgc->cmd[5] = lba & 0xff; in cdrom_read_block()
2084 cgc->cmd[6] = (nblocks >> 16) & 0xff; in cdrom_read_block()
2085 cgc->cmd[7] = (nblocks >> 8) & 0xff; in cdrom_read_block()
2086 cgc->cmd[8] = nblocks & 0xff; in cdrom_read_block()
2091 case CD_FRAMESIZE_RAW0 : cgc->cmd[9] = 0x58; break; in cdrom_read_block()
2092 case CD_FRAMESIZE_RAW1 : cgc->cmd[9] = 0x78; break; in cdrom_read_block()
2093 case CD_FRAMESIZE_RAW : cgc->cmd[9] = 0xf8; break; in cdrom_read_block()
2094 default : cgc->cmd[9] = 0x10; in cdrom_read_block()
2731 unsigned int cmd) in cdrom_ioctl_audioctl() argument
2742 return cdi->ops->audio_ioctl(cdi, cmd, NULL); in cdrom_ioctl_audioctl()
2761 cgc.cmd[0] = 0x15; in cdrom_switch_blocksize()
2762 cgc.cmd[1] = 1 << 4; in cdrom_switch_blocksize()
2763 cgc.cmd[4] = 12; in cdrom_switch_blocksize()
2782 cgc.cmd[0] = GPCMD_READ_TRACK_RZONE_INFO; in cdrom_get_track_info()
2783 cgc.cmd[1] = type & 3; in cdrom_get_track_info()
2784 cgc.cmd[4] = (track & 0xff00) >> 8; in cdrom_get_track_info()
2785 cgc.cmd[5] = track & 0xff; in cdrom_get_track_info()
2786 cgc.cmd[8] = 8; in cdrom_get_track_info()
2799 cgc.cmd[8] = cgc.buflen = buflen; in cdrom_get_track_info()
2929 int cmd) in mmc_ioctl_cdrom_read_data() argument
2936 switch (cmd) { in mmc_ioctl_cdrom_read_data()
3069 cgc->cmd[0] = GPCMD_PLAY_AUDIO_MSF; in mmc_ioctl_cdrom_play_msf()
3070 cgc->cmd[3] = msf.cdmsf_min0; in mmc_ioctl_cdrom_play_msf()
3071 cgc->cmd[4] = msf.cdmsf_sec0; in mmc_ioctl_cdrom_play_msf()
3072 cgc->cmd[5] = msf.cdmsf_frame0; in mmc_ioctl_cdrom_play_msf()
3073 cgc->cmd[6] = msf.cdmsf_min1; in mmc_ioctl_cdrom_play_msf()
3074 cgc->cmd[7] = msf.cdmsf_sec1; in mmc_ioctl_cdrom_play_msf()
3075 cgc->cmd[8] = msf.cdmsf_frame1; in mmc_ioctl_cdrom_play_msf()
3089 cgc->cmd[0] = GPCMD_PLAY_AUDIO_10; in mmc_ioctl_cdrom_play_blk()
3090 cgc->cmd[2] = (blk.from >> 24) & 0xff; in mmc_ioctl_cdrom_play_blk()
3091 cgc->cmd[3] = (blk.from >> 16) & 0xff; in mmc_ioctl_cdrom_play_blk()
3092 cgc->cmd[4] = (blk.from >> 8) & 0xff; in mmc_ioctl_cdrom_play_blk()
3093 cgc->cmd[5] = blk.from & 0xff; in mmc_ioctl_cdrom_play_blk()
3094 cgc->cmd[7] = (blk.len >> 8) & 0xff; in mmc_ioctl_cdrom_play_blk()
3095 cgc->cmd[8] = blk.len & 0xff; in mmc_ioctl_cdrom_play_blk()
3103 unsigned int cmd) in mmc_ioctl_cdrom_volume() argument
3147 if (cmd == CDROMVOLREAD) { in mmc_ioctl_cdrom_volume()
3177 int cmd) in mmc_ioctl_cdrom_start_stop() argument
3181 cgc->cmd[0] = GPCMD_START_STOP_UNIT; in mmc_ioctl_cdrom_start_stop()
3182 cgc->cmd[1] = 1; in mmc_ioctl_cdrom_start_stop()
3183 cgc->cmd[4] = (cmd == CDROMSTART) ? 1 : 0; in mmc_ioctl_cdrom_start_stop()
3190 int cmd) in mmc_ioctl_cdrom_pause_resume() argument
3194 cgc->cmd[0] = GPCMD_PAUSE_RESUME; in mmc_ioctl_cdrom_pause_resume()
3195 cgc->cmd[8] = (cmd == CDROMRESUME) ? 1 : 0; in mmc_ioctl_cdrom_pause_resume()
3275 static int mmc_ioctl(struct cdrom_device_info *cdi, unsigned int cmd, in mmc_ioctl() argument
3285 switch (cmd) { in mmc_ioctl()
3289 return mmc_ioctl_cdrom_read_data(cdi, userptr, &cgc, cmd); in mmc_ioctl()
3300 return mmc_ioctl_cdrom_volume(cdi, userptr, &cgc, cmd); in mmc_ioctl()
3303 return mmc_ioctl_cdrom_start_stop(cdi, &cgc, cmd); in mmc_ioctl()
3306 return mmc_ioctl_cdrom_pause_resume(cdi, &cgc, cmd); in mmc_ioctl()
3326 unsigned int cmd, unsigned long arg) in cdrom_ioctl() argument
3331 switch (cmd) { in cdrom_ioctl()
3377 ret = mmc_ioctl(cdi, cmd, arg); in cdrom_ioctl()
3387 switch (cmd) { in cdrom_ioctl()
3406 return cdrom_ioctl_audioctl(cdi, cmd); in cdrom_ioctl()