Home
last modified time | relevance | path

Searched refs:wIndex (Results 1 – 25 of 223) sorted by relevance

123456789

/OK3568_Linux_fs/kernel/drivers/usb/common/
H A Ddebug.c13 static void usb_decode_get_status(__u8 bRequestType, __u16 wIndex, in usb_decode_get_status() argument
23 wIndex, wLength); in usb_decode_get_status()
27 wIndex & ~USB_DIR_IN, in usb_decode_get_status()
28 wIndex & USB_DIR_IN ? "in" : "out"); in usb_decode_get_status()
53 static const char *usb_decode_test_mode(u16 wIndex) in usb_decode_test_mode() argument
55 switch (wIndex) { in usb_decode_test_mode()
73 __u16 wIndex, char *str, size_t size) in usb_decode_set_clear_feature() argument
81 usb_decode_test_mode(wIndex) : ""); in usb_decode_set_clear_feature()
93 wIndex & ~USB_DIR_IN, in usb_decode_set_clear_feature()
94 wIndex & USB_DIR_IN ? "in" : "out"); in usb_decode_set_clear_feature()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/host/
H A Dxhci-hub.c487 u16 wIndex, __le32 __iomem *addr, u32 port_status) in xhci_disable_port() argument
506 hcd->self.busnum, wIndex + 1, port_status); in xhci_disable_port()
510 u16 wIndex, __le32 __iomem *addr, u32 port_status) in xhci_clear_port_change_bit() argument
557 wIndex + 1, port_change_bit, port_status); in xhci_clear_port_change_bit()
610 u16 test_mode, u16 wIndex) in xhci_port_set_test_mode() argument
616 port = xhci->usb2_rhub.ports[wIndex]; in xhci_port_set_test_mode()
626 u16 test_mode, u16 wIndex, unsigned long *flags) in xhci_enter_test_mode() argument
663 test_mode, wIndex + 1); in xhci_enter_test_mode()
664 xhci_port_set_test_mode(xhci, test_mode, wIndex); in xhci_enter_test_mode()
806 u16 wIndex) in xhci_del_comp_mod_timer() argument
[all …]
H A Dehci-hub.c830 dr->wIndex = 0; in ehset_single_step_set_feature()
874 u16 wIndex, in ehci_hub_control() argument
891 temp = wIndex & 0xff; in ehci_hub_control()
916 if (!wIndex || wIndex > ports) in ehci_hub_control()
918 wIndex--; in ehci_hub_control()
942 if ((hcd->self.otg_port == (wIndex + 1)) in ehci_hub_control()
965 ehci->reset_done[wIndex] = jiffies in ehci_hub_control()
967 set_bit(wIndex, &ehci->resuming_ports); in ehci_hub_control()
968 usb_hcd_start_port_resume(&hcd->self, wIndex); in ehci_hub_control()
971 clear_bit(wIndex, &ehci->port_c_suspend); in ehci_hub_control()
[all …]
H A Dohci-s3c2410.c166 u16 wIndex, in ohci_s3c2410_hub_control() argument
177 hcd, typeReq, wValue, wIndex, buf, wLength); in ohci_s3c2410_hub_control()
184 wIndex, buf, wLength); in ohci_s3c2410_hub_control()
194 s3c2410_usb_set_power(info, wIndex, 1); in ohci_s3c2410_hub_control()
205 if (valid_port(wIndex)) { in ohci_s3c2410_hub_control()
206 info->port[wIndex-1].oc_changed = 0; in ohci_s3c2410_hub_control()
207 info->port[wIndex-1].oc_status = 0; in ohci_s3c2410_hub_control()
216 if (valid_port(wIndex)) in ohci_s3c2410_hub_control()
217 info->port[wIndex-1].oc_status = 0; in ohci_s3c2410_hub_control()
225 if (valid_port(wIndex)) { in ohci_s3c2410_hub_control()
[all …]
H A Dohci-at91.c327 u16 wIndex, char *buf, u16 wLength) in ohci_at91_hub_control() argument
337 hcd, typeReq, wValue, wIndex, buf, wLength); in ohci_at91_hub_control()
339 wIndex--; in ohci_at91_hub_control()
346 if (valid_port(wIndex)) { in ohci_at91_hub_control()
347 ohci_at91_usb_set_power(pdata, wIndex, 1); in ohci_at91_hub_control()
355 if (valid_port(wIndex) && ohci_at91->sfr_regmap) { in ohci_at91_hub_control()
370 if (valid_port(wIndex)) { in ohci_at91_hub_control()
371 pdata->overcurrent_changed[wIndex] = 0; in ohci_at91_hub_control()
372 pdata->overcurrent_status[wIndex] = 0; in ohci_at91_hub_control()
381 if (valid_port(wIndex)) in ohci_at91_hub_control()
[all …]
H A Dohci-da8xx.c34 u16 wValue, u16 wIndex, char *buf, u16 wLength);
301 u16 wIndex, char *buf, u16 wLength) in ohci_da8xx_hub_control() argument
309 if (wIndex != 1) in ohci_da8xx_hub_control()
312 dev_dbg(dev, "GetPortStatus(%u)\n", wIndex); in ohci_da8xx_hub_control()
314 temp = roothub_portstatus(hcd_to_ohci(hcd), wIndex - 1); in ohci_da8xx_hub_control()
325 if (ocic_mask & (1 << wIndex)) in ohci_da8xx_hub_control()
338 if (wIndex != 1) in ohci_da8xx_hub_control()
344 temp ? "Set" : "Clear", wIndex, "POWER"); in ohci_da8xx_hub_control()
349 temp ? "Set" : "Clear", wIndex, in ohci_da8xx_hub_control()
353 ocic_mask |= 1 << wIndex; in ohci_da8xx_hub_control()
[all …]
H A Dohci-hub.c677 u16 wIndex, in ohci_hub_control() argument
702 if (!wIndex || wIndex > ports) in ohci_hub_control()
704 wIndex--; in ohci_hub_control()
735 &ohci->regs->roothub.portstatus [wIndex]); in ohci_hub_control()
746 if (!wIndex || wIndex > ports) in ohci_hub_control()
748 wIndex--; in ohci_hub_control()
749 temp = roothub_portstatus (ohci, wIndex); in ohci_hub_control()
753 dbg_port(ohci, "GetStatus", wIndex, temp); in ohci_hub_control()
766 if (!wIndex || wIndex > ports) in ohci_hub_control()
768 wIndex--; in ohci_hub_control()
[all …]
H A Dehci-brcm.c56 u16 wIndex, in ehci_brcm_hub_control() argument
66 status_reg = &ehci->regs->port_status[(wIndex & 0xff) - 1]; in ehci_brcm_hub_control()
73 (wIndex && wIndex <= ports) && in ehci_brcm_hub_control()
74 ehci->reset_done[wIndex-1] && in ehci_brcm_hub_control()
75 time_after_eq(jiffies, ehci->reset_done[wIndex-1]) && in ehci_brcm_hub_control()
87 retval = ehci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in ehci_brcm_hub_control()
H A Dehci-tegra.c172 u16 wIndex, in tegra_ehci_hub_control() argument
184 status_reg = &ehci->regs->port_status[(wIndex & 0xff) - 1]; in tegra_ehci_hub_control()
216 set_bit((wIndex & 0xff) - 1, &ehci->suspended_ports); in tegra_ehci_hub_control()
248 ehci->reset_done[wIndex-1] = jiffies + msecs_to_jiffies(25); in tegra_ehci_hub_control()
253 set_bit(wIndex-1, &ehci->resuming_ports); in tegra_ehci_hub_control()
265 ehci->reset_done[wIndex-1] = 0; in tegra_ehci_hub_control()
266 clear_bit(wIndex-1, &ehci->resuming_ports); in tegra_ehci_hub_control()
275 return ehci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in tegra_ehci_hub_control()
H A Disp116x-hcd.c1005 u16 wValue, u16 wIndex, char *buf, u16 wLength) in isp116x_hub_control() argument
1052 if (!wIndex || wIndex > ports) in isp116x_hub_control()
1055 tmp = isp116x_read_reg32(isp116x, (--wIndex) ? HCRHPORT2 : HCRHPORT1); in isp116x_hub_control()
1058 DBG("GetPortStatus: port[%d] %08x\n", wIndex + 1, tmp); in isp116x_hub_control()
1062 if (!wIndex || wIndex > ports) in isp116x_hub_control()
1064 wIndex--; in isp116x_hub_control()
1103 isp116x_write_reg32(isp116x, wIndex in isp116x_hub_control()
1109 if (!wIndex || wIndex > ports) in isp116x_hub_control()
1111 wIndex--; in isp116x_hub_control()
1116 isp116x_write_reg32(isp116x, wIndex in isp116x_hub_control()
[all …]
H A Dfotg210-hcd.c1460 u16 wIndex, char *buf, u16 wLength) in fotg210_hub_control() argument
1490 if (!wIndex || wIndex > ports) in fotg210_hub_control()
1492 wIndex--; in fotg210_hub_control()
1520 fotg210->reset_done[wIndex] = jiffies in fotg210_hub_control()
1524 clear_bit(wIndex, &fotg210->port_c_suspend); in fotg210_hub_control()
1551 if (!wIndex || wIndex > ports) in fotg210_hub_control()
1553 wIndex--; in fotg210_hub_control()
1571 if (!fotg210->reset_done[wIndex]) { in fotg210_hub_control()
1573 fotg210->reset_done[wIndex] = jiffies in fotg210_hub_control()
1577 fotg210->reset_done[wIndex]); in fotg210_hub_control()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/aspeed-vhub/
H A Dhub.c163 u16 wIndex, u16 wValue) in ast_vhub_hub_dev_status() argument
186 u16 wIndex, u16 wValue) in ast_vhub_hub_ep_status() argument
191 ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_hub_ep_status()
205 u16 wIndex, u16 wValue, in ast_vhub_hub_dev_feature() argument
222 u16 wIndex, u16 wValue, in ast_vhub_hub_ep_feature() argument
228 ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_hub_ep_feature()
381 u16 wValue, wIndex, wLength; in ast_vhub_std_hub_request() local
384 wIndex = le16_to_cpu(crq->wIndex); in ast_vhub_std_hub_request()
407 return ast_vhub_hub_dev_status(ep, wIndex, wValue); in ast_vhub_std_hub_request()
411 return ast_vhub_hub_ep_status(ep, wIndex, wValue); in ast_vhub_std_hub_request()
[all …]
H A Ddev.c115 u16 wIndex, u16 wValue, in ast_vhub_dev_feature() argument
130 u16 wIndex, u16 wValue, bool is_set) in ast_vhub_ep_feature() argument
135 ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_ep_feature()
150 ep->epn.is_in != !!(wIndex & USB_DIR_IN)) in ast_vhub_ep_feature()
162 u16 wIndex, u16 wValue) in ast_vhub_dev_status() argument
176 u16 wIndex, u16 wValue) in ast_vhub_ep_status() argument
178 int ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_ep_status()
191 ep->epn.is_in != !!(wIndex & USB_DIR_IN)) in ast_vhub_ep_status()
216 u16 wValue, wIndex; in ast_vhub_std_dev_request() local
242 wIndex = le16_to_cpu(crq->wIndex); in ast_vhub_std_dev_request()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/usb/gspca/
H A Ddtcs033.c20 u16 wIndex; member
27 u16 wValue, u16 wIndex, u16 wLength) in reg_rw() argument
39 wValue, wIndex, in reg_rw()
61 preq->wValue, preq->wIndex, preq->wLength); in reg_reqs()
154 u16 wIndex = 0x0100|(0x00FF&gainVal); in dtcs033_setexposure() local
166 bRequestType, bRequest, wValue, wIndex, 0); in dtcs033_setexposure()
/OK3568_Linux_fs/kernel/drivers/usb/usbip/
H A Dvhci_hcd.c35 u16 wIndex, char *buff, u16 wLength);
316 u16 wIndex, char *buf, u16 wLength) in vhci_hub_control() argument
334 wIndex = ((__u8)(wIndex & 0x00ff)); in vhci_hub_control()
336 wIndex); in vhci_hub_control()
345 if (wIndex < 1 || wIndex > VHCI_HC_PORTS) { in vhci_hub_control()
347 if (wIndex > VHCI_HC_PORTS) in vhci_hub_control()
348 pr_err("invalid port number %d\n", wIndex); in vhci_hub_control()
350 rhport = wIndex - 1; in vhci_hub_control()
370 pr_err("invalid port number %d\n", wIndex); in vhci_hub_control()
433 usbip_dbg_vhci_rh(" GetPortStatus port %x\n", wIndex); in vhci_hub_control()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/usb/b2c2/
H A Dflexcop-usb.c113 u16 wIndex; in flexcop_usb_v8_memory_req() local
115 wIndex = page << 8; in flexcop_usb_v8_memory_req()
129 wIndex |= pbBuffer[0]; in flexcop_usb_v8_memory_req()
144 wAddress, wIndex, buflen); in flexcop_usb_v8_memory_req()
155 wIndex, in flexcop_usb_v8_memory_req()
236 u16 wValue, wIndex; in flexcop_usb_i2c_req() local
266 wIndex = (chipaddr << 8 ) | addr; in flexcop_usb_i2c_req()
271 wIndex & 0xff, wIndex >> 8); in flexcop_usb_i2c_req()
282 wIndex, in flexcop_usb_i2c_req()
/OK3568_Linux_fs/kernel/drivers/usb/musb/
H A Dmusb_virthub.c265 u16 wIndex, in musb_hub_control() argument
298 if ((wIndex & 0xff) != 1) in musb_hub_control()
347 if (wIndex != 1) in musb_hub_control()
358 if ((wIndex & 0xff) != 1) in musb_hub_control()
386 wIndex >>= 8; in musb_hub_control()
387 switch (wIndex) { in musb_hub_control()
H A Dmusb_gadget_ep0.c85 epnum = (u8) ctrlrequest->wIndex; in service_tx_status_request()
237 ctrlrequest->wIndex & 0x0f; in service_zero_data_request()
251 is_in = ctrlrequest->wIndex & USB_DIR_IN; in service_zero_data_request()
310 if (ctrlrequest->wIndex & 0xff) in service_zero_data_request()
313 switch (ctrlrequest->wIndex >> 8) { in service_zero_data_request()
398 ctrlrequest->wIndex & 0x0f; in service_zero_data_request()
411 is_in = ctrlrequest->wIndex & USB_DIR_IN; in service_zero_data_request()
589 le16_to_cpu(req->wIndex), in musb_read_setup()
/OK3568_Linux_fs/kernel/drivers/usb/dwc3/
H A Dep0.c382 dep = dwc3_wIndex_to_dep(dwc, ctrl->wIndex); in dwc3_ep0_handle_status()
453 u32 wIndex, int set) in dwc3_ep0_handle_test() argument
455 if ((wIndex & 0xff) != 0) in dwc3_ep0_handle_test()
460 switch (wIndex >> 8) { in dwc3_ep0_handle_test()
466 dwc->test_mode_nr = wIndex >> 8; in dwc3_ep0_handle_test()
481 u32 wIndex; in dwc3_ep0_handle_device() local
485 wIndex = le16_to_cpu(ctrl->wIndex); in dwc3_ep0_handle_device()
505 ret = dwc3_ep0_handle_test(dwc, state, wIndex, set); in dwc3_ep0_handle_device()
550 dep = dwc3_wIndex_to_dep(dwc, ctrl->wIndex); in dwc3_ep0_handle_endpoint()
777 u16 wIndex; in dwc3_ep0_set_isoch_delay() local
[all …]
/OK3568_Linux_fs/u-boot/drivers/usb/dwc3/
H A Dep0.c364 dep = dwc3_wIndex_to_dep(dwc, ctrl->wIndex); in dwc3_ep0_handle_status()
393 u32 wIndex; in dwc3_ep0_handle_feature() local
399 wIndex = le16_to_cpu(ctrl->wIndex); in dwc3_ep0_handle_feature()
445 if ((wIndex & 0xff) != 0) in dwc3_ep0_handle_feature()
450 dwc->test_mode_nr = wIndex >> 8; in dwc3_ep0_handle_feature()
461 if (wIndex & USB_INTRF_FUNC_SUSPEND_LP) in dwc3_ep0_handle_feature()
464 if (wIndex & USB_INTRF_FUNC_SUSPEND_RW) in dwc3_ep0_handle_feature()
476 dep = dwc3_wIndex_to_dep(dwc, wIndex); in dwc3_ep0_handle_feature()
676 u16 wIndex; in dwc3_ep0_set_isoch_delay() local
680 wIndex = le16_to_cpu(ctrl->wIndex); in dwc3_ep0_set_isoch_delay()
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/greybus/
H A Dusb.c25 __le16 wIndex; member
98 static int hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, in hub_control() argument
122 request->wIndex = cpu_to_le16(wIndex); in hub_control()
/OK3568_Linux_fs/kernel/drivers/usb/c67x00/
H A Dc67x00-hcd.c67 u16 wIndex, char *buf, u16 wLength) in c67x00_hub_control() argument
73 unsigned int port = wIndex-1; in c67x00_hub_control()
84 if (wIndex > C67X00_PORTS) in c67x00_hub_control()
125 if (wIndex > C67X00_PORTS) in c67x00_hub_control()
154 if (wIndex > C67X00_PORTS) in c67x00_hub_control()
/OK3568_Linux_fs/u-boot/drivers/usb/gadget/
H A Dep0.c270 le16_to_cpu (urb->device_request.wIndex); in ep0_get_descriptor()
299 le16_to_cpu (urb->device_request.wIndex); in ep0_get_descriptor()
404 le16_to_cpu (request->wValue), le16_to_cpu (request->wIndex), in ep0_recv_setup()
477 return ep0_get_status (device, urb, request->wIndex, in ep0_recv_setup()
582 device->interface = le16_to_cpu (request->wIndex); in ep0_recv_setup()
/OK3568_Linux_fs/kernel/drivers/usb/chipidea/
H A Dhost.c230 u16 wIndex, in ci_ehci_hub_control() argument
244 port_index = wIndex & 0xff; in ci_ehci_hub_control()
251 if (!wIndex || wIndex > ports) { in ci_ehci_hub_control()
302 return ehci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in ci_ehci_hub_control()
/OK3568_Linux_fs/u-boot/drivers/usb/musb-new/
H A Dmusb_gadget_ep0.c92 epnum = (u8) ctrlrequest->wIndex; in service_tx_status_request()
240 ctrlrequest->wIndex & 0x0f; in service_zero_data_request()
254 is_in = ctrlrequest->wIndex & USB_DIR_IN; in service_zero_data_request()
313 if (ctrlrequest->wIndex & 0xff) in service_zero_data_request()
316 switch (ctrlrequest->wIndex >> 8) { in service_zero_data_request()
405 ctrlrequest->wIndex & 0x0f; in service_zero_data_request()
418 is_in = ctrlrequest->wIndex & USB_DIR_IN; in service_zero_data_request()
594 le16_to_cpu(req->wIndex), in musb_read_setup()

123456789