Home
last modified time | relevance | path

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

123456

/drivers/usb/host/
Dxhci-hub.c473 u16 wIndex, __le32 __iomem *addr, u32 port_status) in xhci_disable_port() argument
492 wIndex, port_status); in xhci_disable_port()
496 u16 wIndex, __le32 __iomem *addr, u32 port_status) in xhci_clear_port_change_bit() argument
542 port_change_bit, wIndex, port_status); in xhci_clear_port_change_bit()
681 u16 wIndex) in xhci_del_comp_mod_timer() argument
690 xhci->port_status_u0 |= 1 << wIndex; in xhci_del_comp_mod_timer()
730 u16 wIndex, u32 raw_port_status, in xhci_get_port_status() argument
776 if (!bus_state->resume_done[wIndex]) { in xhci_get_port_status()
778 if (test_bit(wIndex, &bus_state->resuming_ports)) { in xhci_get_port_status()
792 set_bit(wIndex, &bus_state->resuming_ports); in xhci_get_port_status()
[all …]
Dehci-hub.c825 dr->wIndex = 0; in ehset_single_step_set_feature()
869 u16 wIndex, in ehci_hub_control() argument
886 temp = wIndex & 0xff; in ehci_hub_control()
911 if (!wIndex || wIndex > ports) in ehci_hub_control()
913 wIndex--; in ehci_hub_control()
937 if ((hcd->self.otg_port == (wIndex + 1)) in ehci_hub_control()
960 ehci->reset_done[wIndex] = jiffies in ehci_hub_control()
962 set_bit(wIndex, &ehci->resuming_ports); in ehci_hub_control()
963 usb_hcd_start_port_resume(&hcd->self, wIndex); in ehci_hub_control()
966 clear_bit(wIndex, &ehci->port_c_suspend); in ehci_hub_control()
[all …]
Dohci-s3c2410.c163 u16 wIndex, in ohci_s3c2410_hub_control() argument
174 hcd, typeReq, wValue, wIndex, buf, wLength); in ohci_s3c2410_hub_control()
181 wIndex, buf, wLength); in ohci_s3c2410_hub_control()
191 s3c2410_usb_set_power(info, wIndex, 1); in ohci_s3c2410_hub_control()
202 if (valid_port(wIndex)) { in ohci_s3c2410_hub_control()
203 info->port[wIndex-1].oc_changed = 0; in ohci_s3c2410_hub_control()
204 info->port[wIndex-1].oc_status = 0; in ohci_s3c2410_hub_control()
213 if (valid_port(wIndex)) in ohci_s3c2410_hub_control()
214 info->port[wIndex-1].oc_status = 0; in ohci_s3c2410_hub_control()
222 if (valid_port(wIndex)) { in ohci_s3c2410_hub_control()
[all …]
Dohci-da8xx.c171 u16 wIndex, char *buf, u16 wLength) in ohci_da8xx_hub_control() argument
180 if (wIndex != 1) in ohci_da8xx_hub_control()
183 dev_dbg(dev, "GetPortStatus(%u)\n", wIndex); in ohci_da8xx_hub_control()
185 temp = roothub_portstatus(hcd_to_ohci(hcd), wIndex - 1); in ohci_da8xx_hub_control()
188 if (hub->get_power && hub->get_power(wIndex) == 0) in ohci_da8xx_hub_control()
192 if (hub->get_oci && hub->get_oci(wIndex) > 0) in ohci_da8xx_hub_control()
196 if (ocic_mask & (1 << wIndex)) in ohci_da8xx_hub_control()
209 if (wIndex != 1) in ohci_da8xx_hub_control()
215 temp ? "Set" : "Clear", wIndex, "POWER"); in ohci_da8xx_hub_control()
220 return hub->set_power(wIndex, temp) ? -EPIPE : 0; in ohci_da8xx_hub_control()
[all …]
Dohci-at91.c336 u16 wIndex, char *buf, u16 wLength) in ohci_at91_hub_control() argument
346 hcd, typeReq, wValue, wIndex, buf, wLength); in ohci_at91_hub_control()
348 wIndex--; in ohci_at91_hub_control()
355 if (valid_port(wIndex)) { in ohci_at91_hub_control()
356 ohci_at91_usb_set_power(pdata, wIndex, 1); in ohci_at91_hub_control()
364 if (valid_port(wIndex) && ohci_at91->sfr_regmap) { in ohci_at91_hub_control()
379 if (valid_port(wIndex)) { in ohci_at91_hub_control()
380 pdata->overcurrent_changed[wIndex] = 0; in ohci_at91_hub_control()
381 pdata->overcurrent_status[wIndex] = 0; in ohci_at91_hub_control()
390 if (valid_port(wIndex)) in ohci_at91_hub_control()
[all …]
Dohci-hub.c676 u16 wIndex, in ohci_hub_control() argument
701 if (!wIndex || wIndex > ports) in ohci_hub_control()
703 wIndex--; in ohci_hub_control()
734 &ohci->regs->roothub.portstatus [wIndex]); in ohci_hub_control()
745 if (!wIndex || wIndex > ports) in ohci_hub_control()
747 wIndex--; in ohci_hub_control()
748 temp = roothub_portstatus (ohci, wIndex); in ohci_hub_control()
752 dbg_port(ohci, "GetStatus", wIndex, temp); in ohci_hub_control()
765 if (!wIndex || wIndex > ports) in ohci_hub_control()
767 wIndex--; in ohci_hub_control()
[all …]
Dehci-tegra.c198 u16 wIndex, in tegra_ehci_hub_control() argument
210 status_reg = &ehci->regs->port_status[(wIndex & 0xff) - 1]; in tegra_ehci_hub_control()
242 set_bit((wIndex & 0xff) - 1, &ehci->suspended_ports); in tegra_ehci_hub_control()
274 ehci->reset_done[wIndex-1] = jiffies + msecs_to_jiffies(25); in tegra_ehci_hub_control()
279 set_bit(wIndex-1, &ehci->resuming_ports); in tegra_ehci_hub_control()
291 ehci->reset_done[wIndex-1] = 0; in tegra_ehci_hub_control()
292 clear_bit(wIndex-1, &ehci->resuming_ports); in tegra_ehci_hub_control()
301 return ehci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in tegra_ehci_hub_control()
Disp116x-hcd.c1004 u16 wValue, u16 wIndex, char *buf, u16 wLength) in isp116x_hub_control() argument
1050 if (!wIndex || wIndex > ports) in isp116x_hub_control()
1053 tmp = isp116x_read_reg32(isp116x, (--wIndex) ? HCRHPORT2 : HCRHPORT1); in isp116x_hub_control()
1056 DBG("GetPortStatus: port[%d] %08x\n", wIndex + 1, tmp); in isp116x_hub_control()
1060 if (!wIndex || wIndex > ports) in isp116x_hub_control()
1062 wIndex--; in isp116x_hub_control()
1101 isp116x_write_reg32(isp116x, wIndex in isp116x_hub_control()
1107 if (!wIndex || wIndex > ports) in isp116x_hub_control()
1109 wIndex--; in isp116x_hub_control()
1114 isp116x_write_reg32(isp116x, wIndex in isp116x_hub_control()
[all …]
Doxu210hp-hcd.c245 u16 typeReq, u16 wValue, u16 wIndex,
3147 u16 wValue, u16 wIndex, char *buf, u16 wLength) in oxu_hub_control() argument
3151 u32 __iomem *status_reg = &oxu->regs->port_status[wIndex - 1]; in oxu_hub_control()
3177 if (!wIndex || wIndex > ports) in oxu_hub_control()
3179 wIndex--; in oxu_hub_control()
3205 oxu->reset_done[wIndex] = jiffies in oxu_hub_control()
3240 if (!wIndex || wIndex > ports) in oxu_hub_control()
3242 wIndex--; in oxu_hub_control()
3258 if (!oxu->reset_done[wIndex]) { in oxu_hub_control()
3260 oxu->reset_done[wIndex] = jiffies in oxu_hub_control()
[all …]
Dfotg210-hcd.c1486 u16 wIndex, char *buf, u16 wLength) in fotg210_hub_control() argument
1516 if (!wIndex || wIndex > ports) in fotg210_hub_control()
1518 wIndex--; in fotg210_hub_control()
1546 fotg210->reset_done[wIndex] = jiffies in fotg210_hub_control()
1550 clear_bit(wIndex, &fotg210->port_c_suspend); in fotg210_hub_control()
1577 if (!wIndex || wIndex > ports) in fotg210_hub_control()
1579 wIndex--; in fotg210_hub_control()
1597 if (!fotg210->reset_done[wIndex]) { in fotg210_hub_control()
1599 fotg210->reset_done[wIndex] = jiffies in fotg210_hub_control()
1603 fotg210->reset_done[wIndex]); in fotg210_hub_control()
[all …]
Dohci-pxa27x.c195 u16 wIndex, char *buf, u16 wLength) in pxa27x_ohci_hub_control() argument
203 if (!wIndex || wIndex > 3) in pxa27x_ohci_hub_control()
209 ret = pxa27x_ohci_set_vbus_power(pxa_ohci, wIndex - 1, in pxa27x_ohci_hub_control()
216 return ohci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in pxa27x_ohci_hub_control()
Disp1362-hcd.c1562 u16 wIndex, char *buf, u16 wLength) in isp1362_hub_control() argument
1610 if (!wIndex || wIndex > ports) in isp1362_hub_control()
1612 tmp = isp1362_hcd->rhport[--wIndex]; in isp1362_hub_control()
1617 if (!wIndex || wIndex > ports) in isp1362_hub_control()
1619 wIndex--; in isp1362_hub_control()
1660 isp1362_write_reg32(isp1362_hcd, HCRHPORT1 + wIndex, tmp); in isp1362_hub_control()
1661 isp1362_hcd->rhport[wIndex] = in isp1362_hub_control()
1662 isp1362_read_reg32(isp1362_hcd, HCRHPORT1 + wIndex); in isp1362_hub_control()
1667 if (!wIndex || wIndex > ports) in isp1362_hub_control()
1669 wIndex--; in isp1362_hub_control()
[all …]
/drivers/usb/wusbcore/
Drh.c175 u16 wIndex, in wusbhc_rh_get_hub_descr() argument
361 u16 wIndex, char *buf, u16 wLength) in wusbhc_rh_control() argument
369 wusbhc, wValue, wIndex, in wusbhc_rh_control()
380 result = wusbhc_rh_set_port_feat(wusbhc, wValue, wIndex >> 8, in wusbhc_rh_control()
381 (wIndex & 0xff) - 1); in wusbhc_rh_control()
384 result = wusbhc_rh_clear_port_feat(wusbhc, wValue, wIndex >> 8, in wusbhc_rh_control()
385 (wIndex & 0xff) - 1); in wusbhc_rh_control()
388 result = wusbhc_rh_get_port_status(wusbhc, wIndex - 1, in wusbhc_rh_control()
396 wValue, wIndex, buf, wLength); in wusbhc_rh_control()
/drivers/media/usb/gspca/
Ddtcs033.c29 u16 wIndex; member
36 u16 wValue, u16 wIndex, u16 wLength) in reg_rw() argument
48 wValue, wIndex, in reg_rw()
70 preq->wValue, preq->wIndex, preq->wLength); in reg_reqs()
165 u16 wIndex = 0x0100|(0x00FF&gainVal); in dtcs033_setexposure() local
177 bRequestType, bRequest, wValue, wIndex, 0); in dtcs033_setexposure()
/drivers/media/usb/b2c2/
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()
/drivers/usb/dwc3/
Dep0.c379 dep = dwc3_wIndex_to_dep(dwc, ctrl->wIndex); in dwc3_ep0_handle_status()
408 u32 wIndex; in dwc3_ep0_handle_feature() local
414 wIndex = le16_to_cpu(ctrl->wIndex); in dwc3_ep0_handle_feature()
462 if ((wIndex & 0xff) != 0) in dwc3_ep0_handle_feature()
467 switch (wIndex >> 8) { in dwc3_ep0_handle_feature()
473 dwc->test_mode_nr = wIndex >> 8; in dwc3_ep0_handle_feature()
488 if (wIndex & USB_INTRF_FUNC_SUSPEND_LP) in dwc3_ep0_handle_feature()
491 if (wIndex & USB_INTRF_FUNC_SUSPEND_RW) in dwc3_ep0_handle_feature()
503 dep = dwc3_wIndex_to_dep(dwc, ctrl->wIndex); in dwc3_ep0_handle_feature()
699 u16 wIndex; in dwc3_ep0_set_isoch_delay() local
[all …]
Dtrace.h90 __field(__u16, wIndex)
97 __entry->wIndex = le16_to_cpu(ctrl->wIndex);
102 __entry->wValue, __entry->wIndex,
/drivers/usb/musb/
Dmusb_virthub.c286 u16 wIndex, in musb_hub_control() argument
319 if ((wIndex & 0xff) != 1) in musb_hub_control()
368 if (wIndex != 1) in musb_hub_control()
379 if ((wIndex & 0xff) != 1) in musb_hub_control()
407 wIndex >>= 8; in musb_hub_control()
408 switch (wIndex) { in musb_hub_control()
Dmusb_gadget_ep0.c110 epnum = (u8) ctrlrequest->wIndex; in service_tx_status_request()
262 ctrlrequest->wIndex & 0x0f; in service_zero_data_request()
276 is_in = ctrlrequest->wIndex & USB_DIR_IN; in service_zero_data_request()
335 if (ctrlrequest->wIndex & 0xff) in service_zero_data_request()
338 switch (ctrlrequest->wIndex >> 8) { in service_zero_data_request()
427 ctrlrequest->wIndex & 0x0f; in service_zero_data_request()
440 is_in = ctrlrequest->wIndex & USB_DIR_IN; in service_zero_data_request()
618 le16_to_cpu(req->wIndex), in musb_read_setup()
/drivers/staging/greybus/
Dusb.c27 __le16 wIndex; member
100 static int hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, in hub_control() argument
124 request->wIndex = cpu_to_le16(wIndex); in hub_control()
/drivers/usb/c67x00/
Dc67x00-hcd.c81 u16 wIndex, char *buf, u16 wLength) in c67x00_hub_control() argument
87 unsigned int port = wIndex-1; in c67x00_hub_control()
98 if (wIndex > C67X00_PORTS) in c67x00_hub_control()
139 if (wIndex > C67X00_PORTS) in c67x00_hub_control()
168 if (wIndex > C67X00_PORTS) in c67x00_hub_control()
/drivers/usb/usbip/
Dvhci_hcd.c49 u16 wIndex, char *buff, u16 wLength);
254 u16 wIndex, char *buf, u16 wLength) in vhci_hub_control() argument
271 wIndex); in vhci_hub_control()
272 if (wIndex > VHCI_HC_PORTS) in vhci_hub_control()
273 pr_err("invalid port number %d\n", wIndex); in vhci_hub_control()
274 rhport = ((__u8)(wIndex & 0x00ff)) - 1; in vhci_hub_control()
337 usbip_dbg_vhci_rh(" GetPortStatus port %x\n", wIndex); in vhci_hub_control()
338 if (wIndex > VHCI_HC_PORTS || wIndex < 1) { in vhci_hub_control()
339 pr_err("invalid port number %d\n", wIndex); in vhci_hub_control()
/drivers/usb/gadget/udc/bdc/
Dbdc_ep.c1151 u16 wIndex, bool set) in ep0_handle_feature_dev() argument
1169 if ((wIndex & 0xFF) || in ep0_handle_feature_dev()
1173 bdc->test_mode = wIndex >> 8; in ep0_handle_feature_dev()
1239 u16 wIndex; in ep0_handle_feature() local
1243 wIndex = le16_to_cpu(setup_pkt->wIndex); in ep0_handle_feature()
1247 __func__, wValue, wIndex, state, in ep0_handle_feature()
1252 return ep0_handle_feature_dev(bdc, wValue, wIndex, set); in ep0_handle_feature()
1260 if (wIndex & USB_INTRF_FUNC_SUSPEND_RW) { in ep0_handle_feature()
1275 epnum = wIndex & USB_ENDPOINT_NUMBER_MASK; in ep0_handle_feature()
1277 if ((wIndex & USB_ENDPOINT_DIR_MASK) == USB_DIR_IN) in ep0_handle_feature()
[all …]
/drivers/input/misc/
Dpowermate.c130 pm->configcr->wIndex = cpu_to_le16( pm->pulse_asleep ? 1 : 0 ); in powermate_sync_state()
134 pm->configcr->wIndex = cpu_to_le16( pm->pulse_awake ? 1 : 0 ); in powermate_sync_state()
166 pm->configcr->wIndex = cpu_to_le16( (arg << 8) | op ); in powermate_sync_state()
170 pm->configcr->wIndex = cpu_to_le16( pm->static_brightness ); in powermate_sync_state()
/drivers/usb/isp1760/
Disp1760-hcd.c1812 u16 wValue, u16 wIndex, char *buf, u16 wLength) in isp1760_hub_control() argument
1841 if (!wIndex || wIndex > ports) in isp1760_hub_control()
1843 wIndex--; in isp1760_hub_control()
1906 if (!wIndex || wIndex > ports) in isp1760_hub_control()
1908 wIndex--; in isp1760_hub_control()
1945 wIndex + 1, retval); in isp1760_hub_control()
1968 wIndex + 1, retval); in isp1760_hub_control()
1973 temp = check_reset_complete(hcd, wIndex, in isp1760_hub_control()
2012 selector = wIndex >> 8; in isp1760_hub_control()
2013 wIndex &= 0xff; in isp1760_hub_control()
[all …]

123456