/Linux-v4.19/drivers/usb/host/ |
D | xhci-hub.c | 472 u16 wIndex, __le32 __iomem *addr, u32 port_status) in xhci_disable_port() argument 491 wIndex, port_status); in xhci_disable_port() 495 u16 wIndex, __le32 __iomem *addr, u32 port_status) in xhci_clear_port_change_bit() argument 541 port_change_bit, wIndex, port_status); in xhci_clear_port_change_bit() 590 u16 test_mode, u16 wIndex) in xhci_port_set_test_mode() argument 596 port = xhci->usb2_rhub.ports[wIndex]; in xhci_port_set_test_mode() 606 u16 test_mode, u16 wIndex, unsigned long *flags) in xhci_enter_test_mode() argument 641 test_mode, wIndex + 1); in xhci_enter_test_mode() 642 xhci_port_set_test_mode(xhci, test_mode, wIndex); in xhci_enter_test_mode() 785 u16 wIndex) in xhci_del_comp_mod_timer() argument [all …]
|
D | ehci-hub.c | 828 dr->wIndex = 0; in ehset_single_step_set_feature() 872 u16 wIndex, in ehci_hub_control() argument 889 temp = wIndex & 0xff; in ehci_hub_control() 914 if (!wIndex || wIndex > ports) in ehci_hub_control() 916 wIndex--; in ehci_hub_control() 940 if ((hcd->self.otg_port == (wIndex + 1)) in ehci_hub_control() 963 ehci->reset_done[wIndex] = jiffies in ehci_hub_control() 965 set_bit(wIndex, &ehci->resuming_ports); in ehci_hub_control() 966 usb_hcd_start_port_resume(&hcd->self, wIndex); in ehci_hub_control() 969 clear_bit(wIndex, &ehci->port_c_suspend); in ehci_hub_control() [all …]
|
D | ohci-s3c2410.c | 166 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 …]
|
D | ohci-at91.c | 326 u16 wIndex, char *buf, u16 wLength) in ohci_at91_hub_control() argument 336 hcd, typeReq, wValue, wIndex, buf, wLength); in ohci_at91_hub_control() 338 wIndex--; in ohci_at91_hub_control() 345 if (valid_port(wIndex)) { in ohci_at91_hub_control() 346 ohci_at91_usb_set_power(pdata, wIndex, 1); in ohci_at91_hub_control() 354 if (valid_port(wIndex) && ohci_at91->sfr_regmap) { in ohci_at91_hub_control() 369 if (valid_port(wIndex)) { in ohci_at91_hub_control() 370 pdata->overcurrent_changed[wIndex] = 0; in ohci_at91_hub_control() 371 pdata->overcurrent_status[wIndex] = 0; in ohci_at91_hub_control() 380 if (valid_port(wIndex)) in ohci_at91_hub_control() [all …]
|
D | ohci-hub.c | 677 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 …]
|
D | ohci-da8xx.c | 33 u16 wValue, u16 wIndex, char *buf, u16 wLength); 330 u16 wIndex, char *buf, u16 wLength) in ohci_da8xx_hub_control() argument 338 if (wIndex != 1) in ohci_da8xx_hub_control() 341 dev_dbg(dev, "GetPortStatus(%u)\n", wIndex); in ohci_da8xx_hub_control() 343 temp = roothub_portstatus(hcd_to_ohci(hcd), wIndex - 1); in ohci_da8xx_hub_control() 354 if (ocic_mask & (1 << wIndex)) in ohci_da8xx_hub_control() 367 if (wIndex != 1) in ohci_da8xx_hub_control() 373 temp ? "Set" : "Clear", wIndex, "POWER"); in ohci_da8xx_hub_control() 378 temp ? "Set" : "Clear", wIndex, in ohci_da8xx_hub_control() 382 ocic_mask |= 1 << wIndex; in ohci_da8xx_hub_control() [all …]
|
D | ehci-tegra.c | 174 u16 wIndex, in tegra_ehci_hub_control() argument 186 status_reg = &ehci->regs->port_status[(wIndex & 0xff) - 1]; in tegra_ehci_hub_control() 218 set_bit((wIndex & 0xff) - 1, &ehci->suspended_ports); in tegra_ehci_hub_control() 250 ehci->reset_done[wIndex-1] = jiffies + msecs_to_jiffies(25); in tegra_ehci_hub_control() 255 set_bit(wIndex-1, &ehci->resuming_ports); in tegra_ehci_hub_control() 267 ehci->reset_done[wIndex-1] = 0; in tegra_ehci_hub_control() 268 clear_bit(wIndex-1, &ehci->resuming_ports); in tegra_ehci_hub_control() 277 return ehci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in tegra_ehci_hub_control()
|
D | isp116x-hcd.c | 1005 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 …]
|
D | oxu210hp-hcd.c | 232 u16 typeReq, u16 wValue, u16 wIndex, 3132 u16 wValue, u16 wIndex, char *buf, u16 wLength) in oxu_hub_control() argument 3136 u32 __iomem *status_reg = &oxu->regs->port_status[wIndex - 1]; in oxu_hub_control() 3162 if (!wIndex || wIndex > ports) in oxu_hub_control() 3164 wIndex--; in oxu_hub_control() 3190 oxu->reset_done[wIndex] = jiffies in oxu_hub_control() 3225 if (!wIndex || wIndex > ports) in oxu_hub_control() 3227 wIndex--; in oxu_hub_control() 3243 if (!oxu->reset_done[wIndex]) { in oxu_hub_control() 3245 oxu->reset_done[wIndex] = jiffies in oxu_hub_control() [all …]
|
D | ohci-pxa27x.c | 196 u16 wIndex, char *buf, u16 wLength) in pxa27x_ohci_hub_control() argument 204 if (!wIndex || wIndex > 3) in pxa27x_ohci_hub_control() 210 ret = pxa27x_ohci_set_vbus_power(pxa_ohci, wIndex - 1, in pxa27x_ohci_hub_control() 217 return ohci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in pxa27x_ohci_hub_control()
|
D | fotg210-hcd.c | 1460 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 …]
|
/Linux-v4.19/drivers/usb/gadget/udc/aspeed-vhub/ |
D | hub.c | 173 u16 wIndex, u16 wValue) in ast_vhub_hub_dev_status() argument 196 u16 wIndex, u16 wValue) in ast_vhub_hub_ep_status() argument 201 ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_hub_ep_status() 215 u16 wIndex, u16 wValue, in ast_vhub_hub_dev_feature() argument 232 u16 wIndex, u16 wValue, in ast_vhub_hub_ep_feature() argument 238 ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_hub_ep_feature() 339 u16 wValue, wIndex, wLength; in ast_vhub_std_hub_request() local 342 wIndex = le16_to_cpu(crq->wIndex); in ast_vhub_std_hub_request() 365 return ast_vhub_hub_dev_status(ep, wIndex, wValue); in ast_vhub_std_hub_request() 369 return ast_vhub_hub_ep_status(ep, wIndex, wValue); in ast_vhub_std_hub_request() [all …]
|
D | dev.c | 100 u16 wIndex, u16 wValue, in ast_vhub_dev_feature() argument 115 u16 wIndex, u16 wValue, bool is_set) in ast_vhub_ep_feature() argument 120 ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_ep_feature() 135 ep->epn.is_in != !!(wIndex & USB_DIR_IN)) in ast_vhub_ep_feature() 147 u16 wIndex, u16 wValue) in ast_vhub_dev_status() argument 161 u16 wIndex, u16 wValue) in ast_vhub_ep_status() argument 163 int ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_ep_status() 176 ep->epn.is_in != !!(wIndex & USB_DIR_IN)) in ast_vhub_ep_status() 201 u16 wValue, wIndex; in ast_vhub_std_dev_request() local 222 wIndex = le16_to_cpu(crq->wIndex); in ast_vhub_std_dev_request() [all …]
|
/Linux-v4.19/drivers/usb/wusbcore/ |
D | rh.c | 161 u16 wIndex, in wusbhc_rh_get_hub_descr() argument 347 u16 wIndex, char *buf, u16 wLength) in wusbhc_rh_control() argument 355 wusbhc, wValue, wIndex, in wusbhc_rh_control() 366 result = wusbhc_rh_set_port_feat(wusbhc, wValue, wIndex >> 8, in wusbhc_rh_control() 367 (wIndex & 0xff) - 1); in wusbhc_rh_control() 370 result = wusbhc_rh_clear_port_feat(wusbhc, wValue, wIndex >> 8, in wusbhc_rh_control() 371 (wIndex & 0xff) - 1); in wusbhc_rh_control() 374 result = wusbhc_rh_get_port_status(wusbhc, wIndex - 1, in wusbhc_rh_control() 382 wValue, wIndex, buf, wLength); in wusbhc_rh_control()
|
/Linux-v4.19/drivers/usb/dwc3/ |
D | debug.h | 406 __u8 bRequest, __u16 wValue, __u16 wIndex, __u16 wLength) in dwc3_decode_ctrl() argument 410 dwc3_decode_get_status(bRequestType, wIndex, wLength, str); in dwc3_decode_ctrl() 415 wIndex, str); in dwc3_decode_ctrl() 423 wIndex, wLength, str); in dwc3_decode_ctrl() 432 dwc3_decode_get_intf(wIndex, wLength, str); in dwc3_decode_ctrl() 435 dwc3_decode_set_intf(wValue, wIndex, str); in dwc3_decode_ctrl() 438 dwc3_decode_synch_frame(wIndex, wLength, str); in dwc3_decode_ctrl() 451 cpu_to_le16(wIndex) & 0xff, in dwc3_decode_ctrl() 452 cpu_to_le16(wIndex) >> 8, in dwc3_decode_ctrl()
|
D | ep0.c | 349 dep = dwc3_wIndex_to_dep(dwc, ctrl->wIndex); in dwc3_ep0_handle_status() 416 u32 wIndex, int set) in dwc3_ep0_handle_test() argument 418 if ((wIndex & 0xff) != 0) in dwc3_ep0_handle_test() 423 switch (wIndex >> 8) { in dwc3_ep0_handle_test() 429 dwc->test_mode_nr = wIndex >> 8; in dwc3_ep0_handle_test() 444 u32 wIndex; in dwc3_ep0_handle_device() local 448 wIndex = le16_to_cpu(ctrl->wIndex); in dwc3_ep0_handle_device() 468 ret = dwc3_ep0_handle_test(dwc, state, wIndex, set); in dwc3_ep0_handle_device() 513 dep = dwc3_wIndex_to_dep(dwc, ctrl->wIndex); in dwc3_ep0_handle_endpoint() 728 u16 wIndex; in dwc3_ep0_set_isoch_delay() local [all …]
|
D | trace.h | 78 __field(__u16, wIndex) 86 __entry->wIndex = le16_to_cpu(ctrl->wIndex); 91 __entry->wIndex, __entry->wLength)
|
/Linux-v4.19/drivers/media/usb/gspca/ |
D | dtcs033.c | 29 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() 163 u16 wIndex = 0x0100|(0x00FF&gainVal); in dtcs033_setexposure() local 175 bRequestType, bRequest, wValue, wIndex, 0); in dtcs033_setexposure()
|
/Linux-v4.19/drivers/media/usb/b2c2/ |
D | flexcop-usb.c | 112 u16 wIndex; in flexcop_usb_v8_memory_req() local 114 wIndex = page << 8; in flexcop_usb_v8_memory_req() 128 wIndex |= pbBuffer[0]; in flexcop_usb_v8_memory_req() 143 wAddress, wIndex, buflen); in flexcop_usb_v8_memory_req() 154 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()
|
/Linux-v4.19/drivers/usb/usbip/ |
D | vhci_hcd.c | 35 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() 431 usbip_dbg_vhci_rh(" GetPortStatus port %x\n", wIndex); in vhci_hub_control() [all …]
|
/Linux-v4.19/drivers/usb/musb/ |
D | musb_virthub.c | 265 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()
|
D | musb_gadget_ep0.c | 85 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() 402 ctrlrequest->wIndex & 0x0f; in service_zero_data_request() 415 is_in = ctrlrequest->wIndex & USB_DIR_IN; in service_zero_data_request() 593 le16_to_cpu(req->wIndex), in musb_read_setup()
|
/Linux-v4.19/drivers/staging/greybus/ |
D | usb.c | 25 __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-v4.19/drivers/usb/c67x00/ |
D | c67x00-hcd.c | 67 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-v4.19/drivers/usb/gadget/udc/bdc/ |
D | bdc_ep.c | 1145 u16 wIndex, bool set) in ep0_handle_feature_dev() argument 1163 if ((wIndex & 0xFF) || in ep0_handle_feature_dev() 1167 bdc->test_mode = wIndex >> 8; in ep0_handle_feature_dev() 1233 u16 wIndex; in ep0_handle_feature() local 1237 wIndex = le16_to_cpu(setup_pkt->wIndex); in ep0_handle_feature() 1241 __func__, wValue, wIndex, state, in ep0_handle_feature() 1246 return ep0_handle_feature_dev(bdc, wValue, wIndex, set); in ep0_handle_feature() 1254 if (wIndex & USB_INTRF_FUNC_SUSPEND_RW) { in ep0_handle_feature() 1269 epnum = wIndex & USB_ENDPOINT_NUMBER_MASK; in ep0_handle_feature() 1271 if ((wIndex & USB_ENDPOINT_DIR_MASK) == USB_DIR_IN) in ep0_handle_feature() [all …]
|