/linux-6.1.9/drivers/usb/storage/ |
D | transport.h | 62 extern int usb_stor_CB_transport(struct scsi_cmnd *, struct us_data*); 63 extern int usb_stor_CB_reset(struct us_data*); 65 extern int usb_stor_Bulk_transport(struct scsi_cmnd *, struct us_data*); 66 extern int usb_stor_Bulk_max_lun(struct us_data*); 67 extern int usb_stor_Bulk_reset(struct us_data*); 69 extern void usb_stor_invoke_transport(struct scsi_cmnd *, struct us_data*); 70 extern void usb_stor_stop_transport(struct us_data*); 72 extern int usb_stor_control_msg(struct us_data *us, unsigned int pipe, 75 extern int usb_stor_clear_halt(struct us_data *us, unsigned int pipe); 77 extern int usb_stor_ctrl_transfer(struct us_data *us, unsigned int pipe, [all …]
|
D | usb.h | 38 struct us_data; 50 int (*initFunction)(struct us_data *); 77 typedef int (*trans_cmnd)(struct scsi_cmnd *, struct us_data*); 78 typedef int (*trans_reset)(struct us_data*); 79 typedef void (*proto_cmnd)(struct scsi_cmnd*, struct us_data*); 81 typedef void (*pm_hook)(struct us_data *, int); /* power management hook */ 87 struct us_data { struct 154 static inline struct Scsi_Host *us_to_host(struct us_data *us) { in us_to_host() 157 static inline struct us_data *host_to_us(struct Scsi_Host *host) { in host_to_us() 158 return (struct us_data *) host->hostdata; in host_to_us() [all …]
|
D | shuttle_usbat.c | 149 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); 152 static int init_usbat_cd(struct us_data *us); 153 static int init_usbat_flash(struct us_data *us); 214 static int usbat_get_device_type(struct us_data *us) in usbat_get_device_type() 222 static int usbat_read(struct us_data *us, in usbat_read() 240 static int usbat_write(struct us_data *us, in usbat_write() 258 static int usbat_bulk_read(struct us_data *us, in usbat_bulk_read() 273 static int usbat_bulk_write(struct us_data *us, in usbat_bulk_write() 290 static int usbat_execute_command(struct us_data *us, in usbat_execute_command() [all …]
|
D | usb.c | 171 struct us_data *us = usb_get_intfdata(iface); in usb_stor_suspend() 191 struct us_data *us = usb_get_intfdata(iface); in usb_stor_resume() 205 struct us_data *us = usb_get_intfdata(iface); in usb_stor_reset_resume() 227 struct us_data *us = usb_get_intfdata(iface); in usb_stor_pre_reset() 237 struct us_data *us = usb_get_intfdata(iface); in usb_stor_post_reset() 261 void fill_inquiry_response(struct us_data *us, unsigned char *data, in fill_inquiry_response() 300 struct us_data *us = (struct us_data *)__us; in usb_stor_control_thread() 440 static int associate_dev(struct us_data *us, struct usb_interface *intf) in associate_dev() 588 static int get_device_info(struct us_data *us, const struct usb_device_id *id, in get_device_info() 666 static void get_transport(struct us_data *us) in get_transport() [all …]
|
D | debug.h | 33 void usb_stor_show_command(const struct us_data *us, struct scsi_cmnd *srb); 34 void usb_stor_show_sense(const struct us_data *us, unsigned char key, 36 __printf(2, 3) void usb_stor_dbg(const struct us_data *us, 42 static inline void _usb_stor_dbg(const struct us_data *us, in _usb_stor_dbg()
|
D | sddr09.c | 52 static int usb_stor_sddr09_dpcm_init(struct us_data *us); 53 static int sddr09_transport(struct scsi_cmnd *srb, struct us_data *us); 54 static int usb_stor_sddr09_init(struct us_data *us); 289 sddr09_send_command(struct us_data *us, in sddr09_send_command() 315 sddr09_send_scsi_command(struct us_data *us, in sddr09_send_scsi_command() 327 sddr09_test_unit_ready(struct us_data *us) { 348 sddr09_request_sense(struct us_data *us, unsigned char *sensebuf, int buflen) { in sddr09_request_sense() 389 sddr09_readX(struct us_data *us, int x, unsigned long fromaddress, in sddr09_readX() 438 sddr09_read20(struct us_data *us, unsigned long fromaddress, in sddr09_read20() 461 sddr09_read21(struct us_data *us, unsigned long fromaddress, in sddr09_read21() [all …]
|
D | scsiglue.c | 64 struct us_data *us = host_to_us(host); in host_info() 70 struct us_data *us = host_to_us(sdev->host); in slave_alloc() 94 struct us_data *us = host_to_us(sdev->host); in slave_configure() 339 struct us_data *us = host_to_us(dev_to_shost(starget->dev.parent)); in target_alloc() 369 struct us_data *us = host_to_us(srb->device->host); in queuecommand_lck() 411 struct us_data *us = host_to_us(srb->device->host); in DEF_SCSI_QCMD() 453 struct us_data *us = host_to_us(srb->device->host); in device_reset() 469 struct us_data *us = host_to_us(srb->device->host); in bus_reset() 483 void usb_stor_report_device_reset(struct us_data *us) in usb_stor_report_device_reset() 500 void usb_stor_report_bus_reset(struct us_data *us) in usb_stor_report_bus_reset() [all …]
|
D | initializers.h | 30 int usb_stor_euscsi_init(struct us_data *us); 36 int usb_stor_ucr61s2b_init(struct us_data *us); 39 int usb_stor_huawei_e220_init(struct us_data *us);
|
D | ene_ub6250.c | 477 static int ene_sd_init(struct us_data *us); 478 static int ene_ms_init(struct us_data *us); 479 static int ene_load_bincode(struct us_data *us, unsigned char flag); 490 static int ene_send_scsi_cmd(struct us_data *us, u8 fDir, void *buf, int use_sg) in ene_send_scsi_cmd() 570 static int do_scsi_request_sense(struct us_data *us, struct scsi_cmnd *srb) in do_scsi_request_sense() 586 static int do_scsi_inquiry(struct us_data *us, struct scsi_cmnd *srb) in do_scsi_inquiry() 598 static int sd_scsi_test_unit_ready(struct us_data *us, struct scsi_cmnd *srb) in sd_scsi_test_unit_ready() 612 static int sd_scsi_mode_sense(struct us_data *us, struct scsi_cmnd *srb) in sd_scsi_mode_sense() 631 static int sd_scsi_read_capacity(struct us_data *us, struct scsi_cmnd *srb) in sd_scsi_read_capacity() 671 static int sd_scsi_read(struct us_data *us, struct scsi_cmnd *srb) in sd_scsi_read() [all …]
|
D | realtek_cr.c | 100 struct us_data *us; 158 static int init_realtek_cr(struct us_data *us); 201 static int rts51x_bulk_transport(struct us_data *us, u8 lun, in rts51x_bulk_transport() 291 static int rts51x_bulk_transport_special(struct us_data *us, u8 lun, in rts51x_bulk_transport_special() 338 static int rts51x_get_max_lun(struct us_data *us) in rts51x_get_max_lun() 360 static int rts51x_read_mem(struct us_data *us, u16 addr, u8 *data, u16 len) in rts51x_read_mem() 391 static int rts51x_write_mem(struct us_data *us, u16 addr, u8 *data, u16 len) in rts51x_write_mem() 419 static int rts51x_read_status(struct us_data *us, in rts51x_read_status() 447 static int rts51x_check_status(struct us_data *us, u8 lun) in rts51x_check_status() 478 static int enable_oscillator(struct us_data *us) in enable_oscillator() [all …]
|
D | protocol.h | 28 extern void usb_stor_pad12_command(struct scsi_cmnd*, struct us_data*); 29 extern void usb_stor_ufi_command(struct scsi_cmnd*, struct us_data*); 31 struct us_data*);
|
D | transport.c | 115 static int usb_stor_msg_common(struct us_data *us, int timeout) in usb_stor_msg_common() 185 int usb_stor_control_msg(struct us_data *us, unsigned int pipe, in usb_stor_control_msg() 227 int usb_stor_clear_halt(struct us_data *us, unsigned int pipe) in usb_stor_clear_halt() 256 static int interpret_urb_result(struct us_data *us, unsigned int pipe, in interpret_urb_result() 322 int usb_stor_ctrl_transfer(struct us_data *us, unsigned int pipe, in usb_stor_ctrl_transfer() 356 static int usb_stor_intr_transfer(struct us_data *us, void *buf, in usb_stor_intr_transfer() 385 int usb_stor_bulk_transfer_buf(struct us_data *us, unsigned int pipe, in usb_stor_bulk_transfer_buf() 411 static int usb_stor_bulk_transfer_sglist(struct us_data *us, unsigned int pipe, in usb_stor_bulk_transfer_sglist() 466 int usb_stor_bulk_srb(struct us_data* us, unsigned int pipe, in usb_stor_bulk_srb() 488 int usb_stor_bulk_transfer_sg(struct us_data* us, unsigned int pipe, in usb_stor_bulk_transfer_sg() [all …]
|
D | alauda.c | 121 static int init_alauda(struct us_data *us); 308 static int alauda_get_media_status(struct us_data *us, unsigned char *data) in alauda_get_media_status() 330 static int alauda_ack_media(struct us_data *us) in alauda_ack_media() 347 static int alauda_get_media_signature(struct us_data *us, unsigned char *data) in alauda_get_media_signature() 363 static int alauda_reset_media(struct us_data *us) in alauda_reset_media() 379 static int alauda_init_media(struct us_data *us) in alauda_init_media() 454 static int alauda_check_media(struct us_data *us) in alauda_check_media() 491 static int alauda_check_status2(struct us_data *us) in alauda_check_status2() 521 static int alauda_get_redu_data(struct us_data *us, u16 pba, unsigned char *data) in alauda_get_redu_data() 559 static int alauda_read_map(struct us_data *us, unsigned int zone) in alauda_read_map() [all …]
|
D | freecom.c | 35 static void pdump(struct us_data *us, void *ibuffer, int length); 110 static int init_freecom(struct us_data *us); 152 freecom_readdata (struct scsi_cmnd *srb, struct us_data *us, in freecom_readdata() 185 freecom_writedata (struct scsi_cmnd *srb, struct us_data *us, in freecom_writedata() 221 static int freecom_transport(struct scsi_cmnd *srb, struct us_data *us) in freecom_transport() 439 static int init_freecom(struct us_data *us) in init_freecom() 480 static int usb_stor_freecom_reset(struct us_data *us) in usb_stor_freecom_reset() 489 static void pdump(struct us_data *us, void *ibuffer, int length) in pdump() 546 struct us_data *us; in freecom_probe()
|
D | karma.c | 42 static int rio_karma_init(struct us_data *us); 94 static int rio_karma_send_command(char cmd, struct us_data *us) in rio_karma_send_command() 145 static int rio_karma_transport(struct scsi_cmnd *srb, struct us_data *us) in rio_karma_transport() 175 static int rio_karma_init(struct us_data *us) in rio_karma_init() 203 struct us_data *us; in karma_probe()
|
D | initializers.c | 34 int usb_stor_euscsi_init(struct us_data *us) in usb_stor_euscsi_init() 51 int usb_stor_ucr61s2b_init(struct us_data *us) in usb_stor_ucr61s2b_init() 84 int usb_stor_huawei_e220_init(struct us_data *us) in usb_stor_huawei_e220_init()
|
D | isd200.c | 58 static int isd200_Initialization(struct us_data *us); 399 static void isd200_build_sense(struct us_data *us, struct scsi_cmnd *srb) in isd200_build_sense() 477 static int isd200_action( struct us_data *us, int action, in isd200_action() 578 static int isd200_read_regs( struct us_data *us ) in isd200_read_regs() 607 static void isd200_invoke_transport( struct us_data *us, in isd200_invoke_transport() 709 static void isd200_log_config(struct us_data *us, struct isd200_info *info) in isd200_log_config() 754 static int isd200_write_config( struct us_data *us ) in isd200_write_config() 797 static int isd200_read_config( struct us_data *us ) in isd200_read_config() 842 static int isd200_atapi_soft_reset( struct us_data *us ) in isd200_atapi_soft_reset() 868 static int isd200_srst( struct us_data *us ) in isd200_srst() [all …]
|
D | datafab.c | 70 static int datafab_determine_lun(struct us_data *us, 114 datafab_bulk_read(struct us_data *us, unsigned char *data, unsigned int len) { in datafab_bulk_read() 125 datafab_bulk_write(struct us_data *us, unsigned char *data, unsigned int len) { in datafab_bulk_write() 135 static int datafab_read_data(struct us_data *us, in datafab_read_data() 218 static int datafab_write_data(struct us_data *us, in datafab_write_data() 313 static int datafab_determine_lun(struct us_data *us, in datafab_determine_lun() 380 static int datafab_id_device(struct us_data *us, in datafab_id_device() 436 static int datafab_handle_mode_sense(struct us_data *us, in datafab_handle_mode_sense() 547 static int datafab_transport(struct scsi_cmnd *srb, struct us_data *us) in datafab_transport() 725 struct us_data *us; in datafab_probe()
|
D | scsiglue.h | 27 extern void usb_stor_report_device_reset(struct us_data *us); 28 extern void usb_stor_report_bus_reset(struct us_data *us);
|
D | jumpshot.c | 105 static inline int jumpshot_bulk_read(struct us_data *us, in jumpshot_bulk_read() 118 static inline int jumpshot_bulk_write(struct us_data *us, in jumpshot_bulk_write() 131 static int jumpshot_get_status(struct us_data *us) in jumpshot_get_status() 153 static int jumpshot_read_data(struct us_data *us, in jumpshot_read_data() 230 static int jumpshot_write_data(struct us_data *us, in jumpshot_write_data() 321 static int jumpshot_id_device(struct us_data *us, in jumpshot_id_device() 366 static int jumpshot_handle_mode_sense(struct us_data *us, in jumpshot_handle_mode_sense() 474 static int jumpshot_transport(struct scsi_cmnd *srb, struct us_data *us) in jumpshot_transport() 651 struct us_data *us; in jumpshot_probe()
|
D | option_ms.c | 29 static int option_rezero(struct us_data *us) in option_rezero() 75 static int option_inquiry(struct us_data *us) in option_inquiry() 125 int option_ms_init(struct us_data *us) in option_ms_init()
|
D | protocol.c | 45 void usb_stor_pad12_command(struct scsi_cmnd *srb, struct us_data *us) in usb_stor_pad12_command() 61 void usb_stor_ufi_command(struct scsi_cmnd *srb, struct us_data *us) in usb_stor_ufi_command() 105 struct us_data *us) in usb_stor_transparent_scsi_command()
|
D | sddr55.c | 110 sddr55_bulk_transport(struct us_data *us, int direction, in sddr55_bulk_transport() 127 static int sddr55_status(struct us_data *us) in sddr55_status() 187 static int sddr55_read_data(struct us_data *us, in sddr55_read_data() 306 static int sddr55_write_data(struct us_data *us, in sddr55_write_data() 512 static int sddr55_read_deviceID(struct us_data *us, in sddr55_read_deviceID() 549 static int sddr55_reset(struct us_data *us) in sddr55_reset() 555 static unsigned long sddr55_get_capacity(struct us_data *us) { in sddr55_get_capacity() 639 static int sddr55_read_map(struct us_data *us) { in sddr55_read_map() 775 static int sddr55_transport(struct scsi_cmnd *srb, struct us_data *us) in sddr55_transport() 983 struct us_data *us; in sddr55_probe()
|
D | debug.c | 41 void usb_stor_show_command(const struct us_data *us, struct scsi_cmnd *srb) in usb_stor_show_command() 143 void usb_stor_show_sense(const struct us_data *us, in usb_stor_show_sense() 164 void usb_stor_dbg(const struct us_data *us, const char *fmt, ...) in usb_stor_dbg()
|
D | onetouch.c | 33 static int onetouch_connect_input(struct us_data *ss); 142 static void usb_onetouch_pm_hook(struct us_data *us, int action) in usb_onetouch_pm_hook() 163 static int onetouch_connect_input(struct us_data *ss) in onetouch_connect_input() 278 struct us_data *us; in onetouch_probe()
|