Home
last modified time | relevance | path

Searched refs:us (Results 1 – 25 of 1092) sorted by relevance

12345678910>>...44

/linux-5.19.10/drivers/usb/storage/
Dtransport.c115 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 …]
Dusb.c171 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 …]
Dscsiglue.c64 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 …]
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);
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 …]
Dalauda.c114 #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 …]
Dfreecom.c35 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 …]
Disd200.c58 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 …]
Drealtek_cr.c100 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 …]
Djumpshot.c105 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 …]
Dsddr09.c52 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 …]
Ddatafab.c70 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 …]
Dkarma.c42 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 …]
Doption_ms.c29 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 …]
Dene_ub6250.c477 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() argument
492 struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap *) us->iobuf; in ene_send_scsi_cmd()
493 struct bulk_cs_wrap *bcs = (struct bulk_cs_wrap *) us->iobuf; in ene_send_scsi_cmd()
502 result = usb_stor_bulk_transfer_buf(us, us->send_bulk_pipe, in ene_send_scsi_cmd()
505 usb_stor_dbg(us, "send cmd to out endpoint fail ---\n"); in ene_send_scsi_cmd()
513 pipe = us->recv_bulk_pipe; in ene_send_scsi_cmd()
515 pipe = us->send_bulk_pipe; in ene_send_scsi_cmd()
[all …]
Dsddr55.c110 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 …]
Dinitializers.c34 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 …]
Dsierra_ms.c127 int sierra_ms_init(struct us_data *us) in sierra_ms_init() argument
133 udev = us->pusb_dev; in sierra_ms_init()
137 usb_stor_dbg(us, "SWIMS: Forcing Modem Mode\n"); in sierra_ms_init()
140 usb_stor_dbg(us, "SWIMS: Failed to switch to modem mode\n"); in sierra_ms_init()
145 usb_stor_dbg(us, "SWIMS: Forcing Mass Storage Mode\n"); in sierra_ms_init()
150 usb_stor_dbg(us, "SWIMS: Normal SWoC Logic\n"); in sierra_ms_init()
162 usb_stor_dbg(us, "SWIMS: Failed SWoC query\n"); in sierra_ms_init()
168 usb_stor_dbg(us, "SWIMS: Completely failed SWoC query\n"); in sierra_ms_init()
173 debug_swoc(&us->pusb_dev->dev, swocInfo); in sierra_ms_init()
180 usb_stor_dbg(us, "SWIMS: Switching to Modem Mode\n"); in sierra_ms_init()
[all …]
Ddebug.h33 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)
Dtransport.h72 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);
/linux-5.19.10/Documentation/fb/
Dviafb.modes15 # 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-5.19.10/Documentation/tools/rtla/
Dcommon_timerlat_options.rst1 **-a**, **--auto** *us*
4 while debugging the system. It is equivalent to use **-T** *us* **-s** *us*
8 **-p**, **--period** *us*
12 **-i**, **--irq** *us*
14 Stop trace if the *IRQ* latency is higher than the argument in us.
16 **-T**, **--thread** *us*
18 Stop trace if the *Thread* latency is higher than the argument in us.
20 **-s**, **--stack** *us*
23 argument in us.
25 **--dma-latency** *us*
[all …]
Dcommon_osnoise_options.rst1 **-a**, **--auto** *us*
4 while debugging the system. It is equivalent to use **-s** *us* **-T 1 -t**.
6 **-p**, **--period** *us*
10 **-r**, **--runtime** *us*
14 **-s**, **--stop** *us*
19 **-S**, **--stop-total** *us*
24 **-T**, **--threshold** *us*
27 The default threshold is *5 us*.
/linux-5.19.10/Documentation/devicetree/bindings/cpu/
Didle-states.yaml332 entry-latency-us:
336 exit-latency-us:
339 The exit-latency-us duration may be guaranteed only after
340 entry-latency-us has passed.
342 min-residency-us:
348 wakeup-latency-us:
354 entry-latency-us + exit-latency-us
358 systems entry-latency-us + exit-latency-us will exceed
359 wakeup-latency-us by this duration.
370 - entry-latency-us
[all …]
/linux-5.19.10/Documentation/devicetree/bindings/power/
Ddomain-idle-state.yaml30 entry-latency-us:
33 state. Note that, the exit-latency-us duration may be guaranteed only
34 after the entry-latency-us has passed.
36 exit-latency-us:
41 min-residency-us:
49 - entry-latency-us
50 - exit-latency-us
51 - min-residency-us
61 entry-latency-us = <20>;
62 exit-latency-us = <40>;
[all …]
/linux-5.19.10/Documentation/trace/
Dftrace.rst908 # latency: 259 us, #4/4, CPU#2 | (M:preempt VP:0, KP:0, SP:0 HP:0 #P:4)
924 ps-6143 2d... 0us!: trace_hardirqs_off <-__lock_task_sighand
925 ps-6143 2d..1 259us+: trace_hardirqs_on <-_raw_spin_unlock_irqrestore
926 ps-6143 2d..1 263us+: time_hardirqs_on <-_raw_spin_unlock_irqrestore
927 ps-6143 2d..1 306us : <stack trace>
943 (3.8). Then it displays the max latency in microseconds (259 us). The number
1380 # latency: 16 us, #4/4, CPU#0 | (M:preempt VP:0, KP:0, SP:0 HP:0 #P:4)
1396 <idle>-0 0d.s2 0us+: _raw_spin_lock_irq <-run_timer_softirq
1397 <idle>-0 0dNs3 17us : _raw_spin_unlock_irq <-run_timer_softirq
1398 <idle>-0 0dNs3 17us+: trace_hardirqs_on <-run_timer_softirq
[all …]

12345678910>>...44