Home
last modified time | relevance | path

Searched refs:wValue (Results 1 – 25 of 195) sorted by relevance

12345678

/openbmc/linux/drivers/usb/common/
H A Ddebug.c36 switch (wValue) { in usb_decode_device_feature()
73 __u8 bRequest, __u16 wValue, in usb_decode_set_clear_feature() argument
80 usb_decode_device_feature(wValue), in usb_decode_set_clear_feature()
81 wValue == USB_DEVICE_TEST_MODE ? in usb_decode_set_clear_feature()
106 __u16 wValue, __u16 wIndex, in usb_decode_get_set_descriptor() argument
111 switch (wValue >> 8) { in usb_decode_get_set_descriptor()
167 s, wValue & 0xff, wLength); in usb_decode_get_set_descriptor()
191 wIndex, wValue); in usb_decode_set_intf()
274 wValue, wIndex, wLength); in usb_decode_ctrl_standard()
307 wValue, wIndex, wLength); in usb_decode_ctrl()
[all …]
/openbmc/linux/drivers/usb/gadget/udc/aspeed-vhub/
H A Dhub.c169 u16 wIndex, u16 wValue) in ast_vhub_hub_dev_status() argument
192 u16 wIndex, u16 wValue) in ast_vhub_hub_ep_status() argument
211 u16 wIndex, u16 wValue, in ast_vhub_hub_dev_feature() argument
239 u16 wIndex, u16 wValue, in ast_vhub_hub_ep_feature() argument
251 if (wValue != USB_ENDPOINT_HALT) in ast_vhub_hub_ep_feature()
404 u16 wValue, wIndex, wLength; in ast_vhub_std_hub_request() local
406 wValue = le16_to_cpu(crq->wValue); in ast_vhub_std_hub_request()
450 if (wValue != 1) in ast_vhub_std_hub_request()
456 switch (wValue >> 8) { in ast_vhub_std_hub_request()
768 u16 wValue, wIndex, wLength; in ast_vhub_class_hub_request() local
[all …]
H A Ddev.c109 u16 wIndex, u16 wValue, in ast_vhub_dev_feature() argument
115 is_set ? "SET" : "CLEAR", wValue); in ast_vhub_dev_feature()
117 if (wValue == USB_DEVICE_REMOTE_WAKEUP) { in ast_vhub_dev_feature()
122 if (wValue == USB_DEVICE_TEST_MODE) { in ast_vhub_dev_feature()
135 u16 wIndex, u16 wValue, bool is_set) in ast_vhub_ep_feature() argument
147 if (wValue != USB_ENDPOINT_HALT) in ast_vhub_ep_feature()
167 u16 wIndex, u16 wValue) in ast_vhub_dev_status() argument
181 u16 wIndex, u16 wValue) in ast_vhub_ep_status() argument
221 u16 wValue, wIndex; in ast_vhub_std_dev_request() local
246 wValue = le16_to_cpu(crq->wValue); in ast_vhub_std_dev_request()
[all …]
/openbmc/linux/drivers/usb/cdns3/
H A Dcdnsp-ep0.c60 cfg = le16_to_cpu(ctrl->wValue); in cdnsp_ep0_set_config()
93 addr = le16_to_cpu(ctrl->wValue); in cdnsp_ep0_set_address()
107 pdev->device_address = le16_to_cpu(ctrl->wValue); in cdnsp_ep0_set_address()
213 switch (le16_to_cpu(ctrl->wValue)) { in cdnsp_ep0_handle_feature_device()
267 u16 wValue, wIndex; in cdnsp_ep0_handle_feature_intf() local
270 wValue = le16_to_cpu(ctrl->wValue); in cdnsp_ep0_handle_feature_intf()
273 switch (wValue) { in cdnsp_ep0_handle_feature_intf()
302 u16 wValue; in cdnsp_ep0_handle_feature_endpoint() local
304 wValue = le16_to_cpu(ctrl->wValue); in cdnsp_ep0_handle_feature_endpoint()
307 switch (wValue) { in cdnsp_ep0_handle_feature_endpoint()
[all …]
H A Dcdns3-ep0.c140 u32 config = le16_to_cpu(ctrl_req->wValue); in cdns3_req_ep0_set_configuration()
187 addr = le16_to_cpu(ctrl_req->wValue); in cdns3_req_ep0_set_address()
281 u32 wValue; in cdns3_ep0_feature_handle_device() local
284 wValue = le16_to_cpu(ctrl->wValue); in cdns3_ep0_feature_handle_device()
288 switch (wValue) { in cdns3_ep0_feature_handle_device()
341 u32 wValue; in cdns3_ep0_feature_handle_intf() local
344 wValue = le16_to_cpu(ctrl->wValue); in cdns3_ep0_feature_handle_intf()
346 switch (wValue) { in cdns3_ep0_feature_handle_intf()
364 if (le16_to_cpu(ctrl->wValue) != USB_ENDPOINT_HALT) in cdns3_ep0_feature_handle_endpoint()
458 priv_dev->isoch_delay = le16_to_cpu(ctrl_req->wValue); in cdns3_req_ep0_set_isoch_delay()
/openbmc/u-boot/drivers/usb/gadget/
H A Dep0.c403 le16_to_cpu (request->wValue), le16_to_cpu (request->wIndex), in ep0_recv_setup()
483 le16_to_cpu (request->wValue) >> 8, in ep0_recv_setup()
484 le16_to_cpu (request->wValue) & 0xff); in ep0_recv_setup()
529 dbg_ep0 (0, "ENDPOINT: %x", le16_to_cpu (request->wValue)); in ep0_recv_setup()
530 if (le16_to_cpu (request->wValue) == USB_ENDPOINT_HALT) { in ep0_recv_setup()
539 le16_to_cpu (request->wValue)); in ep0_recv_setup()
548 le16_to_cpu (request->wValue), in ep0_recv_setup()
552 address = le16_to_cpu (request->wValue); in ep0_recv_setup()
571 device->configuration = le16_to_cpu(request->wValue) & 0xff; in ep0_recv_setup()
582 device->alternate = le16_to_cpu (request->wValue); in ep0_recv_setup()
H A Dether.c1249 u16 wValue = le16_to_cpu(ctrl->wValue); in eth_setup() local
1265 switch (wValue >> 8) { in eth_setup()
1285 wValue >> 8, in eth_setup()
1286 wValue & 0xff, in eth_setup()
1348 if (wValue != 0) in eth_setup()
1358 if (wValue > 1) in eth_setup()
1368 if (wValue == 1) { in eth_setup()
1422 dev->cdc_filter = wValue; in eth_setup()
1445 || wValue in eth_setup()
1460 && !wValue in eth_setup()
[all …]
/openbmc/linux/drivers/usb/gadget/udc/cdns2/
H A Dcdns2-ep0.c217 u32 wValue; in cdns2_ep0_handle_feature_device() local
220 wValue = le16_to_cpu(ctrl->wValue); in cdns2_ep0_handle_feature_device()
224 switch (wValue) { in cdns2_ep0_handle_feature_device()
268 u32 wValue; in cdns2_ep0_handle_feature_intf() local
270 wValue = le16_to_cpu(ctrl->wValue); in cdns2_ep0_handle_feature_intf()
272 switch (wValue) { in cdns2_ep0_handle_feature_intf()
287 u8 wValue; in cdns2_ep0_handle_feature_endpoint() local
289 wValue = le16_to_cpu(ctrl->wValue); in cdns2_ep0_handle_feature_endpoint()
292 if (wValue != USB_ENDPOINT_HALT) in cdns2_ep0_handle_feature_endpoint()
298 switch (wValue) { in cdns2_ep0_handle_feature_endpoint()
[all …]
/openbmc/linux/drivers/usb/musb/
H A Dmusb_virthub.c263 u16 wValue, in musb_hub_control() argument
288 switch (wValue) { in musb_hub_control()
300 switch (wValue) { in musb_hub_control()
319 musb_dbg(musb, "clear feature %d", wValue); in musb_hub_control()
320 musb->port1_status &= ~(1 << wValue); in musb_hub_control()
360 switch (wValue) { in musb_hub_control()
424 musb_dbg(musb, "set feature %d", wValue); in musb_hub_control()
425 musb->port1_status |= 1 << wValue; in musb_hub_control()
/openbmc/linux/drivers/media/usb/gspca/
H A Ddtcs033.c19 u16 wValue; 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()
155 u16 wValue = (0xFF00&gainVal)>>8; in dtcs033_setexposure() local
166 bRequestType, bRequest, wValue, wIndex, 0); in dtcs033_setexposure()
/openbmc/linux/drivers/usb/host/
H A Dfhci-hub.c201 int fhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in fhci_hub_control() argument
216 switch (wValue) { in fhci_hub_control()
225 fhci->vroot_hub->feature &= (1 << wValue); in fhci_hub_control()
227 switch (wValue) { in fhci_hub_control()
285 switch (wValue) { in fhci_hub_control()
294 fhci->vroot_hub->feature |= (1 << wValue); in fhci_hub_control()
296 switch (wValue) { in fhci_hub_control()
H A Dohci-s3c2410.c163 u16 wValue, in ohci_s3c2410_hub_control() argument
175 hcd, typeReq, wValue, wIndex, buf, wLength); in ohci_s3c2410_hub_control()
181 ret = ohci_hub_control(hcd, typeReq, wValue, in ohci_s3c2410_hub_control()
190 if (wValue == USB_PORT_FEAT_POWER) { in ohci_s3c2410_hub_control()
198 switch (wValue) { in ohci_s3c2410_hub_control()
231 ret = ohci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in ohci_s3c2410_hub_control()
H A Duhci-hub.c243 static int uhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in uhci_hub_control() argument
319 switch (wValue) { in uhci_hub_control()
331 switch (wValue) { in uhci_hub_control()
356 switch (wValue) { in uhci_hub_control()
/openbmc/linux/drivers/usb/dwc3/
H A Dep0.c477 u32 wValue; in dwc3_ep0_handle_device() local
481 wValue = le16_to_cpu(ctrl->wValue); in dwc3_ep0_handle_device()
485 switch (wValue) { in dwc3_ep0_handle_device()
518 u32 wValue; in dwc3_ep0_handle_intf() local
521 wValue = le16_to_cpu(ctrl->wValue); in dwc3_ep0_handle_intf()
523 switch (wValue) { in dwc3_ep0_handle_intf()
538 u32 wValue; in dwc3_ep0_handle_endpoint() local
541 wValue = le16_to_cpu(ctrl->wValue); in dwc3_ep0_handle_endpoint()
543 switch (wValue) { in dwc3_ep0_handle_endpoint()
771 u16 wValue; in dwc3_ep0_set_isoch_delay() local
[all …]
/openbmc/linux/drivers/usb/c67x00/
H A Dc67x00-hcd.c66 static int c67x00_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in c67x00_hub_control() argument
113 switch (wValue) { in c67x00_hub_control()
128 switch (wValue) { in c67x00_hub_control()
148 __func__, port, wValue); in c67x00_hub_control()
157 switch (wValue) { in c67x00_hub_control()
209 __func__, port, wValue); in c67x00_hub_control()
/openbmc/u-boot/drivers/usb/musb/
H A Dmusb_hcd.c467 u16 wValue; in musb_submit_rh_msg() local
478 wValue = swap_16(cmd->value); in musb_submit_rh_msg()
537 switch (wValue) { in musb_submit_rh_msg()
543 port_status &= ~(1 << wValue); in musb_submit_rh_msg()
549 switch (wValue) { in musb_submit_rh_msg()
560 port_status &= ~(1 << wValue); in musb_submit_rh_msg()
566 switch (wValue) { in musb_submit_rh_msg()
610 switch (wValue) { in musb_submit_rh_msg()
633 port_status |= 1 << wValue; in musb_submit_rh_msg()
639 rh_devnum = wValue; in musb_submit_rh_msg()
[all …]
/openbmc/u-boot/drivers/usb/host/
H A Dsl811-hcd.c537 __u16 wValue = le16_to_cpu (cmd->value); in sl811_rh_submit_urb() local
551 bmRType_bReq, bmRType_bReq, wValue, wIndex, wLength); in sl811_rh_submit_urb()
582 switch (wValue) { in sl811_rh_submit_urb()
589 switch (wValue) { in sl811_rh_submit_urb()
599 switch (wValue) { in sl811_rh_submit_urb()
635 switch (wValue) { in sl811_rh_submit_urb()
659 root_hub_devnum = wValue; in sl811_rh_submit_urb()
663 switch ((wValue & 0xff00) >> 8) { in sl811_rh_submit_urb()
675 len = usb_root_hub_string(wValue & 0xff, (int)(long)0, "SL811HS", data, wLength); in sl811_rh_submit_urb()
H A Dr8a66597-hcd.c598 __u16 wValue; in r8a66597_submit_rh_msg() local
610 wValue = cpu_to_le16 (cmd->value); in r8a66597_submit_rh_msg()
640 switch (wValue) { in r8a66597_submit_rh_msg()
648 switch (wValue) { in r8a66597_submit_rh_msg()
661 gr8a66597.rh_devnum = wValue; in r8a66597_submit_rh_msg()
664 switch ((wValue & 0xff00) >> 8) { in r8a66597_submit_rh_msg()
682 if (wValue == 0x0300) { in r8a66597_submit_rh_msg()
690 if (wValue == 0x0301) { in r8a66597_submit_rh_msg()
/openbmc/linux/drivers/usb/usbip/
H A Dvhci_hcd.c373 switch (wValue) { in vhci_hub_control()
398 wValue); in vhci_hub_control()
399 if (wValue >= 32) in vhci_hub_control()
409 wValue != (USB_DT_SS_HUB << 8))) { in vhci_hub_control()
422 if ((wValue >> 8) != USB_DT_BOS) in vhci_hub_control()
502 switch (wValue) { in vhci_hub_control()
598 wValue); in vhci_hub_control()
603 if (wValue >= 32) in vhci_hub_control()
637 typeReq, wValue, wIndex, wLength); in vhci_hub_control()
762 ctrlreq->wValue, vdev->rhport); in vhci_urb_enqueue()
[all …]
/openbmc/linux/drivers/staging/greybus/
H A Dusb.c24 __le16 wValue; member
98 static int hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, in hub_control() argument
121 request->wValue = cpu_to_le16(wValue); in hub_control()
/openbmc/u-boot/drivers/usb/dwc3/
H A Dep0.c391 u32 wValue; in dwc3_ep0_handle_feature() local
397 wValue = le16_to_cpu(ctrl->wValue); in dwc3_ep0_handle_feature()
405 switch (wValue) { in dwc3_ep0_handle_feature()
458 switch (wValue) { in dwc3_ep0_handle_feature()
473 switch (wValue) { in dwc3_ep0_handle_feature()
502 addr = le16_to_cpu(ctrl->wValue); in dwc3_ep0_set_address()
544 cfg = le16_to_cpu(ctrl->wValue); in dwc3_ep0_set_config()
671 u16 wValue; in dwc3_ep0_set_isoch_delay() local
674 wValue = le16_to_cpu(ctrl->wValue); in dwc3_ep0_set_isoch_delay()
685 dwc->isoch_delay = wValue; in dwc3_ep0_set_isoch_delay()
/openbmc/linux/drivers/usb/renesas_usbhs/
H A Dmod_host.c779 req.wValue = usbhsh_device_number(hpriv, udev); in usbhsh_setup_stage_packet_push()
1092 u16 typeReq, u16 wValue, in __usbhsh_hub_hub_feature() argument
1098 switch (wValue) { in __usbhsh_hub_hub_feature()
1109 u16 typeReq, u16 wValue, in __usbhsh_hub_port_feature() argument
1123 switch (wValue) { in __usbhsh_hub_port_feature()
1186 usbhsh_port_stat_set(hpriv, (1 << wValue)); in __usbhsh_hub_port_feature()
1188 usbhsh_port_stat_clear(hpriv, (1 << wValue)); in __usbhsh_hub_port_feature()
1194 u16 typeReq, u16 wValue, in __usbhsh_hub_get_status() argument
1248 wValue, wIndex, buf, wLength); in usbhsh_hub_control()
1255 wValue, wIndex, buf, wLength); in usbhsh_hub_control()
[all …]
/openbmc/linux/drivers/usb/mtu3/
H A Dmtu3_trace.h94 __field(__u16, wValue)
101 __entry->wValue = le16_to_cpu(setup->wValue);
107 __entry->wValue, __entry->wIndex, __entry->wLength
/openbmc/linux/drivers/usb/gadget/udc/bdc/
H A Dbdc_ep.c386 u16 wValue; in setup_first_bd_ep0() local
398 wValue = le16_to_cpu(bdc->setup_pkt.wValue); in setup_first_bd_ep0()
399 if ((wValue > req_len) && in setup_first_bd_ep0()
402 wValue, req_len, in setup_first_bd_ep0()
1112 addr = le16_to_cpu(ctrl->wValue); in ep0_set_address()
1154 switch (wValue) { in ep0_handle_feature_dev()
1234 u16 wValue; in ep0_handle_feature() local
1238 wValue = le16_to_cpu(setup_pkt->wValue); in ep0_handle_feature()
1243 __func__, wValue, wIndex, state, in ep0_handle_feature()
1252 if (wValue != USB_INTRF_FUNC_SUSPEND) in ep0_handle_feature()
[all …]
/openbmc/linux/drivers/usb/chipidea/
H A Dhost.c243 u16 wValue, in ci_ehci_hub_control() argument
266 retval = ci->platdata->hub_control(ci, typeReq, wValue, wIndex, in ci_ehci_hub_control()
272 if (typeReq == SetPortFeature && wValue == USB_PORT_FEAT_SUSPEND) { in ci_ehci_hub_control()
315 wValue == USB_PORT_FEAT_C_SUSPEND) { in ci_ehci_hub_control()
324 return ehci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in ci_ehci_hub_control()

12345678