Home
last modified time | relevance | path

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

12345678910

/OK3568_Linux_fs/kernel/drivers/usb/common/
H A Ddebug.c33 static const char *usb_decode_device_feature(u16 wValue) in usb_decode_device_feature() argument
35 switch (wValue) { in usb_decode_device_feature()
72 __u8 bRequest, __u16 wValue, in usb_decode_set_clear_feature() argument
79 usb_decode_device_feature(wValue), in usb_decode_set_clear_feature()
80 wValue == USB_DEVICE_TEST_MODE ? in usb_decode_set_clear_feature()
86 wValue == USB_INTRF_FUNC_SUSPEND ? in usb_decode_set_clear_feature()
92 wValue == USB_ENDPOINT_HALT ? "Halt" : "UNKNOWN", in usb_decode_set_clear_feature()
99 static void usb_decode_set_address(__u16 wValue, char *str, size_t size) in usb_decode_set_address() argument
101 snprintf(str, size, "Set Address(Addr = %02x)", wValue); in usb_decode_set_address()
105 __u16 wValue, __u16 wIndex, in usb_decode_get_set_descriptor() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/aspeed-vhub/
H A Dhub.c163 u16 wIndex, u16 wValue) in ast_vhub_hub_dev_status() argument
186 u16 wIndex, u16 wValue) in ast_vhub_hub_ep_status() argument
205 u16 wIndex, u16 wValue, in ast_vhub_hub_dev_feature() argument
209 is_set ? "SET" : "CLEAR", wValue); in ast_vhub_hub_dev_feature()
211 if (wValue != USB_DEVICE_REMOTE_WAKEUP) in ast_vhub_hub_dev_feature()
222 u16 wIndex, u16 wValue, in ast_vhub_hub_ep_feature() argument
230 is_set ? "SET" : "CLEAR", ep_num, wValue); in ast_vhub_hub_ep_feature()
234 if (wValue != USB_ENDPOINT_HALT) in ast_vhub_hub_ep_feature()
381 u16 wValue, wIndex, wLength; in ast_vhub_std_hub_request() local
383 wValue = le16_to_cpu(crq->wValue); in ast_vhub_std_hub_request()
[all …]
H A Ddev.c115 u16 wIndex, u16 wValue, in ast_vhub_dev_feature() argument
119 is_set ? "SET" : "CLEAR", wValue); in ast_vhub_dev_feature()
121 if (wValue != USB_DEVICE_REMOTE_WAKEUP) in ast_vhub_dev_feature()
130 u16 wIndex, u16 wValue, bool is_set) in ast_vhub_ep_feature() argument
137 is_set ? "SET" : "CLEAR", ep_num, wValue); in ast_vhub_ep_feature()
142 if (wValue != USB_ENDPOINT_HALT) in ast_vhub_ep_feature()
162 u16 wIndex, u16 wValue) in ast_vhub_dev_status() argument
176 u16 wIndex, u16 wValue) in ast_vhub_ep_status() argument
216 u16 wValue, wIndex; in ast_vhub_std_dev_request() local
241 wValue = le16_to_cpu(crq->wValue); in ast_vhub_std_dev_request()
[all …]
/OK3568_Linux_fs/u-boot/drivers/usb/gadget/
H A Dep0.c404 le16_to_cpu (request->wValue), le16_to_cpu (request->wIndex), in ep0_recv_setup()
484 le16_to_cpu (request->wValue) >> 8, in ep0_recv_setup()
485 le16_to_cpu (request->wValue) & 0xff); in ep0_recv_setup()
530 dbg_ep0 (0, "ENDPOINT: %x", le16_to_cpu (request->wValue)); in ep0_recv_setup()
531 if (le16_to_cpu (request->wValue) == USB_ENDPOINT_HALT) { in ep0_recv_setup()
540 le16_to_cpu (request->wValue)); in ep0_recv_setup()
549 le16_to_cpu (request->wValue), in ep0_recv_setup()
553 address = le16_to_cpu (request->wValue); in ep0_recv_setup()
572 device->configuration = le16_to_cpu(request->wValue) & 0xff; in ep0_recv_setup()
583 device->alternate = le16_to_cpu (request->wValue); in ep0_recv_setup()
H A Dether.c1140 event->wValue = __constant_cpu_to_le16(0); in eth_status_complete()
1190 event->wValue = __constant_cpu_to_le16(1); /* connected */ in issue_start_status()
1254 u16 wValue = le16_to_cpu(ctrl->wValue); in eth_setup() local
1270 switch (wValue >> 8) { in eth_setup()
1290 wValue >> 8, in eth_setup()
1291 wValue & 0xff, in eth_setup()
1299 wValue & 0xff, req->buf); in eth_setup()
1315 value = eth_set_config(dev, wValue, GFP_ATOMIC); in eth_setup()
1353 if (wValue != 0) in eth_setup()
1363 if (wValue > 1) in eth_setup()
[all …]
H A Dfotg210.c368 debug("fotg210: set_cfg(%d)\n", req->wValue & 0x00FF); in fotg210_setup()
369 if (!(req->wValue & 0x00FF)) { in fotg210_setup()
381 debug("fotg210: set_addr(0x%04X)\n", req->wValue); in fotg210_setup()
383 chip->addr = req->wValue & DEVADDR_ADDR_MASK; in fotg210_setup()
390 req->bRequestType & 0x03, req->wValue); in fotg210_setup()
391 switch (req->wValue) { in fotg210_setup()
406 req->wValue, req->wIndex & 0xf); in fotg210_setup()
407 switch (req->wValue) { in fotg210_setup()
/OK3568_Linux_fs/kernel/drivers/usb/musb/
H A Dmusb_virthub.c264 u16 wValue, in musb_hub_control() argument
289 switch (wValue) { in musb_hub_control()
301 switch (wValue) { in musb_hub_control()
320 musb_dbg(musb, "clear feature %d", wValue); in musb_hub_control()
321 musb->port1_status &= ~(1 << wValue); in musb_hub_control()
361 switch (wValue) { in musb_hub_control()
425 musb_dbg(musb, "set feature %d", wValue); in musb_hub_control()
426 musb->port1_status |= 1 << wValue; in musb_hub_control()
/OK3568_Linux_fs/kernel/drivers/usb/dwc3/
H A Dep0.c351 value = le16_to_cpu(ctrl->wValue); in dwc3_ep0_handle_status()
480 u32 wValue; in dwc3_ep0_handle_device() local
484 wValue = le16_to_cpu(ctrl->wValue); in dwc3_ep0_handle_device()
488 switch (wValue) { in dwc3_ep0_handle_device()
517 u32 wValue; in dwc3_ep0_handle_intf() local
520 wValue = le16_to_cpu(ctrl->wValue); in dwc3_ep0_handle_intf()
522 switch (wValue) { in dwc3_ep0_handle_intf()
543 u32 wValue; in dwc3_ep0_handle_endpoint() local
546 wValue = le16_to_cpu(ctrl->wValue); in dwc3_ep0_handle_endpoint()
548 switch (wValue) { in dwc3_ep0_handle_endpoint()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/host/
H A Dfhci-hub.c202 int fhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in fhci_hub_control() argument
217 switch (wValue) { in fhci_hub_control()
226 fhci->vroot_hub->feature &= (1 << wValue); in fhci_hub_control()
228 switch (wValue) { in fhci_hub_control()
286 switch (wValue) { in fhci_hub_control()
295 fhci->vroot_hub->feature |= (1 << wValue); in fhci_hub_control()
297 switch (wValue) { in fhci_hub_control()
H A Dohci-s3c2410.c165 u16 wValue, in ohci_s3c2410_hub_control() argument
177 hcd, typeReq, wValue, wIndex, buf, wLength); in ohci_s3c2410_hub_control()
183 ret = ohci_hub_control(hcd, typeReq, wValue, in ohci_s3c2410_hub_control()
192 if (wValue == USB_PORT_FEAT_POWER) { in ohci_s3c2410_hub_control()
200 switch (wValue) { in ohci_s3c2410_hub_control()
233 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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/drivers/usb/cdns3/
H A Dep0.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()
/OK3568_Linux_fs/u-boot/drivers/usb/musb/
H A Dmusb_hcd.c468 u16 wValue; in musb_submit_rh_msg() local
479 wValue = swap_16(cmd->value); in musb_submit_rh_msg()
485 bmRType_bReq, wValue, wIndex, wLength); in musb_submit_rh_msg()
538 switch (wValue) { in musb_submit_rh_msg()
544 port_status &= ~(1 << wValue); in musb_submit_rh_msg()
550 switch (wValue) { in musb_submit_rh_msg()
561 port_status &= ~(1 << wValue); in musb_submit_rh_msg()
567 switch (wValue) { in musb_submit_rh_msg()
605 port_status &= ~(1 << wValue); in musb_submit_rh_msg()
611 switch (wValue) { in musb_submit_rh_msg()
[all …]
/OK3568_Linux_fs/u-boot/drivers/usb/host/
H A Dsl811-hcd.c538 __u16 wValue = le16_to_cpu (cmd->value); in sl811_rh_submit_urb() local
552 bmRType_bReq, bmRType_bReq, wValue, wIndex, wLength); in sl811_rh_submit_urb()
583 switch (wValue) { in sl811_rh_submit_urb()
590 switch (wValue) { in sl811_rh_submit_urb()
600 switch (wValue) { in sl811_rh_submit_urb()
636 switch (wValue) { in sl811_rh_submit_urb()
660 root_hub_devnum = wValue; in sl811_rh_submit_urb()
664 switch ((wValue & 0xff00) >> 8) { in sl811_rh_submit_urb()
676 len = usb_root_hub_string(wValue & 0xff, (int)(long)0, "SL811HS", data, wLength); in sl811_rh_submit_urb()
H A Dr8a66597-hcd.c571 __u16 wValue; in r8a66597_submit_rh_msg() local
583 wValue = cpu_to_le16 (cmd->value); in r8a66597_submit_rh_msg()
613 switch (wValue) { in r8a66597_submit_rh_msg()
621 switch (wValue) { in r8a66597_submit_rh_msg()
634 r8a66597->rh_devnum = wValue; in r8a66597_submit_rh_msg()
637 switch ((wValue & 0xff00) >> 8) { in r8a66597_submit_rh_msg()
655 if (wValue == 0x0300) { in r8a66597_submit_rh_msg()
663 if (wValue == 0x0301) { in r8a66597_submit_rh_msg()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/drivers/usb/usbip/
H A Dvhci_hcd.c34 static int vhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
315 static int vhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in vhci_hub_control() argument
335 usbip_dbg_vhci_rh("typeReq %x wValue %x wIndex %x\n", typeReq, wValue, in vhci_hub_control()
373 switch (wValue) { in vhci_hub_control()
398 wValue); in vhci_hub_control()
399 if (wValue >= 32) in vhci_hub_control()
401 vhci_hcd->port_status[rhport] &= ~(1 << wValue); 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()
[all …]
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/u-boot/drivers/usb/dwc3/
H A Dep0.c392 u32 wValue; in dwc3_ep0_handle_feature() local
398 wValue = le16_to_cpu(ctrl->wValue); in dwc3_ep0_handle_feature()
406 switch (wValue) { in dwc3_ep0_handle_feature()
459 switch (wValue) { in dwc3_ep0_handle_feature()
474 switch (wValue) { in dwc3_ep0_handle_feature()
503 addr = le16_to_cpu(ctrl->wValue); in dwc3_ep0_set_address()
545 cfg = le16_to_cpu(ctrl->wValue); in dwc3_ep0_set_config()
675 u16 wValue; in dwc3_ep0_set_isoch_delay() local
678 wValue = le16_to_cpu(ctrl->wValue); in dwc3_ep0_set_isoch_delay()
689 dwc->isoch_delay = wValue; in dwc3_ep0_set_isoch_delay()
/OK3568_Linux_fs/u-boot/drivers/usb/cdns3/
H A Dep0.c152 u32 config = le16_to_cpu(ctrl_req->wValue); in cdns3_req_ep0_set_configuration()
211 addr = le16_to_cpu(ctrl_req->wValue); in cdns3_req_ep0_set_address()
310 switch (ctrl->wValue) { in cdns3_ep0_feature_handle_device()
369 u32 wValue; in cdns3_ep0_feature_handle_intf() local
372 wValue = le16_to_cpu(ctrl->wValue); in cdns3_ep0_feature_handle_intf()
374 switch (wValue) { in cdns3_ep0_feature_handle_intf()
392 if (le16_to_cpu(ctrl->wValue) != USB_ENDPOINT_HALT) in cdns3_ep0_feature_handle_endpoint()
486 priv_dev->isoch_delay = ctrl_req->wValue; in cdns3_req_ep0_set_isoch_delay()
/OK3568_Linux_fs/kernel/drivers/usb/renesas_usbhs/
H A Dmod_host.c779 req.wValue = usbhsh_device_number(hpriv, udev); in usbhsh_setup_stage_packet_push()
780 dev_dbg(dev, "create new address - %d\n", req.wValue); 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
1234 static int usbhsh_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in usbhsh_hub_control() argument
[all …]
/OK3568_Linux_fs/kernel/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()
1146 static int ep0_handle_feature_dev(struct bdc *bdc, u16 wValue, in ep0_handle_feature_dev() argument
1154 switch (wValue) { in ep0_handle_feature_dev()
1221 dev_err(bdc->dev, "Unknown wValue:%d\n", 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()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/mtu3/
H A Dmtu3_trace.h96 __field(__u16, wValue)
103 __entry->wValue = le16_to_cpu(setup->wValue);
109 __entry->wValue, __entry->wIndex, __entry->wLength
/OK3568_Linux_fs/kernel/drivers/media/usb/cx231xx/
H A Dcx231xx-core.c163 ven_req.wValue = (req_data->dev_addr << 9 | _i2c_period << 4 | in cx231xx_send_usb_command()
355 ven_req->wValue = ven_req->wValue & 0xFFFB; in cx231xx_send_vendor_cmd()
356 ven_req->wValue = (ven_req->wValue & 0xFFBD) | 0x2; in cx231xx_send_vendor_cmd()
359 ven_req->wValue, ven_req->wIndex, pdata, in cx231xx_send_vendor_cmd()
364 ven_req->wValue = (ven_req->wValue & 0xFFBD) | 0x42; in cx231xx_send_vendor_cmd()
370 ven_req->wValue, ven_req->wIndex, pdata, in cx231xx_send_vendor_cmd()
376 ven_req->wValue = (ven_req->wValue & 0xFFBD) | 0x40; in cx231xx_send_vendor_cmd()
380 ven_req->wValue, ven_req->wIndex, pdata, in cx231xx_send_vendor_cmd()
385 ven_req->wValue, ven_req->wIndex, in cx231xx_send_vendor_cmd()
1479 ven_req.wValue = (u16) (gpio_bit >> 16 & 0xffff); in cx231xx_send_gpio_cmd()

12345678910