/drivers/staging/rts5139/ |
H A D | ms_mg.h | 33 int mg_set_leaf_id(struct scsi_cmnd *srb, struct rts51x_chip *chip); 34 int mg_get_local_EKB(struct scsi_cmnd *srb, struct rts51x_chip *chip); 35 int mg_chg(struct scsi_cmnd *srb, struct rts51x_chip *chip); 36 int mg_get_rsp_chg(struct scsi_cmnd *srb, struct rts51x_chip *chip); 37 int mg_rsp(struct scsi_cmnd *srb, struct rts51x_chip *chip); 38 int mg_get_ICV(struct scsi_cmnd *srb, struct rts51x_chip *chip); 39 int mg_set_ICV(struct scsi_cmnd *srb, struct rts51x_chip *chip);
|
H A D | rts51x_scsi.c | 48 void scsi_show_command(struct scsi_cmnd *srb) argument 53 switch (srb->cmnd[0]) { 327 if (srb->cmnd[0] != TEST_UNIT_READY) 328 RTS51X_DEBUGP("Command %s (%d bytes)\n", what, srb->cmd_len); 331 for (i = 0; i < srb->cmd_len && i < 16; i++) 332 RTS51X_DEBUGPN(" %02x", srb->cmnd[i]); 435 static int test_unit_ready(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 437 unsigned int lun = SCSI_LUN(srb); 452 if (get_lun_card(chip, SCSI_LUN(srb)) == SD_CARD) { 478 static int inquiry(struct scsi_cmnd *srb, struc argument 543 start_stop_unit(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 578 allow_medium_removal(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 684 mode_sense(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 768 request_sense(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 798 read_write(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 908 read_format_capacity(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 985 read_capacity(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 1023 get_dev_status(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 1038 read_status(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 1053 read_mem(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 1094 write_mem(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 1135 get_sd_csd(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 1156 read_phy_register(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 1194 write_phy_register(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 1233 get_card_bus_width(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 1258 trace_msg_cmd(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 1290 rw_mem_cmd_buf(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 1370 suit_cmd(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 1388 app_cmd(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 1423 vendor_cmnd(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 1467 ms_format_cmnd(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 1519 get_ms_information(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 1611 ms_sp_cmnd(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 1626 sd_extention_cmnd(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 1680 mg_report_key(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 1767 mg_send_key(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 1872 rts51x_scsi_handler(struct scsi_cmnd *srb, struct rts51x_chip *chip) argument 2087 queuecommand_lck(struct scsi_cmnd *srb, void (*done) (struct scsi_cmnd *)) argument 2162 device_reset(struct scsi_cmnd *srb) argument 2172 bus_reset(struct scsi_cmnd *srb) argument [all...] |
H A D | sd_cprm.h | 46 int sd_pass_thru_mode(struct scsi_cmnd *srb, struct rts51x_chip *chip); 47 int sd_execute_no_data(struct scsi_cmnd *srb, struct rts51x_chip *chip); 48 int sd_execute_read_data(struct scsi_cmnd *srb, struct rts51x_chip *chip); 49 int sd_execute_write_data(struct scsi_cmnd *srb, struct rts51x_chip *chip); 50 int sd_get_cmd_rsp(struct scsi_cmnd *srb, struct rts51x_chip *chip); 51 int sd_hw_rst(struct scsi_cmnd *srb, struct rts51x_chip *chip);
|
H A D | rts51x_transport.h | 44 struct scsi_cmnd *srb, 49 struct scsi_cmnd *srb); 51 struct scsi_cmnd *srb); 77 void rts51x_invoke_transport(struct scsi_cmnd *srb, struct rts51x_chip *chip);
|
H A D | sd_cprm.c | 809 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 D | rts51x_scsi.h | 136 void scsi_show_command(struct scsi_cmnd *srb); 142 int rts51x_scsi_handler(struct scsi_cmnd *srb, struct rts51x_chip *chip); 154 int queuecommand(struct scsi_cmnd *srb, void (*done) (struct scsi_cmnd *)); 158 int command_abort(struct scsi_cmnd *srb); 159 int device_reset(struct scsi_cmnd *srb); 160 int bus_reset(struct scsi_cmnd *srb);
|
/drivers/usb/storage/ |
H A D | protocol.c | 60 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 D | cypress_atacb.c | 83 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 D | protocol.h | 52 unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **, 56 unsigned int buflen, struct scsi_cmnd *srb);
|
H A D | transport.c | 468 struct scsi_cmnd* srb) 471 int result = usb_stor_bulk_transfer_sglist(us, pipe, scsi_sglist(srb), 472 scsi_sg_count(srb), scsi_bufflen(srb), 475 scsi_set_resid(srb, scsi_bufflen(srb) - partial); 524 static void last_sector_hacks(struct us_data *us, struct scsi_cmnd *srb) argument 547 if (srb->cmnd[0] != READ_10 && srb->cmnd[0] != WRITE_10) 551 sector = (srb 467 usb_stor_bulk_srb(struct us_data* us, unsigned int pipe, struct scsi_cmnd* srb) argument 599 usb_stor_invoke_transport(struct scsi_cmnd *srb, struct us_data *us) argument 917 usb_stor_CB_transport(struct scsi_cmnd *srb, struct us_data *us) argument 1054 usb_stor_Bulk_transport(struct scsi_cmnd *srb, struct us_data *us) argument [all...] |
H A D | datafab.c | 210 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 D | jumpshot.c | 224 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 D | isd200.c | 342 struct scsi_cmnd srb; member in struct:isd200_info 411 static void isd200_build_sense(struct us_data *us, struct scsi_cmnd *srb) argument 414 struct sense_data *buf = (struct sense_data *) &srb->sense_buffer[0]; 464 struct scsi_cmnd *srb = &info->srb; local 469 srb->sc_data_direction = dir; 470 srb->sdb.table.sgl = buff ? &info->sg : NULL; 471 srb->sdb.length = bufflen; 472 srb->sdb.table.nents = buff ? 1 : 0; 475 static void isd200_srb_set_bufflen(struct scsi_cmnd *srb, unsigne argument 496 struct scsi_cmnd *srb = &info->srb; local 618 isd200_invoke_transport( struct us_data *us, struct scsi_cmnd *srb, union ata_cdb *ataCdb ) argument 1220 isd200_scsi_to_ata(struct scsi_cmnd *srb, struct us_data *us, union ata_cdb * ataCdb) argument 1518 isd200_ata_command(struct scsi_cmnd *srb, struct us_data *us) argument [all...] |
H A D | shuttle_usbat.c | 157 static int usbat_flash_transport(struct scsi_cmnd * srb, struct us_data *us); 158 static int usbat_hp8200e_transport(struct scsi_cmnd *srb, struct us_data *us); 1184 usb_stor_access_xfer_buf(buffer, len, us->srb, 1260 usb_stor_access_xfer_buf(buffer, len, us->srb, 1295 struct scsi_cmnd *srb) 1305 srb->transfersize); 1307 if (scsi_bufflen(srb) < 0x10000) { 1314 scsi_sglist(srb), 1315 scsi_bufflen(srb), scsi_sg_count(srb), 1292 usbat_hp8200e_handle_read10(struct us_data *us, unsigned char *registers, unsigned char *data, struct scsi_cmnd *srb) argument 1558 usbat_hp8200e_transport(struct scsi_cmnd *srb, struct us_data *us) argument 1685 usbat_flash_transport(struct scsi_cmnd * srb, struct us_data *us) argument [all...] |
H A D | scsiglue.c | 300 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...] |
/drivers/scsi/ |
H A D | dc395x.c | 182 * srb->segement_x is the hw sg list. It is always allocated as a 229 struct list_head list; /* next/prev ptrs for srb lists */ 245 * (srb->segment_x[DC395x_MAX_SG_LISTENTRY - 1] and the 272 struct list_head srb_going_list; /* head of going srb list */ 273 struct list_head srb_waiting_list; /* head of waiting srb list */ 306 struct list_head srb_free_list; /* head of free srb list */ 333 struct ScsiReqBlk srb; member in struct:AdapterCtlBlk 342 static void data_out_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, 344 static void data_in_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, 346 static void command_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, 736 free_tag(struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) argument 760 struct ScsiReqBlk *srb = NULL; local 771 srb_free_insert(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb) argument 778 srb_waiting_insert(struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) argument 787 srb_waiting_append(struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) argument 796 srb_going_append(struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) argument 804 srb_going_remove(struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) argument 819 srb_waiting_remove(struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) argument 835 srb_going_to_waiting_move(struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) argument 845 srb_waiting_to_going_move(struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) argument 878 struct ScsiReqBlk *srb; local 959 send_srb(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb) argument 980 build_srb(struct scsi_cmnd *cmd, struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) argument 1086 struct ScsiReqBlk *srb; local 1191 dump_register_info(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) argument 1370 struct ScsiReqBlk *srb; local 1403 build_sdtr(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) argument 1431 build_wdtr(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) argument 1492 start_scsi(struct AdapterCtlBlk* acb, struct DeviceCtlBlk* dcb, struct ScsiReqBlk* srb) argument 1681 enable_msgout_abort(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb) argument 1703 struct ScsiReqBlk *srb; local 1842 msgout_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument 1854 msgout_phase1(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument 1887 command_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument 1895 command_phase1(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument 1933 sg_verify_length(struct ScsiReqBlk *srb) argument 1953 sg_update_list(struct ScsiReqBlk *srb, u32 left) argument 1997 sg_subtract_one(struct ScsiReqBlk *srb) argument 2011 cleanup_after_transfer(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb) argument 2037 data_out_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument 2170 data_out_phase1(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument 2180 data_in_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument 2393 data_in_phase1(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument 2402 data_io_transfer(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 io_dir) argument 2578 status_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument 2592 status_phase1(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument 2618 msgin_reject(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb) argument 2635 struct ScsiReqBlk *srb = NULL; local 2696 msgin_set_async(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb) argument 2719 msgin_set_sync(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb) argument 2792 msgin_set_nowide(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb) argument 2811 msgin_set_wide(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb) argument 2863 msgin_phase0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument 2974 msgin_phase1(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument 2990 nop0(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument 2996 nop1(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb, u16 *pscsi_status) argument 3028 struct ScsiReqBlk *srb; local 3124 struct ScsiReqBlk *srb = NULL; local 3268 pci_unmap_srb(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb) argument 3289 pci_unmap_srb_sense(struct AdapterCtlBlk *acb, struct ScsiReqBlk *srb) argument 3312 srb_done(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) argument 3529 struct ScsiReqBlk *srb; local 3675 request_sense(struct AdapterCtlBlk *acb, struct DeviceCtlBlk *dcb, struct ScsiReqBlk *srb) argument 4713 struct ScsiReqBlk *srb; local [all...] |
/drivers/staging/rts_pstor/ |
H A D | rtsx_scsi.c | 38 void scsi_show_command(struct scsi_cmnd *srb) argument 43 switch (srb->cmnd[0]) { 138 if (srb->cmnd[0] != TEST_UNIT_READY) { 139 RTSX_DEBUGP("Command %s (%d bytes)\n", what, srb->cmd_len); 143 for (i = 0; i < srb->cmd_len && i < 16; i++) 144 RTSX_DEBUGPN(" %02x", srb->cmnd[i]); 246 static int test_unit_ready(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 248 unsigned int lun = SCSI_LUN(srb); 262 if (get_lun_card(chip, SCSI_LUN(srb)) == SD_CARD) { 296 static int inquiry(struct scsi_cmnd *srb, struc argument 388 start_stop_unit(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 424 allow_medium_removal(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 441 request_sense(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 580 mode_sense(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 679 read_write(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 820 read_format_capacity(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 901 read_capacity(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 942 read_eeprom(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 988 write_eeprom(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 1041 read_mem(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 1093 write_mem(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 1145 get_sd_csd(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 1166 toggle_gpio_cmd(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 1186 trace_msg_cmd(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 1253 read_host_reg(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 1284 write_host_reg(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 1311 set_variable(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 1370 get_variable(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 1410 dma_access_ring_buffer(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 1448 get_dev_status(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 1587 set_chip_mode(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 1639 rw_mem_cmd_buf(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 1699 suit_cmd(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 1717 read_phy_register(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 1773 write_phy_register(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 1828 erase_eeprom2(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 1871 read_eeprom2(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 1918 write_eeprom2(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 1965 read_efuse(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 2012 write_efuse(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 2122 read_cfg_byte(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 2175 write_cfg_byte(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 2228 app_cmd(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 2316 read_status(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 2455 get_card_bus_width(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 2479 spi_vendor_cmd(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 2548 vendor_cmnd(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 2608 led_shine(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 2630 ms_format_cmnd(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 2694 get_ms_information(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 2792 ms_sp_cmnd(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 2809 sd_extention_cmnd(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 2868 mg_report_key(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 2966 mg_send_key(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument 3083 rtsx_scsi_handler(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument [all...] |
H A D | spi.h | 56 int spi_get_status(struct scsi_cmnd *srb, struct rtsx_chip *chip); 57 int spi_set_parameter(struct scsi_cmnd *srb, struct rtsx_chip *chip); 58 int spi_read_flash_id(struct scsi_cmnd *srb, struct rtsx_chip *chip); 59 int spi_read_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip); 60 int spi_write_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip); 61 int spi_erase_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip); 62 int spi_write_flash_status(struct scsi_cmnd *srb, struct rtsx_chip *chip);
|
H A D | rtsx_transport.h | 33 unsigned int buflen, struct scsi_cmnd *srb, unsigned int *index, 36 unsigned int buflen, struct scsi_cmnd *srb); 38 unsigned int buflen, struct scsi_cmnd *srb); 39 void rtsx_invoke_transport(struct scsi_cmnd *srb, struct rtsx_chip *chip);
|
H A D | spi.c | 375 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...] |
/drivers/staging/keucr/ |
H A D | smscsi.c | 14 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 D | transport.c | 253 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...] |
H A D | scsiglue.c | 98 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 D | transport.h | 44 struct scsi_cmnd *srb); 50 unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb, 53 unsigned int buflen, struct scsi_cmnd *srb, 72 extern int SM_SCSIIrp(struct us_data *us, struct scsi_cmnd *srb);
|
/drivers/usb/image/ |
H A D | microtek.c | 226 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...] |