/Linux-v5.10/drivers/usb/storage/ |
D | transport.c | 115 static int usb_stor_msg_common(struct us_data *us, int timeout) in usb_stor_msg_common() argument 122 if (test_bit(US_FLIDX_ABORTING, &us->dflags)) in usb_stor_msg_common() 129 us->current_urb->context = &urb_done; in usb_stor_msg_common() 130 us->current_urb->transfer_flags = 0; in usb_stor_msg_common() 138 if (us->current_urb->transfer_buffer == us->iobuf) in usb_stor_msg_common() 139 us->current_urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; in usb_stor_msg_common() 140 us->current_urb->transfer_dma = us->iobuf_dma; in usb_stor_msg_common() 143 status = usb_submit_urb(us->current_urb, GFP_NOIO); in usb_stor_msg_common() 153 set_bit(US_FLIDX_URB_ACTIVE, &us->dflags); in usb_stor_msg_common() 156 if (test_bit(US_FLIDX_ABORTING, &us->dflags)) { in usb_stor_msg_common() [all …]
|
D | usb.c | 171 struct us_data *us = usb_get_intfdata(iface); in usb_stor_suspend() local 174 mutex_lock(&us->dev_mutex); in usb_stor_suspend() 176 if (us->suspend_resume_hook) in usb_stor_suspend() 177 (us->suspend_resume_hook)(us, US_SUSPEND); in usb_stor_suspend() 184 mutex_unlock(&us->dev_mutex); in usb_stor_suspend() 191 struct us_data *us = usb_get_intfdata(iface); in usb_stor_resume() local 193 mutex_lock(&us->dev_mutex); in usb_stor_resume() 195 if (us->suspend_resume_hook) in usb_stor_resume() 196 (us->suspend_resume_hook)(us, US_RESUME); in usb_stor_resume() 198 mutex_unlock(&us->dev_mutex); in usb_stor_resume() [all …]
|
D | scsiglue.c | 64 struct us_data *us = host_to_us(host); in host_info() local 65 return us->scsi_name; in host_info() 70 struct us_data *us = host_to_us(sdev->host); in slave_alloc() local 86 if (us->protocol == USB_PR_BULK && us->max_lun > 0) in slave_alloc() 94 struct us_data *us = host_to_us(sdev->host); in slave_configure() local 95 struct device *dev = us->pusb_dev->bus->sysdev; in slave_configure() 102 if (us->fflags & (US_FL_MAX_SECTORS_64 | US_FL_MAX_SECTORS_MIN)) { in slave_configure() 105 if (us->fflags & US_FL_MAX_SECTORS_MIN) in slave_configure() 117 } else if (us->pusb_dev->speed >= USB_SPEED_SUPER) { in slave_configure() 138 if (!hcd_uses_dma(bus_to_hcd(us->pusb_dev->bus)) || in slave_configure() [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() argument 216 return ((struct usbat_info*)us->extra)->devicetype; in usbat_get_device_type() 222 static int usbat_read(struct us_data *us, in usbat_read() argument 227 return usb_stor_ctrl_transfer(us, in usbat_read() 228 us->recv_ctrl_pipe, in usbat_read() 240 static int usbat_write(struct us_data *us, in usbat_write() argument [all …]
|
D | alauda.c | 114 #define MEDIA_PORT(us) us->srb->device->lun argument 115 #define MEDIA_INFO(us) ((struct alauda_info *)us->extra)->port[MEDIA_PORT(us)] argument 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() argument 313 if (MEDIA_PORT(us) == ALAUDA_PORT_XD) in alauda_get_media_status() 318 rc = usb_stor_ctrl_transfer(us, us->recv_ctrl_pipe, in alauda_get_media_status() 321 usb_stor_dbg(us, "Media status %02X %02X\n", data[0], data[1]); in alauda_get_media_status() 330 static int alauda_ack_media(struct us_data *us) in alauda_ack_media() argument 334 if (MEDIA_PORT(us) == ALAUDA_PORT_XD) in alauda_ack_media() 339 return usb_stor_ctrl_transfer(us, us->send_ctrl_pipe, in alauda_ack_media() [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() argument 156 (struct freecom_xfer_wrap *) us->iobuf; in freecom_readdata() 164 usb_stor_dbg(us, "Read data Freecom! (c=%d)\n", count); in freecom_readdata() 167 result = usb_stor_bulk_transfer_buf (us, opipe, fxfr, in freecom_readdata() 170 usb_stor_dbg(us, "Freecom readdata transport error\n"); in freecom_readdata() 175 usb_stor_dbg(us, "Start of read\n"); in freecom_readdata() 176 result = usb_stor_bulk_srb(us, ipipe, srb); in freecom_readdata() 177 usb_stor_dbg(us, "freecom_readdata done!\n"); in freecom_readdata() [all …]
|
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() argument 401 struct isd200_info *info = (struct isd200_info *)us->extra; in isd200_build_sense() 477 static int isd200_action( struct us_data *us, int action, in isd200_action() argument 483 struct isd200_info *info = (struct isd200_info *)us->extra; in isd200_action() 497 usb_stor_dbg(us, " isd200_action(READ_STATUS)\n"); in isd200_action() 506 usb_stor_dbg(us, " isd200_action(ENUM,0x%02x)\n", value); in isd200_action() 516 usb_stor_dbg(us, " isd200_action(RESET)\n"); in isd200_action() 525 usb_stor_dbg(us, " isd200_action(REENABLE)\n"); in isd200_action() 534 usb_stor_dbg(us, " isd200_action(SOFT_RESET)\n"); in isd200_action() [all …]
|
D | realtek_cr.c | 100 struct us_data *us; member 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() argument 205 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *)us->iobuf; in rts51x_bulk_transport() 206 struct bulk_cs_wrap *bcs = (struct bulk_cs_wrap *)us->iobuf; in rts51x_bulk_transport() 216 bcb->Tag = ++us->tag; in rts51x_bulk_transport() 225 result = usb_stor_bulk_transfer_buf(us, us->send_bulk_pipe, in rts51x_bulk_transport() 235 us->recv_bulk_pipe : us->send_bulk_pipe; in rts51x_bulk_transport() 236 result = usb_stor_bulk_transfer_buf(us, pipe, in rts51x_bulk_transport() 243 result = usb_stor_bulk_transfer_buf(us, us->recv_bulk_pipe, in rts51x_bulk_transport() [all …]
|
D | jumpshot.c | 105 static inline int jumpshot_bulk_read(struct us_data *us, in jumpshot_bulk_read() argument 112 usb_stor_dbg(us, "len = %d\n", len); in jumpshot_bulk_read() 113 return usb_stor_bulk_transfer_buf(us, us->recv_bulk_pipe, in jumpshot_bulk_read() 118 static inline int jumpshot_bulk_write(struct us_data *us, in jumpshot_bulk_write() argument 125 usb_stor_dbg(us, "len = %d\n", len); in jumpshot_bulk_write() 126 return usb_stor_bulk_transfer_buf(us, us->send_bulk_pipe, in jumpshot_bulk_write() 131 static int jumpshot_get_status(struct us_data *us) in jumpshot_get_status() argument 135 if (!us) in jumpshot_get_status() 139 rc = usb_stor_ctrl_transfer(us, us->recv_ctrl_pipe, in jumpshot_get_status() 140 0, 0xA0, 0, 7, us->iobuf, 1); in jumpshot_get_status() [all …]
|
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() argument 301 pipe = us->recv_ctrl_pipe; in sddr09_send_command() 303 pipe = us->send_ctrl_pipe; in sddr09_send_command() 305 rc = usb_stor_ctrl_transfer(us, pipe, request, requesttype, in sddr09_send_command() 315 sddr09_send_scsi_command(struct us_data *us, in sddr09_send_scsi_command() argument 318 return sddr09_send_command(us, 0, USB_DIR_OUT, command, command_len); in sddr09_send_scsi_command() 327 sddr09_test_unit_ready(struct us_data *us) { [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() argument 118 usb_stor_dbg(us, "len = %d\n", len); in datafab_bulk_read() 119 return usb_stor_bulk_transfer_buf(us, us->recv_bulk_pipe, in datafab_bulk_read() 125 datafab_bulk_write(struct us_data *us, unsigned char *data, unsigned int len) { in datafab_bulk_write() argument 129 usb_stor_dbg(us, "len = %d\n", len); in datafab_bulk_write() 130 return usb_stor_bulk_transfer_buf(us, us->send_bulk_pipe, in datafab_bulk_write() 135 static int datafab_read_data(struct us_data *us, in datafab_read_data() argument 140 unsigned char *command = us->iobuf; in datafab_read_data() 157 result = datafab_determine_lun(us, info); in datafab_read_data() [all …]
|
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() argument 99 struct karma_data *data = (struct karma_data *) us->extra; in rio_karma_send_command() 101 usb_stor_dbg(us, "sending command %04x\n", cmd); in rio_karma_send_command() 102 memset(us->iobuf, 0, RIO_SEND_LEN); in rio_karma_send_command() 103 memcpy(us->iobuf, RIO_PREFIX, RIO_PREFIX_LEN); in rio_karma_send_command() 104 us->iobuf[5] = cmd; in rio_karma_send_command() 105 us->iobuf[6] = seq; in rio_karma_send_command() 109 result = usb_stor_bulk_transfer_buf(us, us->send_bulk_pipe, in rio_karma_send_command() 110 us->iobuf, RIO_SEND_LEN, NULL); in rio_karma_send_command() [all …]
|
D | option_ms.c | 29 static int option_rezero(struct us_data *us) in option_rezero() argument 40 usb_stor_dbg(us, "Option MS: %s\n", "DEVICE MODE SWITCH"); in option_rezero() 47 result = usb_stor_bulk_transfer_buf(us, in option_rezero() 48 us->send_bulk_pipe, in option_rezero() 59 usb_stor_bulk_transfer_buf(us, in option_rezero() 60 us->recv_bulk_pipe, in option_rezero() 64 usb_stor_bulk_transfer_buf(us, in option_rezero() 65 us->recv_bulk_pipe, in option_rezero() 75 static int option_inquiry(struct us_data *us) in option_inquiry() argument 86 usb_stor_dbg(us, "Option MS: %s\n", "device inquiry for vendor name"); in option_inquiry() [all …]
|
D | ene_ub6250.c | 480 static int ene_sd_init(struct us_data *us); 481 static int ene_ms_init(struct us_data *us); 482 static int ene_load_bincode(struct us_data *us, unsigned char flag); 493 static int ene_send_scsi_cmd(struct us_data *us, u8 fDir, void *buf, int use_sg) in ene_send_scsi_cmd() argument 495 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ene_send_scsi_cmd() 496 struct bulk_cs_wrap *bcs = (struct bulk_cs_wrap *) us->iobuf; in ene_send_scsi_cmd() 505 result = usb_stor_bulk_transfer_buf(us, us->send_bulk_pipe, in ene_send_scsi_cmd() 508 usb_stor_dbg(us, "send cmd to out endpoint fail ---\n"); in ene_send_scsi_cmd() 516 pipe = us->recv_bulk_pipe; in ene_send_scsi_cmd() 518 pipe = us->send_bulk_pipe; in ene_send_scsi_cmd() [all …]
|
D | sddr55.c | 110 sddr55_bulk_transport(struct us_data *us, int direction, in sddr55_bulk_transport() argument 112 struct sddr55_card_info *info = (struct sddr55_card_info *)us->extra; in sddr55_bulk_transport() 114 us->recv_bulk_pipe : us->send_bulk_pipe; in sddr55_bulk_transport() 119 return usb_stor_bulk_transfer_buf(us, pipe, data, len, NULL); in sddr55_bulk_transport() 127 static int sddr55_status(struct us_data *us) in sddr55_status() argument 130 unsigned char *command = us->iobuf; in sddr55_status() 131 unsigned char *status = us->iobuf; in sddr55_status() 132 struct sddr55_card_info *info = (struct sddr55_card_info *)us->extra; in sddr55_status() 138 result = sddr55_bulk_transport(us, in sddr55_status() 141 usb_stor_dbg(us, "Result for send_command in status %d\n", result); in sddr55_status() [all …]
|
D | initializers.c | 34 int usb_stor_euscsi_init(struct us_data *us) in usb_stor_euscsi_init() argument 38 usb_stor_dbg(us, "Attempting to init eUSCSI bridge...\n"); in usb_stor_euscsi_init() 39 result = usb_stor_control_msg(us, us->send_ctrl_pipe, in usb_stor_euscsi_init() 42 usb_stor_dbg(us, "-- result is %d\n", result); in usb_stor_euscsi_init() 51 int usb_stor_ucr61s2b_init(struct us_data *us) in usb_stor_ucr61s2b_init() argument 53 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap*) us->iobuf; in usb_stor_ucr61s2b_init() 54 struct bulk_cs_wrap *bcs = (struct bulk_cs_wrap*) us->iobuf; in usb_stor_ucr61s2b_init() 59 usb_stor_dbg(us, "Sending UCR-61S2B initialization packet...\n"); in usb_stor_ucr61s2b_init() 69 res = usb_stor_bulk_transfer_buf(us, us->send_bulk_pipe, bcb, in usb_stor_ucr61s2b_init() 74 usb_stor_dbg(us, "Getting status packet...\n"); in usb_stor_ucr61s2b_init() [all …]
|
D | sierra_ms.c | 127 int sierra_ms_init(struct us_data *us) in sierra_ms_init() argument 135 udev = us->pusb_dev; in sierra_ms_init() 139 usb_stor_dbg(us, "SWIMS: Forcing Modem Mode\n"); in sierra_ms_init() 142 usb_stor_dbg(us, "SWIMS: Failed to switch to modem mode\n"); in sierra_ms_init() 147 usb_stor_dbg(us, "SWIMS: Forcing Mass Storage Mode\n"); in sierra_ms_init() 152 usb_stor_dbg(us, "SWIMS: Normal SWoC Logic\n"); in sierra_ms_init() 164 usb_stor_dbg(us, "SWIMS: Failed SWoC query\n"); in sierra_ms_init() 170 usb_stor_dbg(us, "SWIMS: Completely failed SWoC query\n"); in sierra_ms_init() 175 debug_swoc(&us->pusb_dev->dev, swocInfo); in sierra_ms_init() 182 usb_stor_dbg(us, "SWIMS: Switching to Modem Mode\n"); in sierra_ms_init() [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() argument 46 #define usb_stor_dbg(us, fmt, ...) \ argument 47 do { if (0) _usb_stor_dbg(us, fmt, ##__VA_ARGS__); } while (0)
|
D | transport.h | 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, 80 extern int usb_stor_bulk_transfer_buf(struct us_data *us, unsigned int pipe, 82 extern int usb_stor_bulk_transfer_sg(struct us_data *us, unsigned int pipe, 84 extern int usb_stor_bulk_srb(struct us_data* us, unsigned int pipe, 87 extern int usb_stor_port_reset(struct us_data *us);
|
D | cypress_atacb.c | 73 static void cypress_atacb_passthrough(struct scsi_cmnd *srb, struct us_data *us) in cypress_atacb_passthrough() argument 78 usb_stor_transparent_scsi_command(srb, us); in cypress_atacb_passthrough() 148 usb_stor_transparent_scsi_command(srb, us); in cypress_atacb_passthrough() 154 usb_stor_dbg(us, "cypress atacb not supported ???\n"); in cypress_atacb_passthrough() 183 usb_stor_transparent_scsi_command(srb, us); in cypress_atacb_passthrough() 244 struct us_data *us; in cypress_probe() local 248 result = usb_stor_probe1(&us, intf, id, in cypress_probe() 262 us->protocol_name = "Transparent SCSI with Cypress ATACB"; in cypress_probe() 263 us->proto_handler = cypress_atacb_passthrough; in cypress_probe() 265 us->protocol_name = "Transparent SCSI"; in cypress_probe() [all …]
|
D | debug.c | 42 void usb_stor_show_command(const struct us_data *us, struct scsi_cmnd *srb) in usb_stor_show_command() argument 139 usb_stor_dbg(us, "Command %s (%d bytes)\n", what, srb->cmd_len); in usb_stor_show_command() 140 usb_stor_dbg(us, "bytes: %*ph\n", min_t(int, srb->cmd_len, 16), in usb_stor_show_command() 144 void usb_stor_show_sense(const struct us_data *us, in usb_stor_show_sense() argument 160 usb_stor_dbg(us, "%s: %s (%s%x)\n", keystr, what, fmt, ascq); in usb_stor_show_sense() 162 usb_stor_dbg(us, "%s: %s\n", keystr, what); in usb_stor_show_sense() 165 void usb_stor_dbg(const struct us_data *us, const char *fmt, ...) in usb_stor_dbg() argument 171 dev_vprintk_emit(LOGLEVEL_DEBUG, &us->pusb_dev->dev, fmt, args); in usb_stor_dbg()
|
/Linux-v5.10/Documentation/fb/ |
D | viafb.modes | 15 # Sync Width 3.813 us 0.064 ms 17 # Front Porch 0.636 us 0.318 ms 19 # Back Porch 1.907 us 1.048 ms 21 # Active Time 25.422 us 15.253 ms 23 # Blank Time 6.356 us 1.430 ms 40 # Sync Width 2.032 us 0.080 ms 42 # Front Porch 0.508 us 0.027 ms 44 # Back Porch 3.810 us 0.427 ms 46 # Active Time 20.317 us 12.800 ms 48 # Blank Time 6.349 us 0.533 ms [all …]
|
/Linux-v5.10/Documentation/trace/ |
D | ftrace.rst | 896 # latency: 259 us, #4/4, CPU#2 | (M:preempt VP:0, KP:0, SP:0 HP:0 #P:4) 912 ps-6143 2d... 0us!: trace_hardirqs_off <-__lock_task_sighand 913 ps-6143 2d..1 259us+: trace_hardirqs_on <-_raw_spin_unlock_irqrestore 914 ps-6143 2d..1 263us+: time_hardirqs_on <-_raw_spin_unlock_irqrestore 915 ps-6143 2d..1 306us : <stack trace> 931 (3.8). Then it displays the max latency in microseconds (259 us). The number 1362 # latency: 16 us, #4/4, CPU#0 | (M:preempt VP:0, KP:0, SP:0 HP:0 #P:4) 1378 <idle>-0 0d.s2 0us+: _raw_spin_lock_irq <-run_timer_softirq 1379 <idle>-0 0dNs3 17us : _raw_spin_unlock_irq <-run_timer_softirq 1380 <idle>-0 0dNs3 17us+: trace_hardirqs_on <-run_timer_softirq [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/regulator/ |
D | max8952.txt | 20 - 0: 32mV/us 21 - 1: 16mV/us 22 - 2: 8mV/us 23 - 3: 4mV/us 24 - 4: 2mV/us 25 - 5: 1mV/us 26 - 6: 0.5mV/us 27 - 7: 0.25mV/us 28 Defaults to 32mV/us if not specified.
|
/Linux-v5.10/drivers/iio/gyro/ |
D | adxrs450.c | 74 struct spi_device *us; member 115 ret = spi_sync_transfer(st->us, xfers, ARRAY_SIZE(xfers)); in adxrs450_spi_read_reg_16() 117 dev_err(&st->us->dev, "problem while reading 16 bit register 0x%02x\n", in adxrs450_spi_read_reg_16() 151 ret = spi_write(st->us, &st->tx, sizeof(st->tx)); in adxrs450_spi_write_reg_16() 153 dev_err(&st->us->dev, "problem while writing 16 bit register 0x%02x\n", in adxrs450_spi_write_reg_16() 185 ret = spi_sync_transfer(st->us, xfers, ARRAY_SIZE(xfers)); in adxrs450_spi_sensor_data() 187 dev_err(&st->us->dev, "Problem while reading sensor data\n"); in adxrs450_spi_sensor_data() 221 ret = spi_sync_transfer(st->us, &xfers, 1); in adxrs450_spi_initial() 223 dev_err(&st->us->dev, "Problem while reading initializing data\n"); in adxrs450_spi_initial() 247 dev_warn(&st->us->dev, "The initial power on response is not correct! Restart without reset?\n"); in adxrs450_initial_setup() [all …]
|