Home
last modified time | relevance | path

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

12345

/linux/drivers/usb/common/
H A Ddebug.c14 static void usb_decode_get_status(__u8 bRequestType, __u16 wIndex, in usb_decode_get_status() argument
24 wIndex, wLength); in usb_decode_get_status()
28 wIndex & ~USB_DIR_IN, in usb_decode_get_status()
29 wIndex & USB_DIR_IN ? "in" : "out"); in usb_decode_get_status()
54 static const char *usb_decode_test_mode(u16 wIndex) in usb_decode_test_mode() argument
56 switch (wIndex) { in usb_decode_test_mode()
74 __u16 wIndex, char *str, size_t size) in usb_decode_set_clear_feature() argument
82 usb_decode_test_mode(wIndex) : ""); in usb_decode_set_clear_feature()
94 wIndex & ~USB_DIR_IN, in usb_decode_set_clear_feature()
95 wIndex & USB_DIR_IN ? "in" : "out"); in usb_decode_set_clear_feature()
[all …]
/linux/drivers/usb/host/
H A Dehci-hub.c736 u16 wIndex, in ehci_hub_control() argument
753 temp = (wIndex - 1) & 0xff; in ehci_hub_control()
779 if (!wIndex || wIndex > ports) in ehci_hub_control()
781 wIndex--; in ehci_hub_control()
805 if ((hcd->self.otg_port == (wIndex + 1)) in ehci_hub_control()
828 ehci->reset_done[wIndex] = jiffies in ehci_hub_control()
830 set_bit(wIndex, &ehci->resuming_ports); in ehci_hub_control()
831 usb_hcd_start_port_resume(&hcd->self, wIndex); in ehci_hub_control()
834 clear_bit(wIndex, &ehci->port_c_suspend); in ehci_hub_control()
839 ehci_port_power(ehci, wIndex, false); in ehci_hub_control()
[all …]
H A Dohci-at91.c352 u16 wIndex, char *buf, u16 wLength) in ohci_at91_hub_control() argument
362 hcd, typeReq, wValue, wIndex, buf, wLength); in ohci_at91_hub_control()
364 wIndex--; in ohci_at91_hub_control()
371 if (valid_port(wIndex)) { in ohci_at91_hub_control()
372 ohci_at91_usb_set_power(pdata, wIndex, 1); 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()
395 pdata->overcurrent_changed[wIndex] = 0; 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()
[all …]
H A Dxhci-hub.c581 u16 wIndex, struct xhci_port *port, u32 port_status) in xhci_clear_port_change_bit() argument
628 wIndex + 1, port_change_bit, port_status); in xhci_clear_port_change_bit()
679 u16 test_mode, u16 wIndex) in xhci_port_set_test_mode() argument
685 port = xhci->usb2_rhub.ports[wIndex]; in xhci_port_set_test_mode()
695 u16 test_mode, u16 wIndex, unsigned long *flags) in xhci_enter_test_mode() argument
731 test_mode, wIndex + 1); in xhci_enter_test_mode()
732 xhci_port_set_test_mode(xhci, test_mode, wIndex); in xhci_enter_test_mode()
917 u16 wIndex) in xhci_del_comp_mod_timer() argument
926 xhci->port_status_u0 |= 1 << wIndex; in xhci_del_comp_mod_timer()
944 u32 wIndex; in xhci_handle_usb2_port_link_resume() local
[all …]
H A Dxen-hcd.c427 __u16 wIndex, char *buf, __u16 wLength) in xenhcd_hub_control() argument
442 if (!wIndex || wIndex > ports) in xenhcd_hub_control()
447 xenhcd_rhport_resume(info, wIndex); in xenhcd_hub_control()
450 xenhcd_rhport_power_off(info, wIndex); in xenhcd_hub_control()
453 xenhcd_rhport_disable(info, wIndex); in xenhcd_hub_control()
456 info->ports[wIndex - 1].c_connection = false; in xenhcd_hub_control()
459 info->ports[wIndex - 1].status &= ~(1 << wValue); 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()
[all …]
H A Dohci-da8xx.c34 u16 wValue, u16 wIndex, char *buf, u16 wLength);
285 u16 wIndex, char *buf, u16 wLength) in ohci_da8xx_hub_control() argument
293 if (wIndex != 1) in ohci_da8xx_hub_control()
296 dev_dbg(dev, "GetPortStatus(%u)\n", wIndex); in ohci_da8xx_hub_control()
298 temp = roothub_portstatus(hcd_to_ohci(hcd), wIndex - 1); in ohci_da8xx_hub_control()
309 if (ocic_mask & (1 << wIndex)) in ohci_da8xx_hub_control()
322 if (wIndex != 1) in ohci_da8xx_hub_control()
328 temp ? "Set" : "Clear", wIndex, "POWER"); in ohci_da8xx_hub_control()
333 temp ? "Set" : "Clear", wIndex, in ohci_da8xx_hub_control()
337 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()
739 &ohci->regs->roothub.portstatus [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()
[all …]
H A Doxu210hp-hcd.c648 u16 typeReq, u16 wValue, u16 wIndex,
3541 u16 wValue, u16 wIndex, char *buf, u16 wLength) in oxu_hub_control() argument
3545 u32 __iomem *status_reg = &oxu->regs->port_status[wIndex - 1]; in oxu_hub_control()
3571 if (!wIndex || wIndex > ports) in oxu_hub_control()
3573 wIndex--; in oxu_hub_control()
3599 oxu->reset_done[wIndex] = jiffies in oxu_hub_control()
3634 if (!wIndex || wIndex > ports) in oxu_hub_control()
3636 wIndex--; in oxu_hub_control()
3652 if (!oxu->reset_done[wIndex]) { in oxu_hub_control()
3654 oxu->reset_done[wIndex] = jiffies in oxu_hub_control()
[all …]
H A Disp1362-hcd.c1564 u16 wIndex, char *buf, u16 wLength) in isp1362_hub_control() argument
1613 if (!wIndex || wIndex > ports) in isp1362_hub_control()
1615 tmp = isp1362_hcd->rhport[--wIndex]; in isp1362_hub_control()
1620 if (!wIndex || wIndex > ports) in isp1362_hub_control()
1622 wIndex--; in isp1362_hub_control()
1663 isp1362_write_reg32(isp1362_hcd, HCRHPORT1 + wIndex, tmp); in isp1362_hub_control()
1664 isp1362_hcd->rhport[wIndex] = in isp1362_hub_control()
1665 isp1362_read_reg32(isp1362_hcd, HCRHPORT1 + wIndex); in isp1362_hub_control()
1670 if (!wIndex || wIndex > ports) in isp1362_hub_control()
1672 wIndex--; in isp1362_hub_control()
[all …]
H A Duhci-hub.c244 u16 wIndex, char *buf, u16 wLength) in uhci_hub_control() argument
248 unsigned int port = wIndex - 1; in uhci_hub_control()
311 wIndex, status, lstatus); in uhci_hub_control()
/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 …]
H A Dcdns3-ep0.c253 index = cdns3_ep_addr_to_index(le16_to_cpu(ctrl->wIndex)); in cdns3_req_ep0_get_status()
257 cdns3_select_ep(priv_dev, le16_to_cpu(ctrl->wIndex)); in cdns3_req_ep0_get_status()
311 tmode = le16_to_cpu(ctrl->wIndex); in cdns3_ep0_feature_handle_device()
367 if (!(le16_to_cpu(ctrl->wIndex) & ~USB_DIR_IN)) in cdns3_ep0_feature_handle_endpoint()
370 index = cdns3_ep_addr_to_index(le16_to_cpu(ctrl->wIndex)); in cdns3_ep0_feature_handle_endpoint()
373 cdns3_select_ep(priv_dev, le16_to_cpu(ctrl->wIndex)); in cdns3_ep0_feature_handle_endpoint()
455 if (ctrl_req->wIndex || ctrl_req->wLength) in cdns3_req_ep0_set_isoch_delay()
/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()
/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()
233 u16 wValue, wIndex; in flexcop_usb_i2c_req() local
263 wIndex = (chipaddr << 8 ) | addr; in flexcop_usb_i2c_req()
268 wIndex & 0xff, wIndex >> 8); in flexcop_usb_i2c_req()
279 wIndex, in flexcop_usb_i2c_req()
/linux/drivers/usb/usbip/
H A Dvhci_hcd.c36 u16 wIndex, char *buff, u16 wLength);
317 u16 wIndex, char *buf, u16 wLength) in vhci_hub_control() argument
335 wIndex = ((__u8)(wIndex & 0x00ff)); in vhci_hub_control()
337 wIndex); in vhci_hub_control()
346 if (wIndex < 1 || wIndex > VHCI_HC_PORTS) { in vhci_hub_control()
348 if (wIndex > VHCI_HC_PORTS) in vhci_hub_control()
349 dev_err(hcd_dev(hcd), "invalid port number %d\n", wIndex); in vhci_hub_control()
351 rhport = wIndex - 1; in vhci_hub_control()
372 dev_err(hcd_dev(hcd), "invalid port number %d\n", wIndex); in vhci_hub_control()
436 usbip_dbg_vhci_rh(" GetPortStatus port %x\n", wIndex); in vhci_hub_control()
[all …]
/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()
/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()
/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()
/linux/drivers/usb/dwc3/
H A Dep0.c384 dep = dwc3_wIndex_to_dep(dwc, ctrl->wIndex); in dwc3_ep0_handle_status()
455 u32 wIndex, int set) in dwc3_ep0_handle_test() argument
457 if ((wIndex & 0xff) != 0) in dwc3_ep0_handle_test()
462 switch (wIndex >> 8) { in dwc3_ep0_handle_test()
468 dwc->test_mode_nr = wIndex >> 8; in dwc3_ep0_handle_test()
483 u32 wIndex; in dwc3_ep0_handle_device() local
487 wIndex = le16_to_cpu(ctrl->wIndex); in dwc3_ep0_handle_device()
511 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()
778 u16 wIndex; in dwc3_ep0_set_isoch_delay() local
[all …]
/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()
/linux/drivers/usb/gadget/udc/bdc/
H A Dbdc_ep.c1147 u16 wIndex, bool set) in ep0_handle_feature_dev() argument
1165 if ((wIndex & 0xFF) || in ep0_handle_feature_dev()
1169 bdc->test_mode = wIndex >> 8; in ep0_handle_feature_dev()
1235 u16 wIndex; in ep0_handle_feature() local
1239 wIndex = le16_to_cpu(setup_pkt->wIndex); in ep0_handle_feature()
1243 __func__, wValue, wIndex, state, in ep0_handle_feature()
1248 return ep0_handle_feature_dev(bdc, wValue, wIndex, set); in ep0_handle_feature()
1256 if (wIndex & USB_INTRF_FUNC_SUSPEND_RW) { in ep0_handle_feature()
1271 epnum = wIndex & USB_ENDPOINT_NUMBER_MASK; in ep0_handle_feature()
1273 if ((wIndex & USB_ENDPOINT_DIR_MASK) == USB_DIR_IN) in ep0_handle_feature()
[all …]
/linux/drivers/input/misc/
H A Dpowermate.c131 pm->configcr->wIndex = cpu_to_le16( pm->pulse_asleep ? 1 : 0 ); in powermate_sync_state()
135 pm->configcr->wIndex = cpu_to_le16( pm->pulse_awake ? 1 : 0 ); in powermate_sync_state()
167 pm->configcr->wIndex = cpu_to_le16( (arg << 8) | op ); in powermate_sync_state()
171 pm->configcr->wIndex = cpu_to_le16( pm->static_brightness ); in powermate_sync_state()
/linux/drivers/usb/renesas_usbhs/
H A Dmod_host.c1093 u16 wIndex, char *buf, u16 wLength) in __usbhsh_hub_hub_feature() argument
1110 u16 wIndex, char *buf, u16 wLength) in __usbhsh_hub_port_feature() argument
1119 if (wIndex > roothub_id || wLength != 0) in __usbhsh_hub_port_feature()
1195 u16 wIndex, char *buf, u16 wLength) in __usbhsh_hub_get_status() argument
1210 if (wIndex != roothub_id) in __usbhsh_hub_get_status()
1235 u16 wIndex, char *buf, u16 wLength) in usbhsh_hub_control() argument
1248 wValue, wIndex, buf, wLength); in usbhsh_hub_control()
1255 wValue, wIndex, buf, wLength); in usbhsh_hub_control()
1263 wValue, wIndex, buf, wLength); in usbhsh_hub_control()
/linux/include/linux/usb/
H A Dch9.h56 __u8 bRequest, __u16 wValue, __u16 wIndex,
/linux/include/linux/
H A Dusbdevice_fs.h41 u16 wIndex; member

12345