Lines Matching refs:scsi_cmd_set

181 static void scsi_cmd_set(struct scsi_cmd *cmd, size_t i, unsigned char arg) {  in scsi_cmd_set()  function
244 scsi_cmd_set(&sc, 0, GPCMD_START_STOP_UNIT); in media_eject()
245 scsi_cmd_set(&sc, 4, 0x02); in media_eject()
246 scsi_cmd_set(&sc, 5, 0); in media_eject()
329 scsi_cmd_set(&sc, 0, GPCMD_INQUIRY); in cd_inquiry()
330 scsi_cmd_set(&sc, 4, sizeof(inq)); in cd_inquiry()
331 scsi_cmd_set(&sc, 5, 0); in cd_inquiry()
366 scsi_cmd_set(&sc, 0, GPCMD_READ_DISC_INFO); in cd_profiles_old_mmc()
367 scsi_cmd_set(&sc, 8, sizeof(discinfo.disc_information_length)); in cd_profiles_old_mmc()
368 scsi_cmd_set(&sc, 9, 0); in cd_profiles_old_mmc()
378 scsi_cmd_set(&sc, 0, GPCMD_READ_DISC_INFO); in cd_profiles_old_mmc()
379 scsi_cmd_set(&sc, 8, len); in cd_profiles_old_mmc()
380 scsi_cmd_set(&sc, 9, 0); in cd_profiles_old_mmc()
418 scsi_cmd_set(&sc, 0, GPCMD_GET_CONFIGURATION); in cd_profiles()
419 scsi_cmd_set(&sc, 8, 8); in cd_profiles()
420 scsi_cmd_set(&sc, 9, 0); in cd_profiles()
454 scsi_cmd_set(&sc, 0, GPCMD_GET_CONFIGURATION); in cd_profiles()
455 scsi_cmd_set(&sc, 7, (len >> 8) & 0xff); in cd_profiles()
456 scsi_cmd_set(&sc, 8, len & 0xff); in cd_profiles()
457 scsi_cmd_set(&sc, 9, 0); in cd_profiles()
516 scsi_cmd_set(&sc, 0, GPCMD_READ_DVD_STRUCTURE); in dvd_ram_media_update_state()
517 scsi_cmd_set(&sc, 7, 0xC0); in dvd_ram_media_update_state()
518 scsi_cmd_set(&sc, 9, sizeof(dvdstruct)); in dvd_ram_media_update_state()
519 scsi_cmd_set(&sc, 11, 0); in dvd_ram_media_update_state()
532 scsi_cmd_set(&sc, 0, GPCMD_READ_FORMAT_CAPACITIES); in dvd_ram_media_update_state()
533 scsi_cmd_set(&sc, 8, sizeof(format)); in dvd_ram_media_update_state()
534 scsi_cmd_set(&sc, 9, 0); in dvd_ram_media_update_state()
580 scsi_cmd_set(&sc, 0, GPCMD_READ_10); in dvd_media_update_state()
581 scsi_cmd_set(&sc, 5, 0); in dvd_media_update_state()
582 scsi_cmd_set(&sc, 8, sizeof(buffer)/2048); in dvd_media_update_state()
583 scsi_cmd_set(&sc, 9, 0); in dvd_media_update_state()
620 scsi_cmd_set(&sc, 0, GPCMD_READ_DISC_INFO); in cd_media_info()
621 scsi_cmd_set(&sc, 8, sizeof(header)); in cd_media_info()
622 scsi_cmd_set(&sc, 9, 0); in cd_media_info()
674 scsi_cmd_set(&sc, 0, GPCMD_READ_TOC_PMA_ATIP); in cd_media_toc()
675 scsi_cmd_set(&sc, 6, 1); in cd_media_toc()
676 scsi_cmd_set(&sc, 8, sizeof(header)); in cd_media_toc()
677 scsi_cmd_set(&sc, 9, 0); in cd_media_toc()
695 scsi_cmd_set(&sc, 0, GPCMD_READ_TOC_PMA_ATIP); in cd_media_toc()
696 scsi_cmd_set(&sc, 6, header[2]); /* First Track/Session Number */ in cd_media_toc()
697 scsi_cmd_set(&sc, 7, (len >> 8) & 0xff); in cd_media_toc()
698 scsi_cmd_set(&sc, 8, len & 0xff); in cd_media_toc()
699 scsi_cmd_set(&sc, 9, 0); in cd_media_toc()
724 scsi_cmd_set(&sc, 0, GPCMD_READ_TOC_PMA_ATIP); in cd_media_toc()
725 scsi_cmd_set(&sc, 2, 1); /* Session Info */ in cd_media_toc()
726 scsi_cmd_set(&sc, 8, sizeof(header)); in cd_media_toc()
727 scsi_cmd_set(&sc, 9, 0); in cd_media_toc()