Searched refs:wIndex (Results 1 - 25 of 157) sorted by relevance

1234567

/linux-master/drivers/usb/common/
H A Ddebug.c14 static void usb_decode_get_status(__u8 bRequestType, __u16 wIndex, argument
24 wIndex, wLength);
28 wIndex & ~USB_DIR_IN,
29 wIndex & USB_DIR_IN ? "in" : "out");
54 static const char *usb_decode_test_mode(u16 wIndex) argument
56 switch (wIndex) {
74 __u16 wIndex, char *str, size_t size)
82 usb_decode_test_mode(wIndex) : "");
94 wIndex & ~USB_DIR_IN,
95 wIndex
72 usb_decode_set_clear_feature(__u8 bRequestType, __u8 bRequest, __u16 wValue, __u16 wIndex, char *str, size_t size) argument
105 usb_decode_get_set_descriptor(__u8 bRequestType, __u8 bRequest, __u16 wValue, __u16 wIndex, __u16 wLength, char *str, size_t size) argument
180 usb_decode_get_intf(__u16 wIndex, __u16 wLength, char *str, size_t size) argument
187 usb_decode_set_intf(__u8 wValue, __u16 wIndex, char *str, size_t size) argument
194 usb_decode_synch_frame(__u16 wIndex, __u16 wLength, char *str, size_t size) argument
211 usb_decode_ctrl_generic(char *str, size_t size, __u8 bRequestType, __u8 bRequest, __u16 wValue, __u16 wIndex, __u16 wLength) argument
230 usb_decode_ctrl_standard(char *str, size_t size, __u8 bRequestType, __u8 bRequest, __u16 wValue, __u16 wIndex, __u16 wLength) argument
300 usb_decode_ctrl(char *str, size_t size, __u8 bRequestType, __u8 bRequest, __u16 wValue, __u16 wIndex, __u16 wLength) argument
[all...]
/linux-master/drivers/usb/host/
H A Dehci-hub.c736 u16 wIndex,
750 * from wIndex. The compiler doesn't like pointers to invalid
753 temp = (wIndex - 1) & 0xff;
779 if (!wIndex || wIndex > ports)
781 wIndex--;
805 if ((hcd->self.otg_port == (wIndex + 1))
828 ehci->reset_done[wIndex] = jiffies
830 set_bit(wIndex, &ehci->resuming_ports);
831 usb_hcd_start_port_resume(&hcd->self, wIndex);
732 ehci_hub_control( struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, char *buf, u16 wLength ) argument
[all...]
H A Dohci-s3c2410.c164 u16 wIndex,
175 hcd, typeReq, wValue, wIndex, buf, wLength);
182 wIndex, buf, wLength);
192 s3c2410_usb_set_power(info, wIndex, 1);
203 if (valid_port(wIndex)) {
204 info->port[wIndex-1].oc_changed = 0;
205 info->port[wIndex-1].oc_status = 0;
214 if (valid_port(wIndex))
215 info->port[wIndex-1].oc_status = 0;
223 if (valid_port(wIndex)) {
160 ohci_s3c2410_hub_control( struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, char *buf, u16 wLength) argument
[all...]
H A Dohci-at91.c352 u16 wIndex, char *buf, u16 wLength)
362 hcd, typeReq, wValue, wIndex, buf, wLength);
364 wIndex--;
371 if (valid_port(wIndex)) {
372 ohci_at91_usb_set_power(pdata, wIndex, 1);
380 if (valid_port(wIndex)) {
394 if (valid_port(wIndex)) {
395 pdata->overcurrent_changed[wIndex] = 0;
396 pdata->overcurrent_status[wIndex] = 0;
405 if (valid_port(wIndex))
351 ohci_at91_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, char *buf, u16 wLength) argument
[all...]
H A Dehci-brcm.c56 u16 wIndex,
67 temp = (wIndex & 0xff) - 1;
77 (wIndex && wIndex <= ports) &&
78 ehci->reset_done[wIndex-1] &&
79 time_after_eq(jiffies, ehci->reset_done[wIndex-1]) &&
91 retval = ehci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength);
52 ehci_brcm_hub_control( struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, char *buf, u16 wLength) argument
H A Dohci-da8xx.c35 u16 wValue, u16 wIndex, char *buf, u16 wLength);
302 u16 wIndex, char *buf, u16 wLength)
310 if (wIndex != 1)
313 dev_dbg(dev, "GetPortStatus(%u)\n", wIndex);
315 temp = roothub_portstatus(hcd_to_ohci(hcd), wIndex - 1);
326 if (ocic_mask & (1 << wIndex))
339 if (wIndex != 1)
345 temp ? "Set" : "Clear", wIndex, "POWER");
350 temp ? "Set" : "Clear", wIndex,
354 ocic_mask |= 1 << wIndex;
301 ohci_da8xx_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, char *buf, u16 wLength) argument
[all...]
H A Dohci-hub.c680 u16 wIndex,
706 if (!wIndex || wIndex > ports)
708 wIndex--;
739 &ohci->regs->roothub.portstatus [wIndex]);
740 // ohci_readl (ohci, &ohci->regs->roothub.portstatus [wIndex]);
750 if (!wIndex || wIndex > ports)
752 wIndex--;
753 temp = roothub_portstatus (ohci, wIndex);
676 ohci_hub_control( struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, char *buf, u16 wLength ) argument
[all...]
H A Dxen-hcd.c427 __u16 wIndex, char *buf, __u16 wLength)
442 if (!wIndex || wIndex > ports)
447 xenhcd_rhport_resume(info, wIndex);
450 xenhcd_rhport_power_off(info, wIndex);
453 xenhcd_rhport_disable(info, wIndex);
456 info->ports[wIndex - 1].c_connection = false;
459 info->ports[wIndex - 1].status &= ~(1 << wValue);
471 if (!wIndex || wIndex > port
426 xenhcd_hub_control(struct usb_hcd *hcd, __u16 typeReq, __u16 wValue, __u16 wIndex, char *buf, __u16 wLength) argument
[all...]
H A Dxhci-hub.c580 u16 wIndex, __le32 __iomem *addr, u32 port_status)
627 wIndex + 1, port_change_bit, port_status);
678 u16 test_mode, u16 wIndex)
684 port = xhci->usb2_rhub.ports[wIndex];
694 u16 test_mode, u16 wIndex, unsigned long *flags)
729 /* Port is selected by wIndex. port_id = wIndex + 1 */
731 test_mode, wIndex + 1);
732 xhci_port_set_test_mode(xhci, test_mode, wIndex);
874 u16 wIndex)
579 xhci_clear_port_change_bit(struct xhci_hcd *xhci, u16 wValue, u16 wIndex, __le32 __iomem *addr, u32 port_status) argument
677 xhci_port_set_test_mode(struct xhci_hcd *xhci, u16 test_mode, u16 wIndex) argument
873 xhci_del_comp_mod_timer(struct xhci_hcd *xhci, u32 status, u16 wIndex) argument
901 u32 wIndex; local
1162 xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, char *buf, u16 wLength) argument
[all...]
/linux-master/include/linux/usb/
H A Dch9.h56 __u8 bRequest, __u16 wValue, __u16 wIndex,
H A Dchipidea.h97 u16 wIndex, char *buf, u16 wLength,
/linux-master/drivers/usb/gadget/udc/aspeed-vhub/
H A Ddev.c109 u16 wIndex, u16 wValue,
125 val |= VHUB_CTRL_SET_TEST_MODE((wIndex >> 8) & 0x7);
135 u16 wIndex, u16 wValue, bool is_set)
140 ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK;
155 ep->epn.is_in != !!(wIndex & USB_DIR_IN))
167 u16 wIndex, u16 wValue)
181 u16 wIndex, u16 wValue)
183 int ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK;
196 ep->epn.is_in != !!(wIndex & USB_DIR_IN))
221 u16 wValue, wIndex; local
108 ast_vhub_dev_feature(struct ast_vhub_dev *d, u16 wIndex, u16 wValue, bool is_set) argument
134 ast_vhub_ep_feature(struct ast_vhub_dev *d, u16 wIndex, u16 wValue, bool is_set) argument
166 ast_vhub_dev_status(struct ast_vhub_dev *d, u16 wIndex, u16 wValue) argument
180 ast_vhub_ep_status(struct ast_vhub_dev *d, u16 wIndex, u16 wValue) argument
[all...]
H A Dhub.c169 u16 wIndex, u16 wValue)
192 u16 wIndex, u16 wValue)
197 ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK;
211 u16 wIndex, u16 wValue,
229 val |= VHUB_CTRL_SET_TEST_MODE((wIndex >> 8) & 0x7);
239 u16 wIndex, u16 wValue,
245 ep_num = wIndex & USB_ENDPOINT_NUMBER_MASK;
404 u16 wValue, wIndex, wLength; local
407 wIndex = le16_to_cpu(crq->wIndex);
168 ast_vhub_hub_dev_status(struct ast_vhub_ep *ep, u16 wIndex, u16 wValue) argument
191 ast_vhub_hub_ep_status(struct ast_vhub_ep *ep, u16 wIndex, u16 wValue) argument
210 ast_vhub_hub_dev_feature(struct ast_vhub_ep *ep, u16 wIndex, u16 wValue, bool is_set) argument
238 ast_vhub_hub_ep_feature(struct ast_vhub_ep *ep, u16 wIndex, u16 wValue, bool is_set) argument
768 u16 wValue, wIndex, wLength; local
[all...]
/linux-master/drivers/usb/cdns3/
H A Dcdnsp-ep0.c135 static int cdnsp_w_index_to_ep_index(u16 wIndex) argument
137 if (!(wIndex & USB_ENDPOINT_NUMBER_MASK))
140 return ((wIndex & USB_ENDPOINT_NUMBER_MASK) * 2) +
141 (wIndex & USB_ENDPOINT_DIR_MASK ? 1 : 0) - 1;
172 ep_sts = cdnsp_w_index_to_ep_index(le16_to_cpu(ctrl->wIndex));
238 tmode = le16_to_cpu(ctrl->wIndex);
267 u16 wValue, wIndex; local
271 wIndex = le16_to_cpu(ctrl->wIndex);
283 if (wIndex
[all...]
/linux-master/include/linux/
H A Dusbdevice_fs.h41 u16 wIndex; member in struct:usbdevfs_ctrltransfer32
/linux-master/drivers/usb/c67x00/
H A Dc67x00-hcd.c67 u16 wIndex, char *buf, u16 wLength)
73 unsigned int port = wIndex-1;
84 if (wIndex > C67X00_PORTS)
125 if (wIndex > C67X00_PORTS)
154 if (wIndex > C67X00_PORTS)
66 c67x00_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, char *buf, u16 wLength) argument
/linux-master/drivers/usb/musb/
H A Dmusb_virthub.c264 u16 wIndex,
297 if ((wIndex & 0xff) != 1)
346 if (wIndex != 1)
357 if ((wIndex & 0xff) != 1)
385 wIndex >>= 8;
386 switch (wIndex) {
260 musb_hub_control( struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, char *buf, u16 wLength) argument
H A Dmusb_gadget_ep0.c85 epnum = (u8) ctrlrequest->wIndex;
237 ctrlrequest->wIndex & 0x0f;
251 is_in = ctrlrequest->wIndex & USB_DIR_IN;
310 if (ctrlrequest->wIndex & 0xff)
313 switch (ctrlrequest->wIndex >> 8) {
398 ctrlrequest->wIndex & 0x0f;
411 is_in = ctrlrequest->wIndex & USB_DIR_IN;
589 le16_to_cpu(req->wIndex),
/linux-master/drivers/staging/greybus/
H A Dusb.c25 __le16 wIndex; member in struct:gb_usb_hub_control_request
98 static int hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, argument
122 request->wIndex = cpu_to_le16(wIndex);
/linux-master/drivers/media/usb/b2c2/
H A Dflexcop-usb.c113 u16 wIndex; local
115 wIndex = page << 8;
129 wIndex |= pbBuffer[0];
144 wAddress, wIndex, buflen);
155 wIndex,
235 u16 wValue, wIndex; local
265 wIndex = (chipaddr << 8 ) | addr;
270 wIndex & 0xff, wIndex >> 8);
281 wIndex,
[all...]
/linux-master/drivers/usb/usbip/
H A Dvhci_hcd.c35 u16 wIndex, char *buff, u16 wLength);
316 u16 wIndex, char *buf, u16 wLength)
332 * wIndex (bits 0-7) shows the port number and begins from 1?
334 wIndex = ((__u8)(wIndex & 0x00ff));
335 usbip_dbg_vhci_rh("typeReq %x wValue %x wIndex %x\n", typeReq, wValue,
336 wIndex);
339 * wIndex can be 0 for some request types (typeReq). rhport is
340 * in valid range when wIndex >= 1 and < VHCI_HC_PORTS.
345 if (wIndex <
315 vhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, char *buf, u16 wLength) argument
[all...]
/linux-master/drivers/usb/dwc3/
H A Dep0.c380 dep = dwc3_wIndex_to_dep(dwc, ctrl->wIndex);
451 u32 wIndex, int set)
453 if ((wIndex & 0xff) != 0)
458 switch (wIndex >> 8) {
464 dwc->test_mode_nr = wIndex >> 8;
479 u32 wIndex; local
483 wIndex = le16_to_cpu(ctrl->wIndex);
507 ret = dwc3_ep0_handle_test(dwc, state, wIndex, set);
546 dep = dwc3_wIndex_to_dep(dwc, ctrl->wIndex);
450 dwc3_ep0_handle_test(struct dwc3 *dwc, enum usb_device_state state, u32 wIndex, int set) argument
774 u16 wIndex; local
[all...]
/linux-master/drivers/usb/chipidea/
H A Dhost.c244 u16 wIndex,
259 port_index = wIndex & 0xff;
266 retval = ci->platdata->hub_control(ci, typeReq, wValue, wIndex,
273 if (!wIndex || wIndex > ports) {
324 return ehci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength);
240 ci_ehci_hub_control( struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, char *buf, u16 wLength ) argument
/linux-master/drivers/usb/gadget/udc/cdns2/
H A Dcdns2-ep0.c23 static int cdns2_w_index_to_ep_index(u16 wIndex) argument
25 if (!(wIndex & USB_ENDPOINT_NUMBER_MASK))
28 return ((wIndex & USB_ENDPOINT_NUMBER_MASK) * 2) +
29 (wIndex & USB_ENDPOINT_DIR_MASK ? 1 : 0) - 1;
192 ep_sts = cdns2_w_index_to_ep_index(le16_to_cpu(ctrl->wIndex));
232 tmode = le16_to_cpu(ctrl->wIndex);
290 pep = &pdev->eps[cdns2_w_index_to_ep_index(le16_to_cpu(ctrl->wIndex))];
295 if (!(le16_to_cpu(ctrl->wIndex) & ~USB_DIR_IN))
/linux-master/drivers/usb/mtu3/
H A Dmtu3_trace.h95 __field(__u16, wIndex)
102 __entry->wIndex = le16_to_cpu(setup->wIndex);
107 __entry->wValue, __entry->wIndex, __entry->wLength

Completed in 330 milliseconds

1234567