Searched defs:srb (Results 1 - 25 of 65) sorted by relevance

123

/drivers/usb/storage/
H A Ddebug.c54 void usb_stor_show_command(struct scsi_cmnd *srb) argument
59 switch (srb->cmnd[0]) {
152 US_DEBUGP("Command %s (%d bytes)\n", what, srb->cmd_len);
154 for (i = 0; i < srb->cmd_len && i < 16; i++)
155 US_DEBUGPX(" %02x", srb->cmnd[i]);
H A Dcypress_atacb.c83 static void cypress_atacb_passthrough(struct scsi_cmnd *srb, struct us_data *us) argument
87 if (likely(srb->cmnd[0] != ATA_16 && srb->cmnd[0] != ATA_12)) {
88 usb_stor_transparent_scsi_command(srb, us);
92 memcpy(save_cmnd, srb->cmnd, sizeof(save_cmnd));
93 memset(srb->cmnd, 0, MAX_COMMAND_SIZE);
109 srb->cmd_len = 16;
111 srb->cmnd[0] = 0x24; /* bVSCBSignature : vendor-specific command
114 srb->cmnd[1] = 0x24; /* bVSCBSubCommand : 0x24 for ATACB */
116 srb
[all...]
H A Dprotocol.c60 void usb_stor_pad12_command(struct scsi_cmnd *srb, struct us_data *us) argument
69 for (; srb->cmd_len<12; srb->cmd_len++)
70 srb->cmnd[srb->cmd_len] = 0;
73 usb_stor_invoke_transport(srb, us);
76 void usb_stor_ufi_command(struct scsi_cmnd *srb, struct us_data *us) argument
86 for (; srb->cmd_len<12; srb->cmd_len++)
87 srb
118 usb_stor_transparent_scsi_command(struct scsi_cmnd *srb, struct us_data *us) argument
134 usb_stor_access_xfer_buf(unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **sgptr, unsigned int *offset, enum xfer_buf_dir dir) argument
208 usb_stor_set_xfer_buf(unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb) argument
[all...]
H A Dkarma.c153 static int rio_karma_transport(struct scsi_cmnd *srb, struct us_data *us) argument
158 if (srb->cmnd[0] == READ_10 && !data->in_storage) {
164 return usb_stor_Bulk_transport(srb, us);
165 } else if (srb->cmnd[0] == START_STOP) {
173 return usb_stor_Bulk_transport(srb, us);
H A Ddatafab.c210 usb_stor_access_xfer_buf(buffer, len, us->srb,
273 usb_stor_access_xfer_buf(buffer, len, us->srb,
447 struct scsi_cmnd * srb,
472 pc = srb->cmnd[2] >> 6;
473 page_code = srb->cmnd[2] & 0x3F;
543 usb_stor_set_xfer_buf(ptr, i, srb);
557 static int datafab_transport(struct scsi_cmnd *srb, struct us_data *us) argument
580 if (srb->cmnd[0] == INQUIRY) {
587 if (srb->cmnd[0] == READ_CAPACITY) {
600 usb_stor_set_xfer_buf(ptr, 8, srb);
446 datafab_handle_mode_sense(struct us_data *us, struct scsi_cmnd * srb, int sense_6) argument
[all...]
H A Dfreecom.c152 freecom_readdata (struct scsi_cmnd *srb, struct us_data *us, argument
176 result = usb_stor_bulk_srb(us, ipipe, srb);
185 freecom_writedata (struct scsi_cmnd *srb, struct us_data *us, argument
209 result = usb_stor_bulk_srb(us, opipe, srb);
221 static int freecom_transport(struct scsi_cmnd *srb, struct us_data *us) argument
242 memcpy (fcb->Atapi, srb->cmnd, 12);
245 US_DEBUG(pdump (srb->cmnd, 12));
323 US_DEBUGP("SCSI requested %d\n", scsi_bufflen(srb));
326 switch (srb->cmnd[0]) {
334 length = scsi_bufflen(srb);
[all...]
H A Djumpshot.c224 usb_stor_access_xfer_buf(buffer, len, us->srb,
280 usb_stor_access_xfer_buf(buffer, len, us->srb,
378 struct scsi_cmnd * srb,
398 pc = srb->cmnd[2] >> 6;
399 page_code = srb->cmnd[2] & 0x3F;
469 usb_stor_set_xfer_buf(ptr, i, srb);
485 static int jumpshot_transport(struct scsi_cmnd *srb, struct us_data *us) argument
506 if (srb->cmnd[0] == INQUIRY) {
513 if (srb->cmnd[0] == READ_CAPACITY) {
531 usb_stor_set_xfer_buf(ptr, 8, srb);
377 jumpshot_handle_mode_sense(struct us_data *us, struct scsi_cmnd * srb, int sense_6) argument
[all...]
H A Dscsiglue.c300 static int queuecommand_lck(struct scsi_cmnd *srb, argument
303 struct us_data *us = host_to_us(srb->device->host);
308 if (us->srb != NULL) {
309 printk(KERN_ERR USB_STORAGE "Error in %s: us->srb = %p\n",
310 __func__, us->srb);
317 srb->result = DID_NO_CONNECT << 16;
318 done(srb);
323 srb->scsi_done = done;
324 us->srb = srb;
337 command_abort(struct scsi_cmnd *srb) argument
373 device_reset(struct scsi_cmnd *srb) argument
389 bus_reset(struct scsi_cmnd *srb) argument
[all...]
H A Dsddr55.c299 usb_stor_access_xfer_buf(buffer, len, us->srb,
368 usb_stor_access_xfer_buf(buffer, len, us->srb,
780 static int sddr55_transport(struct scsi_cmnd *srb, struct us_data *us) argument
810 if (srb->cmnd[0] == REQUEST_SENSE) {
816 usb_stor_set_xfer_buf (ptr, sizeof info->sense_data, srb);
827 if (srb->cmnd[0] == INQUIRY) {
857 if (srb->cmnd[0] == READ_CAPACITY) {
881 usb_stor_set_xfer_buf(ptr, 8, srb);
888 if (srb->cmnd[0] == MODE_SENSE_10) {
892 usb_stor_set_xfer_buf(ptr, sizeof(mode_page_01), srb);
[all...]
/drivers/staging/keucr/
H A Dsmscsi.c14 int SM_SCSI_Test_Unit_Ready(struct us_data *us, struct scsi_cmnd *srb);
15 int SM_SCSI_Inquiry(struct us_data *us, struct scsi_cmnd *srb);
16 int SM_SCSI_Mode_Sense(struct us_data *us, struct scsi_cmnd *srb);
17 int SM_SCSI_Start_Stop(struct us_data *us, struct scsi_cmnd *srb);
18 int SM_SCSI_Read_Capacity(struct us_data *us, struct scsi_cmnd *srb);
19 int SM_SCSI_Read(struct us_data *us, struct scsi_cmnd *srb);
20 int SM_SCSI_Write(struct us_data *us, struct scsi_cmnd *srb);
26 int SM_SCSIIrp(struct us_data *us, struct scsi_cmnd *srb) argument
31 switch (srb->cmnd[0]) {
33 result = SM_SCSI_Test_Unit_Ready(us, srb);
60 SM_SCSI_Test_Unit_Ready(struct us_data *us, struct scsi_cmnd *srb) argument
73 SM_SCSI_Inquiry(struct us_data *us, struct scsi_cmnd *srb) argument
83 SM_SCSI_Mode_Sense(struct us_data *us, struct scsi_cmnd *srb) argument
98 SM_SCSI_Read_Capacity(struct us_data *us, struct scsi_cmnd *srb) argument
130 SM_SCSI_Read(struct us_data *us, struct scsi_cmnd *srb) argument
160 SM_SCSI_Write(struct us_data *us, struct scsi_cmnd *srb) argument
[all...]
H A Dinit.c188 result = usb_stor_bulk_srb(us, pipe, us->srb);
227 if (us->srb)
228 scsi_set_resid(us->srb, max(scsi_get_resid(us->srb),
325 void usb_stor_print_cmd(struct scsi_cmnd *srb) argument
327 PBYTE Cdb = srb->cmnd;
H A Dscsiglue.c98 static int queuecommand_lck(struct scsi_cmnd *srb, argument
101 struct us_data *us = host_to_us(srb->device->host);
106 if (us->srb != NULL) {
107 /* pr_info("Error in %s: us->srb = %p\n"
108 __FUNCTION__, us->srb); */
115 srb->result = DID_NO_CONNECT << 16;
116 done(srb);
121 srb->scsi_done = done;
122 us->srb = srb;
138 command_abort(struct scsi_cmnd *srb) argument
169 device_reset(struct scsi_cmnd *srb) argument
187 bus_reset(struct scsi_cmnd *srb) argument
410 usb_stor_access_xfer_buf(struct us_data *us, unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **sgptr, unsigned int *offset, enum xfer_buf_dir dir) argument
470 usb_stor_set_xfer_buf(struct us_data *us, unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb, unsigned int dir) argument
[all...]
H A Dtransport.c253 struct scsi_cmnd *srb)
256 int result = usb_stor_bulk_transfer_sglist(us, pipe, scsi_sglist(srb),
257 scsi_sg_count(srb), scsi_bufflen(srb),
260 scsi_set_resid(srb, scsi_bufflen(srb) - partial);
300 void usb_stor_invoke_transport(struct scsi_cmnd *srb, struct us_data *us) argument
306 usb_stor_print_cmd(srb);
308 scsi_set_resid(srb, 0);
309 result = us->transport(srb, u
252 usb_stor_bulk_srb(struct us_data *us, unsigned int pipe, struct scsi_cmnd *srb) argument
427 ENE_stor_invoke_transport(struct scsi_cmnd *srb, struct us_data *us) argument
505 BuildSenseBuffer(struct scsi_cmnd *srb, int SrbStatus) argument
580 usb_stor_Bulk_transport(struct scsi_cmnd *srb, struct us_data *us) argument
[all...]
/drivers/staging/rts5139/
H A Dms_mg.c122 int mg_set_leaf_id(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument
126 unsigned int lun = SCSI_LUN(srb);
131 if (scsi_bufflen(srb) < 12) {
148 rts51x_get_xfer_buf(buf2, min(12, (int)scsi_bufflen(srb)), srb);
173 int mg_get_local_EKB(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument
177 unsigned int lun = SCSI_LUN(srb);
217 bufflen = min(1052, (int)scsi_bufflen(srb));
218 rts51x_set_xfer_buf(buf, bufflen, srb);
232 int mg_chg(struct scsi_cmnd *srb, struc argument
323 mg_get_rsp_chg(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument
392 mg_rsp(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument
450 mg_get_ICV(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument
514 mg_set_ICV(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument
[all...]
H A Dsd_cprm.c809 scsi_set_resid(srb, 0);
908 scsi_set_resid(srb, 0);
929 int sd_pass_thru_mode(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument
932 unsigned int lun = SCSI_LUN(srb);
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
1001 sd_execute_no_data(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument
1033 sd_execute_read_data(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument
1071 sd_execute_write_data(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument
1109 sd_get_cmd_rsp(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument
1148 sd_hw_rst(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument
[all...]
H A Drts51x_card.c665 int card_rw(struct scsi_cmnd *srb, struct rts51x_chip *chip, u32 sec_addr, argument
669 unsigned int lun = SCSI_LUN(srb);
676 (srb->sc_data_direction ==
681 retval = chip->rw_card[lun] (srb, chip, sec_addr, sec_cnt);
H A Drts51x_transport.c47 /* Copy a buffer of length buflen to/from the srb's transfer buffer.
124 unsigned int buflen, struct scsi_cmnd *srb,
128 return rts51x_access_sglist(buffer, buflen, (void *)scsi_sglist(srb),
132 /* Store the contents of buffer into srb's transfer buffer and set the
136 unsigned int buflen, struct scsi_cmnd *srb)
141 buflen = min(buflen, scsi_bufflen(srb));
142 buflen = rts51x_access_xfer_buf(buffer, buflen, srb, &sg, &offset,
144 if (buflen < scsi_bufflen(srb))
145 scsi_set_resid(srb, scsi_bufflen(srb)
123 rts51x_access_xfer_buf(unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **sgptr, unsigned int *offset, enum xfer_buf_dir dir) argument
135 rts51x_set_xfer_buf(unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb) argument
148 rts51x_get_xfer_buf(unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb) argument
918 rts51x_invoke_transport(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument
[all...]
/drivers/usb/image/
H A Dmicrotek.h18 struct scsi_cmnd *srb; member in struct:mts_transfer_context
H A Dmicrotek.c226 static inline void mts_show_command(struct scsi_cmnd *srb) argument
230 switch (srb->cmnd[0]) {
300 MTS_DEBUG( "Command %s (%d bytes)\n", what, srb->cmd_len);
304 srb->cmnd[0], srb->cmnd[1], srb->cmnd[2], srb->cmnd[3], srb->cmnd[4], srb->cmnd[5],
305 srb
339 mts_scsi_abort(struct scsi_cmnd *srb) argument
350 mts_scsi_host_reset(struct scsi_cmnd *srb) argument
532 mts_build_transfer_context(struct scsi_cmnd *srb, struct mts_desc* desc) argument
576 mts_scsi_queuecommand_lck(struct scsi_cmnd *srb, mts_scsi_cmnd_callback callback) argument
[all...]
/drivers/s390/scsi/
H A Dzfcp_dbf.c105 struct fsf_status_read_buffer *srb = req->data; local
118 if (!srb)
121 rec->u.uss.status_type = srb->status_type;
122 rec->u.uss.status_subtype = srb->status_subtype;
123 rec->u.uss.d_id = ntoh24(srb->d_id);
124 rec->u.uss.lun = srb->fcp_lun;
125 memcpy(&rec->u.uss.queue_designator, &srb->queue_designator,
129 rec->pl_len = (!srb->length) ? 0 : srb->length -
133 zfcp_dbf_pl_write(dbf, srb
359 struct fsf_status_read_buffer *srb = local
[all...]
/drivers/scsi/qla4xxx/
H A Dql4_iocb.c148 static void qla4xxx_build_scsi_iocbs(struct srb *srb, argument
159 cmd = srb->cmd;
160 ha = srb->ha;
256 * @srb: pointer to SCSI Request Block to be sent to ISP
261 int qla4xxx_send_command_to_isp(struct scsi_qla_host *ha, struct srb * srb) argument
263 struct scsi_cmnd *cmd = srb->cmd;
274 ddb_entry = srb->ddb;
354 qla4xxx_build_scsi_iocbs(srb, cmd_entr
[all...]
H A Dql4_isr.c17 * @srb: Pointer to srb structure.
21 struct srb *srb)
23 struct scsi_cmnd *cmd = srb->cmd;
39 srb->req_sense_ptr = cmd->sense_buffer;
40 srb->req_sense_len = sense_len;
56 srb->flags |= SRB_GOT_SENSE;
58 /* Update srb, in case a sts_cont pkt follows */
59 srb
19 qla4xxx_copy_sense(struct scsi_qla_host *ha, struct status_entry *sts_entry, struct srb *srb) argument
78 struct srb *srb = ha->status_srb; local
120 struct srb *srb; local
463 struct srb *srb = NULL; local
[all...]
/drivers/staging/rts_pstor/
H A Drtsx_transport.c38 /* Copy a buffer of length buflen to/from the srb's transfer buffer.
39 * (Note: for scatter-gather transfers (srb->use_sg > 0), srb->request_buffer
40 * points to a list of s-g entries and we ignore srb->request_bufflen.
41 * For non-scatter-gather transfers, srb->request_buffer points to the
42 * transfer buffer itself and srb->request_bufflen is the buffer's length.)
47 unsigned int buflen, struct scsi_cmnd *srb, unsigned int *index,
54 if (scsi_sg_count(srb) == 0) {
55 if (*offset >= scsi_bufflen(srb))
57 cnt = min(buflen, scsi_bufflen(srb)
46 rtsx_stor_access_xfer_buf(unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb, unsigned int *index, unsigned int *offset, enum xfer_buf_dir dir) argument
132 rtsx_stor_set_xfer_buf(unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb) argument
143 rtsx_stor_get_xfer_buf(unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb) argument
163 rtsx_invoke_transport(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
[all...]
H A Dspi.c375 int spi_get_status(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
380 rtsx_stor_set_xfer_buf(&(spi->err_code), min((int)scsi_bufflen(srb), 1), srb);
381 scsi_set_resid(srb, scsi_bufflen(srb) - 1);
386 int spi_set_parameter(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
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
406 spi_read_flash_id(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
486 spi_read_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
564 spi_write_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
730 spi_erase_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
772 spi_write_flash_status(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
[all...]
H A Drtsx.c165 static int queuecommand_lck(struct scsi_cmnd *srb, argument
168 struct rtsx_dev *dev = host_to_rtsx(srb->device->host);
172 if (chip->srb != NULL) {
173 printk(KERN_ERR "Error in %s: chip->srb = %p\n",
174 __func__, chip->srb);
181 srb->result = DID_NO_CONNECT << 16;
182 done(srb);
187 srb->scsi_done = done;
188 chip->srb = srb;
201 command_abort(struct scsi_cmnd *srb) argument
230 device_reset(struct scsi_cmnd *srb) argument
240 bus_reset(struct scsi_cmnd *srb) argument
[all...]

Completed in 628 milliseconds

123