Home
last modified time | relevance | path

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

12345678

/openbmc/linux/drivers/usb/common/
H A Ddebug.c24 wIndex, wLength); in usb_decode_get_status()
28 wIndex & ~USB_DIR_IN, in usb_decode_get_status()
56 switch (wIndex) { in usb_decode_test_mode()
94 wIndex & ~USB_DIR_IN, in usb_decode_set_clear_feature()
184 wIndex, wLength); in usb_decode_get_intf()
191 wIndex, wValue); in usb_decode_set_intf()
198 wIndex, wLength); in usb_decode_synch_frame()
241 wIndex, str, size); in usb_decode_ctrl_standard()
274 wValue, wIndex, wLength); in usb_decode_ctrl_standard()
307 wValue, wIndex, wLength); in usb_decode_ctrl()
[all …]
/openbmc/linux/drivers/usb/host/
H A Dehci-hub.c736 u16 wIndex, in ehci_hub_control() argument
779 if (!wIndex || wIndex > ports) in ehci_hub_control()
781 wIndex--; in ehci_hub_control()
867 if (!wIndex || wIndex > ports) in ehci_hub_control()
869 wIndex--; in ehci_hub_control()
883 wIndex + 1, temp); in ehci_hub_control()
1033 wIndex &= 0xff; in ehci_hub_control()
1043 if (!wIndex || wIndex > ports) in ehci_hub_control()
1045 wIndex--; in ehci_hub_control()
1105 wIndex + 1); in ehci_hub_control()
[all …]
H A Dohci-s3c2410.c164 u16 wIndex, in ohci_s3c2410_hub_control() argument
182 wIndex, buf, wLength); in ohci_s3c2410_hub_control()
203 if (valid_port(wIndex)) { in ohci_s3c2410_hub_control()
204 info->port[wIndex-1].oc_changed = 0; in ohci_s3c2410_hub_control()
205 info->port[wIndex-1].oc_status = 0; in ohci_s3c2410_hub_control()
214 if (valid_port(wIndex)) in ohci_s3c2410_hub_control()
215 info->port[wIndex-1].oc_status = 0; in ohci_s3c2410_hub_control()
223 if (valid_port(wIndex)) { in ohci_s3c2410_hub_control()
273 if (valid_port(wIndex)) { in ohci_s3c2410_hub_control()
274 if (info->port[wIndex-1].oc_changed) in ohci_s3c2410_hub_control()
[all …]
H A Dohci-at91.c352 u16 wIndex, char *buf, u16 wLength) in ohci_at91_hub_control() argument
364 wIndex--; in ohci_at91_hub_control()
371 if (valid_port(wIndex)) { in ohci_at91_hub_control()
380 if (valid_port(wIndex)) { in ohci_at91_hub_control()
394 if (valid_port(wIndex)) { in ohci_at91_hub_control()
396 pdata->overcurrent_status[wIndex] = 0; in ohci_at91_hub_control()
405 if (valid_port(wIndex)) in ohci_at91_hub_control()
414 if (valid_port(wIndex)) { in ohci_at91_hub_control()
422 if (valid_port(wIndex)) { in ohci_at91_hub_control()
469 if (valid_port(wIndex)) { in ohci_at91_hub_control()
[all …]
H A Dxhci-hub.c710 u16 test_mode, u16 wIndex) in xhci_port_set_test_mode() argument
763 test_mode, wIndex + 1); in xhci_enter_test_mode()
906 u16 wIndex) in xhci_del_comp_mod_timer() argument
934 u32 wIndex; in xhci_handle_usb2_port_link_resume() local
939 wIndex = port->hcd_portnum; in xhci_handle_usb2_port_link_resume()
990 wIndex + 1); in xhci_handle_usb2_port_link_resume()
1220 portnum1 = wIndex & 0xff; in xhci_hub_control()
1257 wIndex--; in xhci_hub_control()
1299 wIndex &= 0xff; in xhci_hub_control()
1304 wIndex--; in xhci_hub_control()
[all …]
H A Dxen-hcd.c442 if (!wIndex || wIndex > ports) in xenhcd_hub_control()
471 if (!wIndex || wIndex > ports) in xenhcd_hub_control()
474 wIndex--; in xenhcd_hub_control()
477 if (info->ports[wIndex].resuming && in xenhcd_hub_control()
479 info->ports[wIndex].status |= in xenhcd_hub_control()
487 info->ports[wIndex].status |= in xenhcd_hub_control()
493 info->ports[wIndex].status |= in xenhcd_hub_control()
495 info->devices[wIndex].status = in xenhcd_hub_control()
501 info->ports[wIndex].status |= in xenhcd_hub_control()
505 info->ports[wIndex].status |= in xenhcd_hub_control()
[all …]
H A Dohci-da8xx.c35 u16 wValue, u16 wIndex, char *buf, u16 wLength);
302 u16 wIndex, char *buf, u16 wLength) in ohci_da8xx_hub_control() argument
310 if (wIndex != 1) in ohci_da8xx_hub_control()
313 dev_dbg(dev, "GetPortStatus(%u)\n", wIndex); in ohci_da8xx_hub_control()
326 if (ocic_mask & (1 << wIndex)) in ohci_da8xx_hub_control()
339 if (wIndex != 1) in ohci_da8xx_hub_control()
345 temp ? "Set" : "Clear", wIndex, "POWER"); in ohci_da8xx_hub_control()
350 temp ? "Set" : "Clear", wIndex, in ohci_da8xx_hub_control()
354 ocic_mask |= 1 << wIndex; in ohci_da8xx_hub_control()
356 ocic_mask &= ~(1 << wIndex); in ohci_da8xx_hub_control()
[all …]
H A Dohci-hub.c680 u16 wIndex, in ohci_hub_control() argument
706 if (!wIndex || wIndex > ports) in ohci_hub_control()
708 wIndex--; in ohci_hub_control()
750 if (!wIndex || wIndex > ports) in ohci_hub_control()
752 wIndex--; in ohci_hub_control()
753 temp = roothub_portstatus (ohci, wIndex); in ohci_hub_control()
757 dbg_port(ohci, "GetStatus", wIndex, temp); in ohci_hub_control()
770 if (!wIndex || wIndex > ports) in ohci_hub_control()
772 wIndex--; in ohci_hub_control()
776 if (hcd->self.otg_port == (wIndex + 1) in ohci_hub_control()
[all …]
H A Dehci-brcm.c56 u16 wIndex, in ehci_brcm_hub_control() argument
67 temp = (wIndex & 0xff) - 1; in ehci_brcm_hub_control()
77 (wIndex && wIndex <= ports) && in ehci_brcm_hub_control()
78 ehci->reset_done[wIndex-1] && in ehci_brcm_hub_control()
79 time_after_eq(jiffies, ehci->reset_done[wIndex-1]) && in ehci_brcm_hub_control()
91 retval = ehci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in ehci_brcm_hub_control()
/openbmc/linux/drivers/usb/gadget/udc/aspeed-vhub/
H A Dhub.c169 u16 wIndex, u16 wValue) in ast_vhub_hub_dev_status() argument
192 u16 wIndex, u16 wValue) in ast_vhub_hub_ep_status() argument
197 ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_hub_ep_status()
211 u16 wIndex, u16 wValue, in ast_vhub_hub_dev_feature() argument
239 u16 wIndex, u16 wValue, in ast_vhub_hub_ep_feature() argument
404 u16 wValue, wIndex, wLength; in ast_vhub_std_hub_request() local
407 wIndex = le16_to_cpu(crq->wIndex); in ast_vhub_std_hub_request()
465 wIndex, wLength); in ast_vhub_std_hub_request()
473 if (wValue != 0 || wIndex != 0) in ast_vhub_std_hub_request()
768 u16 wValue, wIndex, wLength; in ast_vhub_class_hub_request() local
[all …]
H A Ddev.c109 u16 wIndex, u16 wValue, in ast_vhub_dev_feature() argument
135 u16 wIndex, u16 wValue, bool is_set) in ast_vhub_ep_feature() argument
140 ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_ep_feature()
155 ep->epn.is_in != !!(wIndex & USB_DIR_IN)) in ast_vhub_ep_feature()
167 u16 wIndex, u16 wValue) in ast_vhub_dev_status() argument
181 u16 wIndex, u16 wValue) in ast_vhub_ep_status() argument
183 int ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_ep_status()
196 ep->epn.is_in != !!(wIndex & USB_DIR_IN)) in ast_vhub_ep_status()
221 u16 wValue, wIndex; in ast_vhub_std_dev_request() local
247 wIndex = le16_to_cpu(crq->wIndex); in ast_vhub_std_dev_request()
[all …]
/openbmc/linux/drivers/usb/cdns3/
H A Dcdnsp-ep0.c135 static int cdnsp_w_index_to_ep_index(u16 wIndex) in cdnsp_w_index_to_ep_index() argument
137 if (!(wIndex & USB_ENDPOINT_NUMBER_MASK)) in cdnsp_w_index_to_ep_index()
140 return ((wIndex & USB_ENDPOINT_NUMBER_MASK) * 2) + in cdnsp_w_index_to_ep_index()
141 (wIndex & USB_ENDPOINT_DIR_MASK ? 1 : 0) - 1; in cdnsp_w_index_to_ep_index()
172 ep_sts = cdnsp_w_index_to_ep_index(le16_to_cpu(ctrl->wIndex)); in cdnsp_ep0_handle_status()
238 tmode = le16_to_cpu(ctrl->wIndex); in cdnsp_ep0_handle_feature_device()
267 u16 wValue, wIndex; in cdnsp_ep0_handle_feature_intf() local
271 wIndex = le16_to_cpu(ctrl->wIndex); in cdnsp_ep0_handle_feature_intf()
283 if (wIndex & USB_INTRF_FUNC_SUSPEND_RW) in cdnsp_ep0_handle_feature_intf()
305 pep = &pdev->eps[cdnsp_w_index_to_ep_index(le16_to_cpu(ctrl->wIndex))]; in cdnsp_ep0_handle_feature_endpoint()
[all …]
/openbmc/linux/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()
/openbmc/linux/drivers/usb/musb/
H A Dmusb_virthub.c264 u16 wIndex, in musb_hub_control() argument
297 if ((wIndex & 0xff) != 1) in musb_hub_control()
346 if (wIndex != 1) in musb_hub_control()
357 if ((wIndex & 0xff) != 1) in musb_hub_control()
385 wIndex >>= 8; in musb_hub_control()
386 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()
/openbmc/linux/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()
235 u16 wValue, wIndex; in flexcop_usb_i2c_req() local
265 wIndex = (chipaddr << 8 ) | addr; in flexcop_usb_i2c_req()
270 wIndex & 0xff, wIndex >> 8); in flexcop_usb_i2c_req()
281 wIndex, in flexcop_usb_i2c_req()
/openbmc/linux/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()
435 pr_err("invalid port number %d\n", wIndex); in vhci_hub_control()
[all …]
/openbmc/linux/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()
/openbmc/linux/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()
/openbmc/linux/drivers/usb/dwc3/
H A Dep0.c379 dep = dwc3_wIndex_to_dep(dwc, ctrl->wIndex); in dwc3_ep0_handle_status()
450 u32 wIndex, int set) in dwc3_ep0_handle_test() argument
452 if ((wIndex & 0xff) != 0) in dwc3_ep0_handle_test()
457 switch (wIndex >> 8) { in dwc3_ep0_handle_test()
463 dwc->test_mode_nr = wIndex >> 8; in dwc3_ep0_handle_test()
478 u32 wIndex; in dwc3_ep0_handle_device() local
482 wIndex = le16_to_cpu(ctrl->wIndex); in dwc3_ep0_handle_device()
545 dep = dwc3_wIndex_to_dep(dwc, ctrl->wIndex); in dwc3_ep0_handle_endpoint()
772 u16 wIndex; in dwc3_ep0_set_isoch_delay() local
776 wIndex = le16_to_cpu(ctrl->wIndex); in dwc3_ep0_set_isoch_delay()
[all …]
/openbmc/u-boot/drivers/usb/dwc3/
H A Dep0.c363 dep = dwc3_wIndex_to_dep(dwc, ctrl->wIndex); in dwc3_ep0_handle_status()
392 u32 wIndex; in dwc3_ep0_handle_feature() local
398 wIndex = le16_to_cpu(ctrl->wIndex); in dwc3_ep0_handle_feature()
444 if ((wIndex & 0xff) != 0) in dwc3_ep0_handle_feature()
449 dwc->test_mode_nr = wIndex >> 8; in dwc3_ep0_handle_feature()
460 if (wIndex & USB_INTRF_FUNC_SUSPEND_LP) in dwc3_ep0_handle_feature()
463 if (wIndex & USB_INTRF_FUNC_SUSPEND_RW) in dwc3_ep0_handle_feature()
475 dep = dwc3_wIndex_to_dep(dwc, wIndex); in dwc3_ep0_handle_feature()
672 u16 wIndex; in dwc3_ep0_set_isoch_delay() local
676 wIndex = le16_to_cpu(ctrl->wIndex); in dwc3_ep0_set_isoch_delay()
[all …]
/openbmc/u-boot/drivers/usb/gadget/
H A Dep0.c269 le16_to_cpu (urb->device_request.wIndex); in ep0_get_descriptor()
298 le16_to_cpu (urb->device_request.wIndex); in ep0_get_descriptor()
403 le16_to_cpu (request->wValue), le16_to_cpu (request->wIndex), in ep0_recv_setup()
476 return ep0_get_status (device, urb, request->wIndex, in ep0_recv_setup()
581 device->interface = le16_to_cpu (request->wIndex); in ep0_recv_setup()
/openbmc/linux/drivers/usb/gadget/udc/cdns2/
H A Dcdns2-ep0.c23 static int cdns2_w_index_to_ep_index(u16 wIndex) in cdns2_w_index_to_ep_index() argument
25 if (!(wIndex & USB_ENDPOINT_NUMBER_MASK)) in cdns2_w_index_to_ep_index()
28 return ((wIndex & USB_ENDPOINT_NUMBER_MASK) * 2) + in cdns2_w_index_to_ep_index()
29 (wIndex & USB_ENDPOINT_DIR_MASK ? 1 : 0) - 1; in cdns2_w_index_to_ep_index()
192 ep_sts = cdns2_w_index_to_ep_index(le16_to_cpu(ctrl->wIndex)); in cdns2_req_ep0_handle_status()
232 tmode = le16_to_cpu(ctrl->wIndex); in cdns2_ep0_handle_feature_device()
290 pep = &pdev->eps[cdns2_w_index_to_ep_index(le16_to_cpu(ctrl->wIndex))]; in cdns2_ep0_handle_feature_endpoint()
295 if (!(le16_to_cpu(ctrl->wIndex) & ~USB_DIR_IN)) in cdns2_ep0_handle_feature_endpoint()
/openbmc/linux/drivers/usb/chipidea/
H A Dhost.c244 u16 wIndex, in ci_ehci_hub_control() argument
259 port_index = wIndex & 0xff; in ci_ehci_hub_control()
266 retval = ci->platdata->hub_control(ci, typeReq, wValue, wIndex, in ci_ehci_hub_control()
273 if (!wIndex || wIndex > ports) { in ci_ehci_hub_control()
324 return ehci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in ci_ehci_hub_control()
/openbmc/u-boot/drivers/usb/musb-new/
H A Dmusb_gadget_ep0.c91 epnum = (u8) ctrlrequest->wIndex; in service_tx_status_request()
239 ctrlrequest->wIndex & 0x0f; in service_zero_data_request()
253 is_in = ctrlrequest->wIndex & USB_DIR_IN; in service_zero_data_request()
312 if (ctrlrequest->wIndex & 0xff) in service_zero_data_request()
315 switch (ctrlrequest->wIndex >> 8) { in service_zero_data_request()
404 ctrlrequest->wIndex & 0x0f; in service_zero_data_request()
417 is_in = ctrlrequest->wIndex & USB_DIR_IN; in service_zero_data_request()
593 le16_to_cpu(req->wIndex), in musb_read_setup()

12345678