Home
last modified time | relevance | path

Searched refs:srb (Results 1 – 25 of 71) sorted by relevance

123

/linux/drivers/staging/rts5208/
A Drtsx_scsi.c24 struct scsi_cmnd *srb = chip->srb; in scsi_show_command() local
552 scsi_set_resid(srb, scsi_bufflen(srb)); in start_stop_unit()
748 scsi_set_resid(srb, scsi_bufflen(srb)); in mode_sense()
818 scsi_set_resid(srb, scsi_bufflen(srb)); in mode_sense()
826 scsi_set_resid(srb, scsi_bufflen(srb) - len); in mode_sense()
1126 scsi_set_resid(srb, scsi_bufflen(srb) - len); in read_eeprom()
1234 scsi_set_resid(srb, scsi_bufflen(srb) - len); in read_mem()
1270 scsi_set_resid(srb, scsi_bufflen(srb) - len); in write_mem()
1360 scsi_set_resid(srb, scsi_bufflen(srb) - len); in read_host_reg()
1383 scsi_set_resid(srb, scsi_bufflen(srb) - len); in write_host_reg()
[all …]
A Dspi.c443 min_t(int, scsi_bufflen(srb), 1), srb); in spi_get_status()
444 scsi_set_resid(srb, scsi_bufflen(srb) - 1); in spi_get_status()
456 spi->spi_clock = ((u16)(srb->cmnd[8]) << 8) | srb->cmnd[9]; in spi_set_parameter()
460 spi->clk_div = ((u16)(srb->cmnd[4]) << 8) | srb->cmnd[5]; in spi_set_parameter()
479 len = ((u16)(srb->cmnd[7]) << 8) | srb->cmnd[8]; in spi_read_flash_id()
545 rtsx_stor_set_xfer_buf(buf, scsi_bufflen(srb), srb); in spi_read_flash_id()
566 addr = ((u32)(srb->cmnd[4]) << 16) | ((u32)(srb->cmnd[5]) in spi_read_flash()
568 len = ((u16)(srb->cmnd[7]) << 8) | srb->cmnd[8]; in spi_read_flash()
659 addr = ((u32)(srb->cmnd[4]) << 16) | ((u32)(srb->cmnd[5]) in spi_write_flash()
661 len = ((u16)(srb->cmnd[7]) << 8) | srb->cmnd[8]; in spi_write_flash()
[all …]
A Drtsx.c128 if (chip->srb) { in queuecommand_lck()
130 chip->srb); in queuecommand_lck()
138 done(srb); in queuecommand_lck()
143 chip->srb = srb; in queuecommand_lck()
167 if (chip->srb != srb) { in DEF_SCSI_QCMD()
398 chip->srb->device->id, in rtsx_control_thread()
420 if (!chip->srb) in rtsx_control_thread()
425 scsi_done(chip->srb); in rtsx_control_thread()
438 chip->srb = NULL; in rtsx_control_thread()
634 if (chip->srb) { in quiesce_and_remove_host()
[all …]
A Dspi.h44 int spi_get_status(struct scsi_cmnd *srb, struct rtsx_chip *chip);
45 int spi_set_parameter(struct scsi_cmnd *srb, struct rtsx_chip *chip);
46 int spi_read_flash_id(struct scsi_cmnd *srb, struct rtsx_chip *chip);
47 int spi_read_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip);
48 int spi_write_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip);
49 int spi_erase_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip);
50 int spi_write_flash_status(struct scsi_cmnd *srb, struct rtsx_chip *chip);
A Dms.h192 int ms_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip,
194 int mspro_format(struct scsi_cmnd *srb, struct rtsx_chip *chip,
205 int mg_set_leaf_id(struct scsi_cmnd *srb, struct rtsx_chip *chip);
206 int mg_get_local_EKB(struct scsi_cmnd *srb, struct rtsx_chip *chip);
207 int mg_chg(struct scsi_cmnd *srb, struct rtsx_chip *chip);
208 int mg_get_rsp_chg(struct scsi_cmnd *srb, struct rtsx_chip *chip);
209 int mg_rsp(struct scsi_cmnd *srb, struct rtsx_chip *chip);
210 int mg_get_ICV(struct scsi_cmnd *srb, struct rtsx_chip *chip);
211 int mg_set_ICV(struct scsi_cmnd *srb, struct rtsx_chip *chip);
A Drtsx_transport.c34 struct scsi_cmnd *srb, in rtsx_stor_access_xfer_buf() argument
42 if (scsi_sg_count(srb) == 0) { in rtsx_stor_access_xfer_buf()
45 if (*offset >= scsi_bufflen(srb)) in rtsx_stor_access_xfer_buf()
127 if (buflen < scsi_bufflen(srb)) in rtsx_stor_set_xfer_buf()
128 scsi_set_resid(srb, scsi_bufflen(srb) - buflen); in rtsx_stor_set_xfer_buf()
138 if (buflen < scsi_bufflen(srb)) in rtsx_stor_get_xfer_buf()
139 scsi_set_resid(srb, scsi_bufflen(srb) - buflen); in rtsx_stor_get_xfer_buf()
163 srb->result = DID_ABORT << 16; in rtsx_invoke_transport()
170 srb->result = DID_ERROR << 16; in rtsx_invoke_transport()
174 srb->result = SAM_STAT_GOOD; in rtsx_invoke_transport()
[all …]
A Dsd.c3493 scsi_bufflen(srb), scsi_sg_count(srb),
3775 if (srb->cmnd[2] != 0x53 || srb->cmnd[3] != 0x44 ||
3776 srb->cmnd[4] != 0x20 || srb->cmnd[5] != 0x43 ||
3777 srb->cmnd[6] != 0x61 || srb->cmnd[7] != 0x72 ||
3883 ((u32)srb->cmnd[5] << 8) | srb->cmnd[6];
4166 if ((srb->cmnd[1] & 0x02) || (srb->cmnd[1] & 0x04))
4240 ((u32)srb->cmnd[5] << 8) | srb->cmnd[6];
4472 if ((srb->cmnd[1] & 0x02) || (srb->cmnd[1] & 0x04))
4561 data_len = ((u16)srb->cmnd[7] << 8) | srb->cmnd[8];
4599 if (srb->cmnd[2] != 0x53 || srb->cmnd[3] != 0x44 ||
[all …]
/linux/drivers/scsi/
A Ddc395x.c1053 srb, srb->cmd); in DEF_SCSI_QCMD()
1057 srb, srb->cmd, in DEF_SCSI_QCMD()
1061 srb->segment_x, srb->sg_count, srb->sg_index, in DEF_SCSI_QCMD()
1064 srb->state, srb->status, srb->scsi_phase, in DEF_SCSI_QCMD()
1467 srb->cmd, srb->cmd->device->id, (u8)srb->cmd->device->lun, in start_scsi()
1887 srb->cmd, srb->cmd->device->id, (u8)srb->cmd->device->lun); in data_out_phase0()
2252 srb->cmd, srb->cmd->device->id, (u8)srb->cmd->device->lun, in data_io_transfer()
2254 srb->total_xfer_length, srb->sg_index, srb->sg_count); in data_io_transfer()
2480 srb->cmd, tag, srb); in msgin_qtag()
2499 srb->cmd, srb->dcb->target_id, srb->dcb->target_lun); in msgin_qtag()
[all …]
A D3w-xxxx.c1291 struct scsi_cmnd *srb; in tw_reset_device_extension() local
1306 srb = tw_dev->srb[i]; in tw_reset_device_extension()
1307 if (srb != NULL) { in tw_reset_device_extension()
1310 scsi_done(srb); in tw_reset_device_extension()
1706 srb = tw_dev->srb[request_id]; in tw_scsiop_read_write()
1721 if (srb->cmnd[0] == READ_6 || srb->cmnd[0] == READ_10) { in tw_scsiop_read_write()
1734 if ((srb->cmnd[1] & 0x8) || (srb->cmnd[1] & 0x10)) in tw_scsiop_read_write()
1738 if (srb->cmnd[0] == READ_6 || srb->cmnd[0] == WRITE_6) { in tw_scsiop_read_write()
1739 lba = ((u32)srb->cmnd[1] << 16) | ((u32)srb->cmnd[2] << 8) | (u32)srb->cmnd[3]; in tw_scsiop_read_write()
1742 …lba = ((u32)srb->cmnd[2] << 24) | ((u32)srb->cmnd[3] << 16) | ((u32)srb->cmnd[4] << 8) | (u32)srb-… in tw_scsiop_read_write()
[all …]
/linux/drivers/usb/storage/
A Dcypress_atacb.c77 if (likely(srb->cmnd[0] != ATA_16 && srb->cmnd[0] != ATA_12)) { in cypress_atacb_passthrough()
99 srb->cmd_len = 16; in cypress_atacb_passthrough()
101 srb->cmnd[0] = 0x24; /* in cypress_atacb_passthrough()
108 srb->cmnd[3] = 0xff - 1; /* in cypress_atacb_passthrough()
144 if (srb->cmnd[12] == ATA_CMD_ID_ATA || srb->cmnd[12] == ATA_CMD_ID_ATAPI) in cypress_atacb_passthrough()
179 srb->cmd_len = 16; in cypress_atacb_passthrough()
180 srb->cmnd = ses.cmnd; in cypress_atacb_passthrough()
181 srb->cmnd[2] = 1; in cypress_atacb_passthrough()
185 tmp_result = srb->result; in cypress_atacb_passthrough()
230 memcpy(srb->sense_buffer, in cypress_atacb_passthrough()
[all …]
A Dprotocol.c54 for (; srb->cmd_len < 12; srb->cmd_len++) in usb_stor_pad12_command()
55 srb->cmnd[srb->cmd_len] = 0; in usb_stor_pad12_command()
72 for (; srb->cmd_len < 12; srb->cmd_len++) in usb_stor_ufi_command()
73 srb->cmnd[srb->cmd_len] = 0; in usb_stor_ufi_command()
76 srb->cmd_len = 12; in usb_stor_ufi_command()
81 switch (srb->cmnd[0]) { in usb_stor_ufi_command()
85 srb->cmnd[4] = 36; in usb_stor_ufi_command()
90 srb->cmnd[7] = 0; in usb_stor_ufi_command()
91 srb->cmnd[8] = 8; in usb_stor_ufi_command()
96 srb->cmnd[4] = 18; in usb_stor_ufi_command()
[all …]
A Dtransport.c471 scsi_sg_count(srb), scsi_bufflen(srb), in usb_stor_bulk_srb()
474 scsi_set_resid(srb, scsi_bufflen(srb) - partial); in usb_stor_bulk_srb()
548 if (srb->cmnd[0] != READ_10 && srb->cmnd[0] != WRITE_10) in last_sector_hacks()
552 sector = (srb->cmnd[2] << 24) | (srb->cmnd[3] << 16) | in last_sector_hacks()
553 (srb->cmnd[4] << 8) | (srb->cmnd[5]); in last_sector_hacks()
563 if (srb->result == SAM_STAT_GOOD && scsi_get_resid(srb) == 0) { in last_sector_hacks()
682 if (unlikely((srb->cmnd[0] == ATA_16 || srb->cmnd[0] == ATA_12) && in usb_stor_invoke_transport()
891 if ((srb->result == SAM_STAT_GOOD || srb->sense_buffer[2] == 0) && in usb_stor_invoke_transport()
892 scsi_bufflen(srb) - scsi_get_resid(srb) < srb->underflow) in usb_stor_invoke_transport()
969 memcpy(us->iobuf, srb->cmnd, srb->cmd_len); in usb_stor_CB_transport()
[all …]
A Djumpshot.c530 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in jumpshot_transport()
531 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in jumpshot_transport()
533 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in jumpshot_transport()
543 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in jumpshot_transport()
544 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in jumpshot_transport()
547 ((u32)(srb->cmnd[8]) << 8) | ((u32)(srb->cmnd[9])); in jumpshot_transport()
556 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in jumpshot_transport()
558 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in jumpshot_transport()
569 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in jumpshot_transport()
572 ((u32)(srb->cmnd[8]) << 8) | ((u32)(srb->cmnd[9])); in jumpshot_transport()
[all …]
A Ddatafab.c601 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in datafab_transport()
602 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in datafab_transport()
604 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in datafab_transport()
614 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in datafab_transport()
615 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in datafab_transport()
618 ((u32)(srb->cmnd[8]) << 8) | ((u32)(srb->cmnd[9])); in datafab_transport()
627 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in datafab_transport()
629 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in datafab_transport()
640 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in datafab_transport()
643 ((u32)(srb->cmnd[8]) << 8) | ((u32)(srb->cmnd[9])); in datafab_transport()
[all …]
A Dshuttle_usbat.c1310 scsi_bufflen(srb), scsi_sg_count(srb), 1); in usbat_hp8200e_handle_read10()
1328 srb->transfersize = scsi_bufflen(srb)/len; in usbat_hp8200e_handle_read10()
1343 len = (65535/srb->transfersize) * srb->transfersize; in usbat_hp8200e_handle_read10()
1586 data[i] = (i-7 >= srb->cmd_len) ? 0 : srb->cmnd[i-7]; in usbat_hp8200e_transport()
1730 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in usbat_flash_transport()
1732 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in usbat_flash_transport()
1744 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in usbat_flash_transport()
1756 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in usbat_flash_transport()
1758 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in usbat_flash_transport()
1770 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in usbat_flash_transport()
[all …]
A Disd200.c330 struct scsi_cmnd srb; member
452 struct scsi_cmnd *srb = &info->srb; in isd200_set_srb() local
484 struct scsi_cmnd *srb = &info->srb; in isd200_action() local
488 srb->cmnd = info->cmnd; in isd200_action()
489 srb->device = &srb_dev; in isd200_action()
1234 switch (srb->cmnd[0]) { in isd200_scsi_to_ata()
1311 blockCount = (unsigned long)srb->cmnd[7]<<8 | (unsigned long)srb->cmnd[8]; in isd200_scsi_to_ata()
1343 blockCount = (unsigned long)srb->cmnd[7]<<8 | (unsigned long)srb->cmnd[8]; in isd200_scsi_to_ata()
1376 srb->cmnd[4]); in isd200_scsi_to_ata()
1420 srb->cmnd[0]); in isd200_scsi_to_ata()
[all …]
A Dscsiglue.c372 if (us->srb != NULL) { in queuecommand_lck()
381 srb->result = DID_NO_CONNECT << 16; in queuecommand_lck()
382 done(srb); in queuecommand_lck()
387 (srb->cmnd[0] == ATA_12 || srb->cmnd[0] == ATA_16)) { in queuecommand_lck()
390 srb->result = SAM_STAT_CHECK_CONDITION; in queuecommand_lck()
391 done(srb); in queuecommand_lck()
396 us->srb = srb; in queuecommand_lck()
409 static int command_abort(struct scsi_cmnd *srb) in DEF_SCSI_QCMD()
422 if (us->srb != srb) { in DEF_SCSI_QCMD()
451 static int device_reset(struct scsi_cmnd *srb) in device_reset() argument
[all …]
A Dsddr09.c1520 srb->device->lun = 0; in dpcm_transport()
1522 srb->device->lun = 1; in dpcm_transport()
1658 page = short_pack(srb->cmnd[3], srb->cmnd[2]); in sddr09_transport()
1660 page |= short_pack(srb->cmnd[5], srb->cmnd[4]); in sddr09_transport()
1661 pages = short_pack(srb->cmnd[8], srb->cmnd[7]); in sddr09_transport()
1673 page = short_pack(srb->cmnd[3], srb->cmnd[2]); in sddr09_transport()
1675 page |= short_pack(srb->cmnd[5], srb->cmnd[4]); in sddr09_transport()
1676 pages = short_pack(srb->cmnd[8], srb->cmnd[7]); in sddr09_transport()
1698 for (; srb->cmd_len<12; srb->cmd_len++) in sddr09_transport()
1699 srb->cmnd[srb->cmd_len] = 0; in sddr09_transport()
[all …]
A Dsddr55.c805 if (srb->cmnd[0] == REQUEST_SENSE) { in sddr55_transport()
827 if (srb->cmnd[0] == INQUIRY) { in sddr55_transport()
860 if (srb->cmnd[0] == READ_CAPACITY) { in sddr55_transport()
888 usb_stor_set_xfer_buf(ptr, 8, srb); in sddr55_transport()
895 if (srb->cmnd[0] == MODE_SENSE_10) { in sddr55_transport()
923 if (srb->cmnd[0] == READ_10 || srb->cmnd[0] == WRITE_10) { in sddr55_transport()
925 page = short_pack(srb->cmnd[3], srb->cmnd[2]); in sddr55_transport()
927 page |= short_pack(srb->cmnd[5], srb->cmnd[4]); in sddr55_transport()
928 pages = short_pack(srb->cmnd[8], srb->cmnd[7]); in sddr55_transport()
951 if (srb->cmnd[0] == WRITE_10) { in sddr55_transport()
[all …]
A Dfreecom.c152 freecom_readdata (struct scsi_cmnd *srb, struct us_data *us, in freecom_readdata() argument
176 result = usb_stor_bulk_srb(us, ipipe, srb); in freecom_readdata()
209 result = usb_stor_bulk_srb(us, opipe, srb); in freecom_writedata()
242 memcpy (fcb->Atapi, srb->cmnd, 12); in freecom_transport()
245 US_DEBUG(pdump(us, srb->cmnd, 12)); in freecom_transport()
334 switch (srb->cmnd[0]) { in freecom_transport()
342 length = scsi_bufflen(srb); in freecom_transport()
346 if (length > scsi_bufflen(srb)) { in freecom_transport()
347 length = scsi_bufflen(srb); in freecom_transport()
357 switch (us->srb->sc_data_direction) { in freecom_transport()
[all …]
A Dusb.c302 struct scsi_cmnd *srb; in usb_stor_control_thread() local
318 srb = us->srb; in usb_stor_control_thread()
319 if (srb == NULL) { in usb_stor_control_thread()
350 srb->device->id, in usb_stor_control_thread()
351 srb->device->lun); in usb_stor_control_thread()
357 srb->device->id, in usb_stor_control_thread()
358 srb->device->lun); in usb_stor_control_thread()
410 us->srb = NULL; in usb_stor_control_thread()
417 if (srb) { in usb_stor_control_thread()
419 srb->result); in usb_stor_control_thread()
[all …]
A Dene_ub6250.c562 if (us->srb != NULL) in ene_send_scsi_cmd()
563 scsi_set_resid(us->srb, max(scsi_get_resid(us->srb), in ene_send_scsi_cmd()
677 unsigned char *cdb = srb->cmnd; in sd_scsi_read()
717 unsigned char *cdb = srb->cmnd; in sd_scsi_write()
1641 unsigned char *cdb = srb->cmnd; in ms_scsi_read()
1741 unsigned char *cdb = srb->cmnd; in ms_scsi_write()
1941 if (us->srb != NULL) in ene_load_bincode()
1942 scsi_set_resid(us->srb, 0); in ene_load_bincode()
2226 switch (srb->cmnd[0]) { in sd_scsi_irp()
2271 switch (srb->cmnd[0]) { in ms_scsi_irp()
[all …]
A Dalauda.c1128 if (srb->cmnd[0] == INQUIRY) { in alauda_transport()
1140 if (srb->cmnd[0] == READ_CAPACITY) { in alauda_transport()
1162 if (srb->cmnd[0] == READ_10) { in alauda_transport()
1169 page = short_pack(srb->cmnd[3], srb->cmnd[2]); in alauda_transport()
1171 page |= short_pack(srb->cmnd[5], srb->cmnd[4]); in alauda_transport()
1172 pages = short_pack(srb->cmnd[8], srb->cmnd[7]); in alauda_transport()
1179 if (srb->cmnd[0] == WRITE_10) { in alauda_transport()
1186 page = short_pack(srb->cmnd[3], srb->cmnd[2]); in alauda_transport()
1188 page |= short_pack(srb->cmnd[5], srb->cmnd[4]); in alauda_transport()
1189 pages = short_pack(srb->cmnd[8], srb->cmnd[7]); in alauda_transport()
[all …]
/linux/drivers/usb/image/
A Dmicrotek.c226 switch (srb->cmnd[0]) { in mts_show_command()
531 desc->context.srb = srb; in mts_build_transfer_context()
533 if (!scsi_bufflen(srb)) { in mts_build_transfer_context()
571 mts_show_command(srb); in mts_scsi_queuecommand_lck()
574 if ( srb->device->lun || srb->device->id || srb->device->channel ) { in mts_scsi_queuecommand_lck()
576 …d to LUN=%d ID=%d CHANNEL=%d from SCSI layer\n",(int)srb->device->lun,(int)srb->device->id, (int)s… in mts_scsi_queuecommand_lck()
583 callback(srb); in mts_scsi_queuecommand_lck()
592 srb->cmnd, in mts_scsi_queuecommand_lck()
593 srb->cmd_len, in mts_scsi_queuecommand_lck()
607 set_host_byte(srb, DID_ERROR); in mts_scsi_queuecommand_lck()
[all …]
/linux/drivers/scsi/qla4xxx/
A Dql4_isr.c20 struct srb *srb) in qla4xxx_copy_sense() argument
77 struct srb *srb = ha->status_srb; in qla4xxx_status_cont_entry() local
81 if (srb == NULL) in qla4xxx_status_cont_entry()
84 cmd = srb->cmd; in qla4xxx_status_cont_entry()
88 __func__, srb, srb->state)); in qla4xxx_status_cont_entry()
119 struct srb *srb; in qla4xxx_status_entry() local
124 if (!srb) { in qla4xxx_status_entry()
135 cmd = srb->cmd; in qla4xxx_status_entry()
140 srb, srb->state)); in qla4xxx_status_entry()
476 struct srb *srb = NULL; in qla4xxx_process_response_queue() local
[all …]

Completed in 86 milliseconds

123