/drivers/staging/rts5139/ |
H A D | rts51x_fop.c | 47 struct sd_direct_cmnd *cmnd) 54 dir = (cmnd->cmnd[0] >> 3) & 0x03; 55 cmd12 = (cmnd->cmnd[0] >> 2) & 0x01; 56 standby = (cmnd->cmnd[0] >> 1) & 0x01; 57 acmd = cmnd->cmnd[0] & 0x01; 58 cmd_idx = cmnd 46 rts51x_sd_direct_cmnd(struct rts51x_chip *chip, struct sd_direct_cmnd *cmnd) argument 245 struct sd_direct_cmnd cmnd; local [all...] |
H A D | rts51x_scsi.c | 53 switch (srb->cmnd[0]) { 327 if (srb->cmnd[0] != TEST_UNIT_READY) 332 RTS51X_DEBUGPN(" %02x", srb->cmnd[i]); 549 if (srb->cmnd[1] == 1) 552 switch (srb->cmnd[0x4]) { 582 prevent = srb->cmnd[4] & 0x1; 715 pageCode = srb->cmnd[2] & 0x3f; 719 if (srb->cmnd[0] == MODE_SENSE) { 721 ms_mode_sense(chip, srb->cmnd[0], lun, buf, 734 ms_mode_sense(chip, srb->cmnd[ [all...] |
H A D | sd_cprm.c | 963 if ((0x53 != srb->cmnd[2]) || (0x44 != srb->cmnd[3]) 964 || (0x20 != srb->cmnd[4]) || (0x43 != srb->cmnd[5]) 965 || (0x61 != srb->cmnd[6]) || (0x72 != srb->cmnd[7]) 966 || (0x64 != srb->cmnd[8])) { 971 switch (srb->cmnd[1] & 0x0F) { 1015 cmd_idx = srb->cmnd[2] & 0x3F; 1016 if (srb->cmnd[ [all...] |
H A D | rts51x_fop.h | 37 u8 cmnd[12]; member in struct:sd_direct_cmnd
|
/drivers/usb/storage/ |
H A D | cypress_atacb.c | 87 if (likely(srb->cmnd[0] != ATA_16 && srb->cmnd[0] != ATA_12)) { 92 memcpy(save_cmnd, srb->cmnd, sizeof(save_cmnd)); 93 memset(srb->cmnd, 0, MAX_COMMAND_SIZE); 111 srb->cmnd[0] = 0x24; /* bVSCBSignature : vendor-specific command 114 srb->cmnd[1] = 0x24; /* bVSCBSubCommand : 0x24 for ATACB */ 116 srb->cmnd[3] = 0xff - 1; /* features, sector count, lba low, lba med 118 srb->cmnd[4] = 1; /* TransferBlockCount : 512 */ 121 srb->cmnd[ 6] = save_cmnd[ 4]; /* features */ 122 srb->cmnd[ [all...] |
H A D | uas.c | 48 struct scsi_cmnd *cmnd; member in struct:uas_dev_info 79 static int uas_submit_urbs(struct scsi_cmnd *cmnd, 100 struct scsi_cmnd *cmnd = container_of(scp, local 102 err = uas_submit_urbs(cmnd, cmnd->device->hostdata, GFP_NOIO); 113 static void uas_sense(struct urb *urb, struct scsi_cmnd *cmnd) argument 116 struct scsi_device *sdev = cmnd->device; 117 struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp; 131 memcpy(cmnd->sense_buffer, sense_iu->sense, len); 134 cmnd 139 uas_sense_old(struct urb *urb, struct scsi_cmnd *cmnd) argument 165 uas_xfer_data(struct urb *urb, struct scsi_cmnd *cmnd, unsigned direction) argument 186 struct scsi_cmnd *cmnd; local 269 struct scsi_cmnd *cmnd = urb->context; local 284 struct scsi_cmnd *cmnd = urb->context; local 297 uas_alloc_data_urb(struct uas_dev_info *devinfo, gfp_t gfp, unsigned int pipe, struct scsi_cmnd *cmnd, enum dma_data_direction dir) argument 351 uas_alloc_cmd_urb(struct uas_dev_info *devinfo, gfp_t gfp, struct scsi_cmnd *cmnd, u16 stream_id) argument 397 uas_submit_urbs(struct scsi_cmnd *cmnd, struct uas_dev_info *devinfo, gfp_t gfp) argument 475 uas_queuecommand_lck(struct scsi_cmnd *cmnd, void (*done)(struct scsi_cmnd *)) argument 536 uas_eh_abort_handler(struct scsi_cmnd *cmnd) argument 546 uas_eh_device_reset_handler(struct scsi_cmnd *cmnd) argument 556 uas_eh_target_reset_handler(struct scsi_cmnd *cmnd) argument 568 uas_eh_bus_reset_handler(struct scsi_cmnd *cmnd) argument [all...] |
H A D | datafab.c | 472 pc = srb->cmnd[2] >> 6; 473 page_code = srb->cmnd[2] & 0x3F; 580 if (srb->cmnd[0] == INQUIRY) { 587 if (srb->cmnd[0] == READ_CAPACITY) { 605 if (srb->cmnd[0] == MODE_SELECT_10) { 612 if (srb->cmnd[0] == READ_10) { 613 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | 614 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[ [all...] |
H A D | jumpshot.c | 398 pc = srb->cmnd[2] >> 6; 399 page_code = srb->cmnd[2] & 0x3F; 506 if (srb->cmnd[0] == INQUIRY) { 513 if (srb->cmnd[0] == READ_CAPACITY) { 536 if (srb->cmnd[0] == MODE_SELECT_10) { 541 if (srb->cmnd[0] == READ_10) { 542 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | 543 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[ [all...] |
H A D | protocol.c | 67 * a unsigned char cmnd[16], so we know we have storage available 70 srb->cmnd[srb->cmd_len] = 0; 82 * a unsigned char cmnd[16], so we know we have storage available 87 srb->cmnd[srb->cmd_len] = 0; 95 switch (srb->cmnd[0]) { 99 srb->cmnd[4] = 36; 104 srb->cmnd[7] = 0; 105 srb->cmnd[8] = 8; 110 srb->cmnd[4] = 18; 112 } /* end switch on cmnd[ [all...] |
H A D | shuttle_usbat.c | 1591 data[i] = (i-7 >= srb->cmd_len) ? 0 : srb->cmnd[i-7]; 1598 if (srb->cmnd[0] == TEST_UNIT_READY) 1618 } else if (srb->cmnd[0] == READ_10 || 1619 srb->cmnd[0] == GPCMD_READ_CD) { 1646 result = usbat_write_block(us, USBAT_ATA, srb->cmnd, 12, 1647 srb->cmnd[0] == GPCMD_BLANK ? 75 : 10, 0); 1695 if (srb->cmnd[0] == INQUIRY) { 1702 if (srb->cmnd[0] == READ_CAPACITY) { 1728 if (srb->cmnd[0] == MODE_SELECT_10) { 1733 if (srb->cmnd[ [all...] |
H A D | realtek_cr.c | 367 u8 cmnd[12] = { 0 }; local 376 cmnd[0] = 0xF0; 377 cmnd[1] = 0x0D; 378 cmnd[2] = (u8) (addr >> 8); 379 cmnd[3] = (u8) addr; 380 cmnd[4] = (u8) (len >> 8); 381 cmnd[5] = (u8) len; 383 retval = rts51x_bulk_transport(us, 0, cmnd, 12, 398 u8 cmnd[12] = { 0 }; local 407 cmnd[ 427 u8 cmnd[12] = { 0 }; local 509 u8 cmnd[12] = {0}; local [all...] |
H A D | isd200.c | 341 unsigned char cmnd[BLK_MAX_CDB]; member in struct:isd200_info 500 srb->cmnd = info->cmnd; 567 memcpy(srb->cmnd, &ata, sizeof(ata.generic)); 627 memcpy(srb->cmnd, ataCdb, sizeof(ataCdb->generic)); 670 !((srb->cmnd[0] == REQUEST_SENSE) || 671 (srb->cmnd[0] == INQUIRY) || 672 (srb->cmnd[0] == MODE_SENSE) || 673 (srb->cmnd[0] == LOG_SENSE) || 674 (srb->cmnd[ [all...] |
/drivers/scsi/bfa/ |
H A D | bfad_im.c | 34 static int bfad_im_queuecommand(struct Scsi_Host *h, struct scsi_cmnd *cmnd); 44 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; local 53 scsi_set_resid(cmnd, 0); 59 memcpy(cmnd->sense_buffer, sns_info, sns_len); 64 scsi_set_resid(cmnd, residue); 66 (scsi_bufflen(cmnd) - residue) < 67 cmnd->underflow) { 72 cmnd->result = ScsiResult(host_status, scsi_status); 81 cmnd->result = ScsiResult(host_status, 0); 85 if (cmnd 110 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; local 138 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; local 155 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dtsk; local 195 bfad_im_abort_handler(struct scsi_cmnd *cmnd) argument 246 bfad_im_target_reset_send(struct bfad_s *bfad, struct scsi_cmnd *cmnd, struct bfad_itnim_s *itnim) argument 283 bfad_im_reset_lun_handler(struct scsi_cmnd *cmnd) argument 347 bfad_im_reset_bus_handler(struct scsi_cmnd *cmnd) argument 1203 bfad_im_queuecommand_lck(struct scsi_cmnd *cmnd, void (*done) (struct scsi_cmnd *)) argument [all...] |
/drivers/scsi/aacraid/ |
H A D | aachba.c | 833 sp[1] = scsicmd->cmnd[2]; 1196 memcpy(srbcmd->cdb, cmd->cmnd, cmd->cmd_len); 1224 memcpy(srbcmd->cdb, cmd->cmnd, cmd->cmd_len); 1538 switch (scsicmd->cmnd[0]) { 1541 lba = ((scsicmd->cmnd[1] & 0x1F) << 16) | 1542 (scsicmd->cmnd[2] << 8) | scsicmd->cmnd[3]; 1546 lba = ((u64)scsicmd->cmnd[2] << 56) | 1547 ((u64)scsicmd->cmnd[3] << 48) | 1548 ((u64)scsicmd->cmnd[ [all...] |
/drivers/staging/rts_pstor/ |
H A D | rtsx_scsi.c | 43 switch (srb->cmnd[0]) { 138 if (srb->cmnd[0] != TEST_UNIT_READY) { 144 RTSX_DEBUGPN(" %02x", srb->cmnd[i]); 394 if (srb->cmnd[1] == 1) 397 switch (srb->cmnd[0x4]) { 428 prevent = srb->cmnd[4] & 0x1; 622 pageCode = srb->cmnd[2] & 0x3f; 627 if (srb->cmnd[0] == MODE_SENSE) { 629 ms_mode_sense(chip, srb->cmnd[0], 644 ms_mode_sense(chip, srb->cmnd[ [all...] |
H A D | spi.c | 393 spi->spi_clock = ((u16)(srb->cmnd[8]) << 8) | srb->cmnd[9]; 395 spi->spi_clock = srb->cmnd[3]; 397 spi->clk_div = ((u16)(srb->cmnd[4]) << 8) | srb->cmnd[5]; 398 spi->write_en = srb->cmnd[6]; 414 len = ((u16)(srb->cmnd[7]) << 8) | srb->cmnd[8]; 430 rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_COMMAND, 0xFF, srb->cmnd[3]); 431 rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_ADDR2, 0xFF, srb->cmnd[ [all...] |
/drivers/scsi/lpfc/ |
H A D | lpfc_scsi.c | 81 lpfc_debug_save_data(struct lpfc_hba *phba, struct scsi_cmnd *cmnd) argument 84 struct scatterlist *sgde = scsi_sglist(cmnd); 110 lpfc_debug_save_dif(struct lpfc_hba *phba, struct scsi_cmnd *cmnd) argument 113 struct scatterlist *sgde = scsi_prot_sglist(cmnd); 1150 * This routine does the pci dma mapping for scatter-gather list of scsi cmnd 2769 cmd->cmnd[0], (unsigned long long)scsi_get_lba(cmd), 2776 (cmd->cmnd[7] << 8 | cmd->cmnd[8])); 2784 (cmd->cmnd[7] << 8 | cmd->cmnd[ 3241 struct scsi_cmnd *cmnd = lpfc_cmd->pCmd; local 3362 struct scsi_cmnd *cmnd = lpfc_cmd->pCmd; local 4174 lpfc_queuecommand_lck(struct scsi_cmnd *cmnd, void (*done) (struct scsi_cmnd *)) argument 4336 lpfc_abort_handler(struct scsi_cmnd *cmnd) argument 4569 lpfc_chk_tgt_mapped(struct lpfc_vport *vport, struct scsi_cmnd *cmnd) argument 4660 lpfc_device_reset_handler(struct scsi_cmnd *cmnd) argument 4727 lpfc_target_reset_handler(struct scsi_cmnd *cmnd) argument 4794 lpfc_bus_reset_handler(struct scsi_cmnd *cmnd) argument [all...] |
/drivers/scsi/ |
H A D | gdth_proc.h | 8 int gdth_execute(struct Scsi_Host *shost, gdth_cmd_str *gdtcmd, char *cmnd,
|
H A D | sd.c | 803 SCpnt->cmnd[0] = WRITE_6; 811 SCpnt->cmnd[0] = READ_6; 832 SCpnt->cmnd = mempool_alloc(sd_cdb_pool, GFP_ATOMIC); 834 if (unlikely(SCpnt->cmnd == NULL)) { 840 memset(SCpnt->cmnd, 0, SCpnt->cmd_len); 841 SCpnt->cmnd[0] = VARIABLE_LENGTH_CMD; 842 SCpnt->cmnd[7] = 0x18; 843 SCpnt->cmnd[9] = (rq_data_dir(rq) == READ) ? READ_32 : WRITE_32; 844 SCpnt->cmnd[10] = protect | ((rq->cmd_flags & REQ_FUA) ? 0x8 : 0); 847 SCpnt->cmnd[1 [all...] |
H A D | ps3rom.c | 100 unsigned char opcode = cmd->cmnd[0]; 108 memcpy(&atapi_cmnd.pkt, cmd->cmnd, 12); 162 return cmd->cmnd[2] << 24 | cmd->cmnd[3] << 16 | cmd->cmnd[4] << 8 | 163 cmd->cmnd[5]; 168 return cmd->cmnd[7] << 8 | cmd->cmnd[8]; 230 opcode = cmd->cmnd[0]; 325 if (cmd->cmnd[ [all...] |
/drivers/mmc/host/ |
H A D | vub300.c | 345 union sd_command cmnd; member in struct:vub300_mmc_host 485 vub300->cmnd.poll.header_size = 22; 486 vub300->cmnd.poll.header_type = 1; 487 vub300->cmnd.poll.port_number = 0; 488 vub300->cmnd.poll.command_type = 2; 489 vub300->cmnd.poll.poll_timeout_lsb = 0xFF & (unsigned)timeout; 490 vub300->cmnd.poll.poll_timeout_msb = 0xFF & (unsigned)(timeout >> 8); 493 , &vub300->cmnd, sizeof(vub300->cmnd) 1073 vub300->cmnd [all...] |
/drivers/scsi/arm/ |
H A D | queue.h | 53 __queue_add(queue,SCpnt,(SCpnt)->cmnd[0] == REQUEST_SENSE)
|
/drivers/usb/image/ |
H A D | microtek.c | 230 switch (srb->cmnd[0]) { 304 srb->cmnd[0], srb->cmnd[1], srb->cmnd[2], srb->cmnd[3], srb->cmnd[4], srb->cmnd[5], 305 srb->cmnd[6], srb->cmnd[7], srb->cmnd[ [all...] |
/drivers/usb/gadget/ |
H A D | file_storage.c | 470 u8 cmnd[MAX_COMMAND_SIZE]; member in struct:fsg_dev 1166 if (fsg->cmnd[0] == READ_6) 1167 lba = get_unaligned_be24(&fsg->cmnd[1]); 1169 lba = get_unaligned_be32(&fsg->cmnd[2]); 1174 if ((fsg->cmnd[1] & ~0x18) != 0) { 1298 if (fsg->cmnd[0] == WRITE_6) 1299 lba = get_unaligned_be24(&fsg->cmnd[1]); 1301 lba = get_unaligned_be32(&fsg->cmnd[2]); 1307 if ((fsg->cmnd[1] & ~0x18) != 0) { 1312 if (!curlun->nofua && (fsg->cmnd[ [all...] |
H A D | f_mass_storage.c | 367 u8 cmnd[MAX_COMMAND_SIZE]; member in struct:fsg_common 754 if (common->cmnd[0] == READ_6) 755 lba = get_unaligned_be24(&common->cmnd[1]); 757 lba = get_unaligned_be32(&common->cmnd[2]); 764 if ((common->cmnd[1] & ~0x18) != 0) { 894 if (common->cmnd[0] == WRITE_6) 895 lba = get_unaligned_be24(&common->cmnd[1]); 897 lba = get_unaligned_be32(&common->cmnd[2]); 905 if (common->cmnd[1] & ~0x18) { 909 if (!curlun->nofua && (common->cmnd[ [all...] |