Searched refs:srb (Results 1 - 25 of 73) sorted by relevance

123

/linux-master/drivers/usb/storage/
H A Dprotocol.c45 void usb_stor_pad12_command(struct scsi_cmnd *srb, struct us_data *us) argument
54 for (; srb->cmd_len < 12; srb->cmd_len++)
55 srb->cmnd[srb->cmd_len] = 0;
58 usb_stor_invoke_transport(srb, us);
61 void usb_stor_ufi_command(struct scsi_cmnd *srb, struct us_data *us) argument
72 for (; srb->cmd_len < 12; srb->cmd_len++)
73 srb
104 usb_stor_transparent_scsi_command(struct scsi_cmnd *srb, struct us_data *us) argument
121 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
169 usb_stor_set_xfer_buf(unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb) argument
[all...]
H A Dcypress_atacb.c73 static void cypress_atacb_passthrough(struct scsi_cmnd *srb, struct us_data *us) argument
77 if (likely(srb->cmnd[0] != ATA_16 && srb->cmnd[0] != ATA_12)) {
78 usb_stor_transparent_scsi_command(srb, us);
82 memcpy(save_cmnd, srb->cmnd, sizeof(save_cmnd));
83 memset(srb->cmnd, 0, MAX_COMMAND_SIZE);
99 srb->cmd_len = 16;
101 srb->cmnd[0] = 0x24; /*
106 srb->cmnd[1] = 0x24; /* bVSCBSubCommand : 0x24 for ATACB */
108 srb
[all...]
H A Dprotocol.h37 unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **,
41 unsigned int buflen, struct scsi_cmnd *srb);
H A Dtransport.c467 struct scsi_cmnd* srb)
470 int result = usb_stor_bulk_transfer_sglist(us, pipe, scsi_sglist(srb),
471 scsi_sg_count(srb), scsi_bufflen(srb),
474 scsi_set_resid(srb, scsi_bufflen(srb) - partial);
524 static void last_sector_hacks(struct us_data *us, struct scsi_cmnd *srb) argument
548 if (srb->cmnd[0] != READ_10 && srb->cmnd[0] != WRITE_10)
552 sector = (srb
466 usb_stor_bulk_srb(struct us_data* us, unsigned int pipe, struct scsi_cmnd* srb) argument
604 usb_stor_invoke_transport(struct scsi_cmnd *srb, struct us_data *us) argument
957 usb_stor_CB_transport(struct scsi_cmnd *srb, struct us_data *us) argument
1115 usb_stor_Bulk_transport(struct scsi_cmnd *srb, struct us_data *us) argument
[all...]
H A Djumpshot.c214 usb_stor_access_xfer_buf(buffer, len, us->srb,
270 usb_stor_access_xfer_buf(buffer, len, us->srb,
367 struct scsi_cmnd * srb,
387 pc = srb->cmnd[2] >> 6;
388 page_code = srb->cmnd[2] & 0x3F;
458 usb_stor_set_xfer_buf(ptr, i, srb);
474 static int jumpshot_transport(struct scsi_cmnd *srb, struct us_data *us) argument
494 if (srb->cmnd[0] == INQUIRY) {
501 if (srb->cmnd[0] == READ_CAPACITY) {
519 usb_stor_set_xfer_buf(ptr, 8, srb);
366 jumpshot_handle_mode_sense(struct us_data *us, struct scsi_cmnd * srb, int sense_6) argument
[all...]
H A Ddatafab.c202 usb_stor_access_xfer_buf(buffer, len, us->srb,
265 usb_stor_access_xfer_buf(buffer, len, us->srb,
437 struct scsi_cmnd * srb,
462 pc = srb->cmnd[2] >> 6;
463 page_code = srb->cmnd[2] & 0x3F;
533 usb_stor_set_xfer_buf(ptr, i, srb);
547 static int datafab_transport(struct scsi_cmnd *srb, struct us_data *us) argument
568 if (srb->cmnd[0] == INQUIRY) {
575 if (srb->cmnd[0] == READ_CAPACITY) {
588 usb_stor_set_xfer_buf(ptr, 8, srb);
436 datafab_handle_mode_sense(struct us_data *us, struct scsi_cmnd * srb, int sense_6) argument
[all...]
H A Dshuttle_usbat.c149 static int usbat_flash_transport(struct scsi_cmnd * srb, struct us_data *us);
150 static int usbat_hp8200e_transport(struct scsi_cmnd *srb, struct us_data *us);
1180 usb_stor_access_xfer_buf(buffer, len, us->srb,
1256 usb_stor_access_xfer_buf(buffer, len, us->srb,
1291 struct scsi_cmnd *srb)
1300 usb_stor_dbg(us, "transfersize %d\n", srb->transfersize);
1302 if (scsi_bufflen(srb) < 0x10000) {
1309 scsi_sglist(srb),
1310 scsi_bufflen(srb), scsi_sg_count(srb),
1288 usbat_hp8200e_handle_read10(struct us_data *us, unsigned char *registers, unsigned char *data, struct scsi_cmnd *srb) argument
1552 usbat_hp8200e_transport(struct scsi_cmnd *srb, struct us_data *us) argument
1680 usbat_flash_transport(struct scsi_cmnd * srb, struct us_data *us) argument
[all...]
H A Disd200.c330 struct scsi_cmnd srb; member in struct:isd200_info
399 static void isd200_build_sense(struct us_data *us, struct scsi_cmnd *srb) argument
402 struct sense_data *buf = (struct sense_data *) &srb->sense_buffer[0];
452 struct scsi_cmnd *srb = &info->srb; local
457 srb->sc_data_direction = dir;
458 srb->sdb.table.sgl = buff ? &info->sg : NULL;
459 srb->sdb.length = bufflen;
460 srb->sdb.table.nents = buff ? 1 : 0;
463 static void isd200_srb_set_bufflen(struct scsi_cmnd *srb, unsigne argument
484 struct scsi_cmnd *srb = &info->srb; local
607 isd200_invoke_transport( struct us_data *us, struct scsi_cmnd *srb, union ata_cdb *ataCdb ) argument
1227 isd200_scsi_to_ata(struct scsi_cmnd *srb, struct us_data *us, union ata_cdb * ataCdb) argument
1526 isd200_ata_command(struct scsi_cmnd *srb, struct us_data *us) argument
[all...]
H A Dscsiglue.c373 static int queuecommand_lck(struct scsi_cmnd *srb) argument
376 struct us_data *us = host_to_us(srb->device->host);
379 if (us->srb != NULL) {
381 "Error in %s: us->srb = %p\n", __func__, us->srb);
388 srb->result = DID_NO_CONNECT << 16;
389 done(srb);
394 (srb->cmnd[0] == ATA_12 || srb->cmnd[0] == ATA_16)) {
395 memcpy(srb
457 command_abort(struct scsi_cmnd *srb) argument
469 device_reset(struct scsi_cmnd *srb) argument
488 bus_reset(struct scsi_cmnd *srb) argument
[all...]
H A Ddebug.h33 void usb_stor_show_command(const struct us_data *us, struct scsi_cmnd *srb);
H A Dsddr09.c53 static int sddr09_transport(struct scsi_cmnd *srb, struct us_data *us);
812 usb_stor_access_xfer_buf(buffer, len, us->srb,
1027 usb_stor_access_xfer_buf(buffer, len, us->srb,
1496 static int dpcm_transport(struct scsi_cmnd *srb, struct us_data *us) argument
1500 usb_stor_dbg(us, "LUN=%d\n", (u8)srb->device->lun);
1502 switch (srb->device->lun) {
1508 ret = usb_stor_CB_transport(srb, us);
1520 srb->device->lun = 0;
1521 ret = sddr09_transport(srb, us);
1522 srb
1537 sddr09_transport(struct scsi_cmnd *srb, struct us_data *us) 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(us, srb->cmnd, 12));
331 usb_stor_dbg(us, "SCSI requested %d\n", scsi_bufflen(srb));
334 switch (srb->cmnd[0]) {
342 length = scsi_bufflen(srb);
[all...]
H A Ddebug.c41 void usb_stor_show_command(const struct us_data *us, struct scsi_cmnd *srb) argument
45 switch (srb->cmnd[0]) {
138 usb_stor_dbg(us, "Command %s (%d bytes)\n", what, srb->cmd_len);
139 usb_stor_dbg(us, "bytes: %*ph\n", min_t(int, srb->cmd_len, 16),
140 (const unsigned char *)srb->cmnd);
/linux-master/drivers/staging/rts5208/
H A Drtsx_scsi.c24 struct scsi_cmnd *srb = chip->srb; local
29 switch (srb->cmnd[0]) {
303 if (srb->cmnd[0] != TEST_UNIT_READY)
305 what, srb->cmd_len);
308 len = min_t(unsigned short, srb->cmd_len, 16);
309 dev_dbg(rtsx_dev(chip), "%*ph\n", len, srb->cmnd);
411 static int test_unit_ready(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
413 unsigned int lun = SCSI_LUN(srb);
427 if (get_lun_card(chip, SCSI_LUN(srb))
463 inquiry(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
548 start_stop_unit(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
581 allow_medium_removal(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
598 request_sense(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
736 mode_sense(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
833 read_write(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
968 read_format_capacity(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
1046 read_capacity(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
1086 read_eeprom(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
1133 write_eeprom(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
1188 read_mem(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
1241 write_mem(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
1294 get_sd_csd(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
1315 toggle_gpio_cmd(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
1334 read_host_reg(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
1365 write_host_reg(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
1393 set_variable(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
1455 get_variable(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
1497 dma_access_ring_buffer(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
1537 get_dev_status(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
1668 set_chip_mode(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
1719 rw_mem_cmd_buf(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
1781 suit_cmd(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
1794 read_phy_register(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
1853 write_phy_register(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
1910 erase_eeprom2(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
1956 read_eeprom2(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
2004 write_eeprom2(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
2051 read_efuse(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
2099 write_efuse(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
2210 read_cfg_byte(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
2265 write_cfg_byte(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
2319 app_cmd(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
2407 read_status(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
2536 get_card_bus_width(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
2560 spi_vendor_cmd(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
2628 vendor_cmnd(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
2683 led_shine(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
2707 ms_format_cmnd(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
2771 get_ms_information(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
2865 ms_sp_cmnd(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
2880 sd_extension_cmnd(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
2939 mg_report_key(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
3038 mg_send_key(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
3157 rtsx_scsi_handler(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
[all...]
H 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);
H A Drtsx_transport.h22 struct scsi_cmnd *srb,
27 struct scsi_cmnd *srb);
29 struct scsi_cmnd *srb);
30 void rtsx_invoke_transport(struct scsi_cmnd *srb, struct rtsx_chip *chip);
H A Dspi.c436 int spi_get_status(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
443 min_t(int, scsi_bufflen(srb), 1), srb);
444 scsi_set_resid(srb, scsi_bufflen(srb) - 1);
449 int spi_set_parameter(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
456 spi->spi_clock = ((u16)(srb->cmnd[8]) << 8) | srb->cmnd[9];
458 spi->spi_clock = srb->cmnd[3];
460 spi->clk_div = ((u16)(srb
469 spi_read_flash_id(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
552 spi_read_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
645 spi_write_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
820 spi_erase_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
863 spi_write_flash_status(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
[all...]
H A Drtsx_transport.c23 * Copy a buffer of length buflen to/from the srb's transfer buffer.
24 * (Note: for scatter-gather transfers (srb->use_sg > 0), srb->request_buffer
25 * points to a list of s-g entries and we ignore srb->request_bufflen.
26 * For non-scatter-gather transfers, srb->request_buffer points to the
27 * transfer buffer itself and srb->request_bufflen is the buffer's length.)
34 struct scsi_cmnd *srb,
42 if (scsi_sg_count(srb) == 0) {
45 if (*offset >= scsi_bufflen(srb))
47 cnt = min(buflen, scsi_bufflen(srb)
32 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
118 rtsx_stor_set_xfer_buf(unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb) argument
129 rtsx_stor_get_xfer_buf(unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb) argument
149 rtsx_invoke_transport(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
[all...]
H 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);
H A Drtsx.c121 static int queuecommand_lck(struct scsi_cmnd *srb) argument
124 struct rtsx_dev *dev = host_to_rtsx(srb->device->host);
128 if (chip->srb) {
129 dev_err(&dev->pci->dev, "Error: chip->srb = %p\n",
130 chip->srb);
137 srb->result = DID_NO_CONNECT << 16;
138 done(srb);
143 chip->srb = srb;
156 static int command_abort(struct scsi_cmnd *srb) argument
185 device_reset(struct scsi_cmnd *srb) argument
[all...]
/linux-master/drivers/scsi/
H A Ddc395x.c166 * srb->segement_x is the hw sg list. It is always allocated as a
213 struct list_head list; /* next/prev ptrs for srb lists */
229 * (srb->segment_x[DC395x_MAX_SG_LISTENTRY - 1] and the
256 struct list_head srb_going_list; /* head of going srb list */
257 struct list_head srb_waiting_list; /* head of waiting srb list */
290 struct list_head srb_free_list; /* head of free srb list */
319 struct ScsiReqBlk srb; member in struct:AdapterCtlBlk
328 static void data_out_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb,
330 static void data_in_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb,
332 static void command_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb,
720 free_tag(struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) argument
760 struct ScsiReqBlk *srb; local
841 send_srb(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb) argument
862 build_srb(struct scsi_cmnd *cmd, struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) argument
966 struct ScsiReqBlk *srb; local
1039 dump_register_info(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) argument
1218 struct ScsiReqBlk *srb; local
1251 build_sdtr(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) argument
1275 build_wdtr(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) argument
1332 start_scsi(struct AdapterCtlBlk* acb, struct DeviceCtlBlk* dcb, struct ScsiReqBlk* srb) argument
1521 enable_msgout_abort(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb) argument
1543 struct ScsiReqBlk *srb; local
1682 msgout_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument
1694 msgout_phase1(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument
1728 command_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument
1736 command_phase1(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument
1774 sg_verify_length(struct ScsiReqBlk *srb) argument
1794 sg_update_list(struct ScsiReqBlk *srb, u32 left) argument
1839 sg_subtract_one(struct ScsiReqBlk *srb) argument
1853 cleanup_after_transfer(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb) argument
1879 data_out_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument
2012 data_out_phase1(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument
2022 data_in_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument
2235 data_in_phase1(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument
2244 data_io_transfer(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 io_dir) argument
2419 status_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument
2433 status_phase1(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument
2459 msgin_reject(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb) argument
2476 struct ScsiReqBlk *srb = NULL; local
2537 msgin_set_async(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb) argument
2560 msgin_set_sync(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb) argument
2633 msgin_set_nowide(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb) argument
2652 msgin_set_wide(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb) argument
2704 msgin_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument
2815 msgin_phase1(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument
2831 nop0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument
2837 nop1(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument
2869 struct ScsiReqBlk *srb; local
2965 struct ScsiReqBlk *srb = NULL; local
3107 pci_unmap_srb(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb) argument
3127 pci_unmap_srb_sense(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb) argument
3150 srb_done(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) argument
3347 struct ScsiReqBlk *srb; local
3487 request_sense(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) argument
4514 struct ScsiReqBlk *srb; local
[all...]
H A D3w-xxxx.c418 tw_dev->srb[request_id]->sense_buffer[0] = (0x1 << 7 | 0x70);
421 tw_dev->srb[request_id]->sense_buffer[2] = tw_sense_table[i][1];
424 tw_dev->srb[request_id]->sense_buffer[7] = 0xa; /* 10 bytes */
427 tw_dev->srb[request_id]->sense_buffer[12] = tw_sense_table[i][2];
430 tw_dev->srb[request_id]->sense_buffer[13] = tw_sense_table[i][3];
432 tw_dev->srb[request_id]->result = (DID_OK << 16) | SAM_STAT_CHECK_CONDITION;
597 tw_dev->srb[request_id] = NULL; /* Flag internal command */
959 tw_dev->srb[request_id] = NULL;
1164 tw_dev->srb[request_id]->result = (DID_OK << 16);
1165 scsi_done(tw_dev->srb[request_i
1291 struct scsi_cmnd *srb; local
1701 struct scsi_cmnd *srb; local
[all...]
/linux-master/drivers/usb/image/
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);
303 MTS_DEBUG( " %10ph\n", srb->cmnd);
337 static int mts_scsi_abort(struct scsi_cmnd *srb) argument
339 struct mts_desc* desc = (struct mts_desc*)(srb->device->host->hostdata[0]);
348 static int mts_scsi_host_reset(struct scsi_cmnd *srb) argument
350 struct mts_desc* desc = (struct mts_desc*)(srb->device->host->hostdata[0]);
365 mts_scsi_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *srb);
396 set_host_byte(context->srb, DID_ERRO
528 mts_build_transfer_context(struct scsi_cmnd *srb, struct mts_desc* desc) argument
568 mts_scsi_queuecommand_lck(struct scsi_cmnd *srb) argument
[all...]
H A Dmicrotek.h19 struct scsi_cmnd *srb; member in struct:mts_transfer_context
/linux-master/drivers/scsi/qla4xxx/
H A Dql4_isr.c16 * @srb: Pointer to srb structure.
20 struct srb *srb)
22 struct scsi_cmnd *cmd = srb->cmd;
38 srb->req_sense_ptr = cmd->sense_buffer;
39 srb->req_sense_len = sense_len;
55 srb->flags |= SRB_GOT_SENSE;
57 /* Update srb, in case a sts_cont pkt follows */
58 srb
18 qla4xxx_copy_sense(struct scsi_qla_host *ha, struct status_entry *sts_entry, struct srb *srb) argument
77 struct srb *srb = ha->status_srb; local
119 struct srb *srb; local
475 struct srb *srb = NULL; local
[all...]

Completed in 447 milliseconds

123