| /linux/drivers/usb/common/ |
| H A D | debug.c | 34 static const char *usb_decode_device_feature(u16 wValue) in usb_decode_device_feature() argument 36 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() 87 wValue == USB_INTRF_FUNC_SUSPEND ? in usb_decode_set_clear_feature() 93 wValue == USB_ENDPOINT_HALT ? "Halt" : "UNKNOWN", in usb_decode_set_clear_feature() 100 static void usb_decode_set_address(__u16 wValue, char *str, size_t size) in usb_decode_set_address() argument 102 snprintf(str, size, "Set Address(Addr = %02x)", wValue); in usb_decode_set_address() 106 __u16 wValue, __u16 wIndex, in usb_decode_get_set_descriptor() argument [all …]
|
| /linux/drivers/usb/gadget/udc/aspeed-vhub/ |
| H A D | dev.c | 109 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 142 is_set ? "SET" : "CLEAR", ep_num, wValue); in ast_vhub_ep_feature() 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 [all …]
|
| /linux/drivers/usb/cdns3/ |
| H A D | cdnsp-ep0.c | 60 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 D | cdns3-ep0.c | 140 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()
|
| /linux/drivers/usb/gadget/udc/cdns2/ |
| H A D | cdns2-ep0.c | 124 u32 config = le16_to_cpu(ctrl_req->wValue); in cdns2_req_ep0_set_configuration() 217 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() [all …]
|
| /linux/drivers/usb/musb/ |
| H A D | musb_virthub.c | 263 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()
|
| /linux/drivers/usb/host/ |
| H A D | fhci-hub.c | 201 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 D | uhci-hub.c | 243 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()
|
| H A D | ohci-at91.c | 351 static int ohci_at91_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in ohci_at91_hub_control() argument 362 hcd, typeReq, wValue, wIndex, buf, wLength); in ohci_at91_hub_control() 368 switch (wValue) { in ohci_at91_hub_control() 389 switch (wValue) { in ohci_at91_hub_control() 431 ret = ohci_hub_control(hcd, typeReq, wValue, wIndex + 1, buf, wLength); in ohci_at91_hub_control()
|
| H A D | ohci-da8xx.c | 34 u16 wValue, u16 wIndex, char *buf, u16 wLength); 284 static int ohci_da8xx_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in ohci_da8xx_hub_control() argument 325 switch (wValue) { in ohci_da8xx_hub_control() 344 return orig_ohci_hub_control(hcd, typeReq, wValue, in ohci_da8xx_hub_control()
|
| H A D | ohci-hub.c | 679 u16 wValue, in ohci_hub_control() argument 694 switch (wValue) { in ohci_hub_control() 710 switch (wValue) { in ohci_hub_control() 760 switch (wValue) { in ohci_hub_control() 773 switch (wValue) { in ohci_hub_control()
|
| H A D | ehci-brcm.c | 55 u16 wValue, in ehci_brcm_hub_control() argument 91 retval = ehci_hub_control(hcd, typeReq, wValue, wIndex, buf, wLength); in ehci_brcm_hub_control()
|
| /linux/drivers/media/usb/gspca/ |
| H A D | dtcs033.c | 19 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()
|
| /linux/drivers/usb/c67x00/ |
| H A D | c67x00-hcd.c | 66 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()
|
| /linux/drivers/usb/usbip/ |
| H A D | vhci_hcd.c | 35 static int vhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, 316 static int vhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, in vhci_hub_control() argument 336 usbip_dbg_vhci_rh("typeReq %x wValue %x wIndex %x\n", typeReq, wValue, in vhci_hub_control() 375 switch (wValue) { in vhci_hub_control() 400 wValue); in vhci_hub_control() 401 if (wValue >= 32) in vhci_hub_control() 403 vhci_hcd->port_status[rhport] &= ~(1 << wValue); in vhci_hub_control() 411 wValue != (USB_DT_SS_HUB << 8))) { in vhci_hub_control() 425 if ((wValue >> 8) != USB_DT_BOS) in vhci_hub_control() 505 switch (wValue) { in vhci_hub_control() [all …]
|
| H A D | stub_rx.c | 23 (req->wValue == USB_ENDPOINT_HALT); in is_clear_halt_cmd() 53 value = le16_to_cpu(req->wValue); in is_reset_device_cmd() 111 alternate = le16_to_cpu(req->wValue); in tweak_set_interface_cmd() 139 config = le16_to_cpu(req->wValue); in tweak_set_configuration_cmd()
|
| /linux/drivers/staging/greybus/ |
| H A D | usb.c | 24 __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()
|
| /linux/drivers/usb/renesas_usbhs/ |
| H A D | mod_host.c | 779 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 …]
|
| /linux/drivers/media/usb/cx231xx/ |
| H A D | cx231xx-core.c | 163 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() 1478 ven_req.wValue = (u16) (gpio_bit >> 16 & 0xffff); in cx231xx_send_gpio_cmd()
|
| /linux/drivers/input/misc/ |
| H A D | powermate.c | 130 pm->configcr->wValue = cpu_to_le16( SET_PULSE_ASLEEP ); in powermate_sync_state() 134 pm->configcr->wValue = cpu_to_le16( SET_PULSE_AWAKE ); in powermate_sync_state() 166 pm->configcr->wValue = cpu_to_le16( (pm->pulse_table << 8) | SET_PULSE_MODE ); in powermate_sync_state() 170 pm->configcr->wValue = cpu_to_le16( SET_STATIC_BRIGHTNESS ); in powermate_sync_state()
|
| /linux/drivers/hid/ |
| H A D | hid-thrustmaster.c | 132 .wValue = 0, 140 .wValue = 0, // Will be filled by the driver 253 tm_wheel->change_request->wValue = cpu_to_le16(twi->switch_value); in thrustmaster_model_handler()
|
| /linux/drivers/media/usb/b2c2/ |
| H A D | flexcop-usb.c | 233 u16 wValue, wIndex; in flexcop_usb_i2c_req() local 262 wValue = (func << 8) | (i2c->port << 4); in flexcop_usb_i2c_req() 267 wValue & 0xff, wValue >> 8, in flexcop_usb_i2c_req() 278 wValue, in flexcop_usb_i2c_req()
|
| /linux/drivers/usb/gadget/udc/ |
| H A D | renesas_usbf.c | 2241 u16 wValue; in usbf_req_get_status() local 2244 wValue = le16_to_cpu(ctrlrequest->wValue); in usbf_req_get_status() 2250 if ((wValue != 0) || (wIndex != 0) || (wLength != 2)) in usbf_req_get_status() 2263 if ((wValue != 0) || (wLength != 2)) in usbf_req_get_status() 2276 if ((wValue != 0) || (wLength != 2)) in usbf_req_get_status() 2301 u16 wValue; in usbf_req_clear_set_feature() local 2304 wValue = le16_to_cpu(ctrlrequest->wValue); in usbf_req_clear_set_feature() 2313 if (wValue != cpu_to_le16(USB_DEVICE_REMOTE_WAKEUP)) in usbf_req_clear_set_feature() 2374 u16 wValue; in usbf_req_set_address() local 2378 wValue = le16_to_cpu(ctrlrequest->wValue); in usbf_req_set_address() [all …]
|
| /linux/drivers/usb/core/ |
| H A D | hcd.c | 454 u16 typeReq, wValue, wIndex, wLength; in rh_call_control() local 475 wValue = le16_to_cpu (cmd->wValue); in rh_call_control() 525 if (wValue == USB_DEVICE_REMOTE_WAKEUP) in rh_call_control() 532 && wValue == USB_DEVICE_REMOTE_WAKEUP) in rh_call_control() 544 switch (wValue & 0xff00) { in rh_call_control() 590 if ((wValue & 0xff) < 4) in rh_call_control() 591 urb->actual_length = rh_string(wValue & 0xff, in rh_call_control() 611 wValue); in rh_call_control() 639 if (wValue == HUB_PORT_STATUS) in rh_call_control() 653 typeReq, wValue, wIndex, in rh_call_control() [all …]
|
| /linux/include/linux/usb/ |
| H A D | ch9.h | 56 __u8 bRequest, __u16 wValue, __u16 wIndex,
|