| /linux/drivers/usb/common/ |
| A D | debug.c | 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() 55 switch (wIndex) { in usb_decode_test_mode() 93 wIndex & ~USB_DIR_IN, in usb_decode_set_clear_feature() 105 __u16 wValue, __u16 wIndex, in usb_decode_get_set_descriptor() argument 183 wIndex, wLength); in usb_decode_get_intf() 190 wIndex, wValue); in usb_decode_set_intf() 197 wIndex, wLength); in usb_decode_synch_frame() 242 wIndex, str, size); in usb_decode_ctrl() [all …]
|
| /linux/drivers/usb/host/ |
| A D | xhci-hub.c | 915 u32 wIndex; in xhci_handle_usb2_port_link_resume() local 1232 if (!wIndex || wIndex > max_ports) in xhci_hub_control() 1234 wIndex--; in xhci_hub_control() 1274 wIndex &= 0xff; in xhci_hub_control() 1275 if (!wIndex || wIndex > max_ports) in xhci_hub_control() 1277 wIndex--; in xhci_hub_control() 1310 wIndex + 1); in xhci_hub_control() 1445 wIndex + 1); in xhci_hub_control() 1529 if (!wIndex || wIndex > max_ports) in xhci_hub_control() 1531 wIndex--; in xhci_hub_control() [all …]
|
| A D | ehci-hub.c | 735 u16 wIndex, in ehci_hub_control() argument 778 if (!wIndex || wIndex > ports) in ehci_hub_control() 780 wIndex--; in ehci_hub_control() 866 if (!wIndex || wIndex > ports) in ehci_hub_control() 868 wIndex--; in ehci_hub_control() 951 wIndex + 1, retval); in ehci_hub_control() 1025 wIndex &= 0xff; in ehci_hub_control() 1035 if (!wIndex || wIndex > ports) in ehci_hub_control() 1037 wIndex--; in ehci_hub_control() 1097 wIndex + 1); in ehci_hub_control() [all …]
|
| A D | ohci-s3c2410.c | 166 u16 wIndex, in ohci_s3c2410_hub_control() argument 184 wIndex, buf, wLength); 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() 275 if (valid_port(wIndex)) { in ohci_s3c2410_hub_control() 276 if (info->port[wIndex-1].oc_changed) in ohci_s3c2410_hub_control() [all …]
|
| A D | ohci-at91.c | 332 u16 wIndex, char *buf, u16 wLength) in ohci_at91_hub_control() argument 344 wIndex--; in ohci_at91_hub_control() 351 if (valid_port(wIndex)) { in ohci_at91_hub_control() 375 if (valid_port(wIndex)) { in ohci_at91_hub_control() 377 pdata->overcurrent_status[wIndex] = 0; in ohci_at91_hub_control() 386 if (valid_port(wIndex)) in ohci_at91_hub_control() 387 pdata->overcurrent_status[wIndex] = 0; in ohci_at91_hub_control() 395 if (valid_port(wIndex)) { in ohci_at91_hub_control() 451 if (valid_port(wIndex)) { in ohci_at91_hub_control() 455 if (pdata->overcurrent_changed[wIndex]) in ohci_at91_hub_control() [all …]
|
| A D | ohci-da8xx.c | 34 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() 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() 355 ocic_mask &= ~(1 << wIndex); in ohci_da8xx_hub_control() [all …]
|
| A D | ohci-hub.c | 680 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 …]
|
| A D | ehci-brcm.c | 56 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()
|
| A 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() 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() 1123 isp116x_write_reg32(isp116x, wIndex in isp116x_hub_control() [all …]
|
| A D | fotg210-hcd.c | 1491 if (!wIndex || wIndex > ports) in fotg210_hub_control() 1493 wIndex--; in fotg210_hub_control() 1552 if (!wIndex || wIndex > ports) in fotg210_hub_control() 1554 wIndex--; in fotg210_hub_control() 1599 wIndex + 1, retval); in fotg210_hub_control() 1624 wIndex + 1, retval); in fotg210_hub_control() 1648 wIndex + 1); in fotg210_hub_control() 1699 selector = wIndex >> 8; in fotg210_hub_control() 1700 wIndex &= 0xff; in fotg210_hub_control() 1702 if (!wIndex || wIndex > ports) in fotg210_hub_control() [all …]
|
| /linux/drivers/usb/gadget/udc/aspeed-vhub/ |
| A D | hub.c | 158 u16 wIndex, u16 wValue) in ast_vhub_hub_dev_status() argument 181 u16 wIndex, u16 wValue) in ast_vhub_hub_ep_status() argument 186 ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_hub_ep_status() 200 u16 wIndex, u16 wValue, in ast_vhub_hub_dev_feature() argument 217 u16 wIndex, u16 wValue, in ast_vhub_hub_ep_feature() argument 376 u16 wValue, wIndex, wLength; in ast_vhub_std_hub_request() local 379 wIndex = le16_to_cpu(crq->wIndex); in ast_vhub_std_hub_request() 435 wIndex, wLength); in ast_vhub_std_hub_request() 443 if (wValue != 0 || wIndex != 0) in ast_vhub_std_hub_request() 738 u16 wValue, wIndex, wLength; in ast_vhub_class_hub_request() local [all …]
|
| A D | dev.c | 110 u16 wIndex, u16 wValue, in ast_vhub_dev_feature() argument 125 u16 wIndex, u16 wValue, bool is_set) in ast_vhub_ep_feature() argument 130 ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_ep_feature() 145 ep->epn.is_in != !!(wIndex & USB_DIR_IN)) in ast_vhub_ep_feature() 157 u16 wIndex, u16 wValue) in ast_vhub_dev_status() argument 171 u16 wIndex, u16 wValue) in ast_vhub_ep_status() argument 173 int ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_vhub_ep_status() 186 ep->epn.is_in != !!(wIndex & USB_DIR_IN)) in ast_vhub_ep_status() 211 u16 wValue, wIndex; in ast_vhub_std_dev_request() local 237 wIndex = le16_to_cpu(crq->wIndex); in ast_vhub_std_dev_request() [all …]
|
| /linux/drivers/usb/cdns3/ |
| A D | cdnsp-ep0.c | 135 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 …]
|
| A D | cdns3-ep0.c | 253 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/ |
| A D | dtcs033.c | 20 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/usb/usbip/ |
| A 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() 435 pr_err("invalid port number %d\n", wIndex); in vhci_hub_control() [all …]
|
| /linux/drivers/media/usb/b2c2/ |
| A D | flexcop-usb.c | 113 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()
|
| /linux/drivers/usb/musb/ |
| A 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()
|
| A 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() 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()
|
| /linux/drivers/usb/dwc3/ |
| A D | ep0.c | 352 dep = dwc3_wIndex_to_dep(dwc, ctrl->wIndex); in dwc3_ep0_handle_status() 423 u32 wIndex, int set) in dwc3_ep0_handle_test() argument 425 if ((wIndex & 0xff) != 0) in dwc3_ep0_handle_test() 430 switch (wIndex >> 8) { in dwc3_ep0_handle_test() 436 dwc->test_mode_nr = wIndex >> 8; in dwc3_ep0_handle_test() 451 u32 wIndex; in dwc3_ep0_handle_device() local 455 wIndex = le16_to_cpu(ctrl->wIndex); in dwc3_ep0_handle_device() 520 dep = dwc3_wIndex_to_dep(dwc, ctrl->wIndex); in dwc3_ep0_handle_endpoint() 747 u16 wIndex; in dwc3_ep0_set_isoch_delay() local 751 wIndex = le16_to_cpu(ctrl->wIndex); in dwc3_ep0_set_isoch_delay() [all …]
|
| /linux/drivers/staging/greybus/ |
| A 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/drivers/usb/c67x00/ |
| A 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/drivers/usb/chipidea/ |
| A D | host.c | 237 u16 wIndex, in ci_ehci_hub_control() argument 252 port_index = wIndex & 0xff; in ci_ehci_hub_control() 259 retval = ci->platdata->hub_control(ci, typeReq, wValue, wIndex, in ci_ehci_hub_control() 266 if (!wIndex || wIndex > ports) { in ci_ehci_hub_control() 317 return ehci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in ci_ehci_hub_control()
|
| /linux/drivers/usb/mtu3/ |
| A D | mtu3_trace.h | 97 __field(__u16, wIndex) 104 __entry->wIndex = le16_to_cpu(setup->wIndex); 109 __entry->wValue, __entry->wIndex, __entry->wLength
|
| /linux/drivers/usb/gadget/udc/bdc/ |
| A D | bdc_ep.c | 1147 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() 1256 if (wIndex & USB_INTRF_FUNC_SUSPEND_RW) { in ep0_handle_feature() 1271 epnum = wIndex & USB_ENDPOINT_NUMBER_MASK; in ep0_handle_feature() 1311 u16 wIndex; in ep0_handle_status() local 1316 wIndex = le16_to_cpu(setup_pkt->wIndex); in ep0_handle_status() [all …]
|