/drivers/usb/usbip/ |
D | vudc_transfer.c | 65 unsigned int w_value; in handle_control_request() local 68 w_value = le16_to_cpu(setup->wValue); in handle_control_request() 73 udc->address = w_value; in handle_control_request() 80 switch (w_value) { in handle_control_request() 96 udc->devstatus |= (1 << w_value); in handle_control_request() 114 switch (w_value) { in handle_control_request() 116 w_value = USB_DEVICE_REMOTE_WAKEUP; in handle_control_request() 129 udc->devstatus &= ~(1 << w_value); in handle_control_request()
|
/drivers/usb/gadget/function/ |
D | f_uac1.c | 407 u16 w_value = le16_to_cpu(cr->wValue); in in_rq_cur() local 409 u8 control_selector = w_value >> 8; in in_rq_cur() 458 u16 w_value = le16_to_cpu(cr->wValue); in in_rq_min() local 460 u8 control_selector = w_value >> 8; in in_rq_min() 505 u16 w_value = le16_to_cpu(cr->wValue); in in_rq_max() local 507 u8 control_selector = w_value >> 8; in in_rq_max() 552 u16 w_value = le16_to_cpu(cr->wValue); in in_rq_res() local 554 u8 control_selector = w_value >> 8; in in_rq_res() 600 u16 w_value = le16_to_cpu(cr->wValue); in out_rq_cur_complete() local 602 u8 control_selector = w_value >> 8; in out_rq_cur_complete() [all …]
|
D | f_uac1_legacy.c | 392 u16 w_value = le16_to_cpu(ctrl->wValue); in audio_set_intf_req() local 393 u8 con_sel = (w_value >> 8) & 0xFF; in audio_set_intf_req() 399 ctrl->bRequest, w_value, len, id); in audio_set_intf_req() 429 u16 w_value = le16_to_cpu(ctrl->wValue); in audio_get_intf_req() local 430 u8 con_sel = (w_value >> 8) & 0xFF; in audio_get_intf_req() 436 ctrl->bRequest, w_value, len, id); in audio_get_intf_req() 465 u16 w_value = le16_to_cpu(ctrl->wValue); in audio_set_endpoint_req() local 468 ctrl->bRequest, w_value, len, ep); in audio_set_endpoint_req() 501 u16 w_value = le16_to_cpu(ctrl->wValue); in audio_get_endpoint_req() local 504 ctrl->bRequest, w_value, len, ep); in audio_get_endpoint_req() [all …]
|
D | f_ncm.c | 693 u16 w_value = le16_to_cpu(ctrl->wValue); in ncm_setup() local 709 DBG(cdev, "packet filter %02x\n", w_value); in ncm_setup() 715 ncm->port.cdc_filter = w_value; in ncm_setup() 731 if (w_length == 0 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 742 if (w_length < 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 753 if (w_length != 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 768 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 782 switch (w_value) { in ncm_setup() 802 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 816 switch (w_value) { in ncm_setup() [all …]
|
D | f_audio_source.c | 473 u16 w_value = le16_to_cpu(ctrl->wValue); in audio_set_endpoint_req() local 476 ctrl->bRequest, w_value, len, ep); in audio_set_endpoint_req() 499 u16 w_value = le16_to_cpu(ctrl->wValue); in audio_get_endpoint_req() local 503 ctrl->bRequest, w_value, len, ep); in audio_get_endpoint_req() 505 if (w_value == UAC_EP_CS_ATTR_SAMPLE_RATE << 8) { in audio_get_endpoint_req() 532 u16 w_value = le16_to_cpu(ctrl->wValue); in audio_setup() local 552 w_value, w_index, w_length); in audio_setup()
|
D | f_ecm.c | 475 u16 w_value = le16_to_cpu(ctrl->wValue); in ecm_setup() local 489 DBG(cdev, "packet filter %02x\n", w_value); in ecm_setup() 494 ecm->port.cdc_filter = w_value; in ecm_setup() 511 w_value, w_index, w_length); in ecm_setup() 518 w_value, w_index, w_length); in ecm_setup()
|
D | f_uac2.c | 1284 u16 w_index, w_value; in afunc_notify() local 1308 w_value = cs << 8; in afunc_notify() 1313 msg->wValue = cpu_to_le16(w_value); in afunc_notify() 1433 u16 w_value = le16_to_cpu(cr->wValue); in in_rq_cur() local 1435 u8 control_selector = w_value >> 8; in in_rq_cur() 1510 u16 w_value = le16_to_cpu(cr->wValue); in in_rq_range() local 1512 u8 control_selector = w_value >> 8; in in_rq_range() 1603 u16 w_value = le16_to_cpu(cr->wValue); in out_rq_cur_complete() local 1605 u8 control_selector = w_value >> 8; in out_rq_cur_complete() 1651 u16 w_value = le16_to_cpu(cr->wValue); in out_rq_cur() local [all …]
|
D | f_rndis.c | 472 u16 w_value = le16_to_cpu(ctrl->wValue); in rndis_setup() local 485 if (w_value || w_index != rndis->ctrl_id) in rndis_setup() 496 if (w_value || w_index != rndis->ctrl_id) in rndis_setup() 519 w_value, w_index, w_length); in rndis_setup() 526 w_value, w_index, w_length); in rndis_setup()
|
D | f_acm.c | 343 u16 w_value = le16_to_cpu(ctrl->wValue); in acm_setup() local 391 acm->port_handshake_bits = w_value; in acm_setup() 399 w_value, w_index, w_length); in acm_setup() 407 w_value, w_index, w_length); in acm_setup()
|
D | f_accessory.c | 986 u16 w_value = le16_to_cpu(ctrl->wValue); in acc_ctrlrequest() local 1012 dev->audio_mode = w_value; in acc_ctrlrequest() 1017 value = acc_register_hid(dev, w_value, w_index); in acc_ctrlrequest() 1020 value = acc_unregister_hid(dev, w_value); in acc_ctrlrequest() 1023 hid = acc_hid_get(&dev->new_hid_list, w_value); in acc_ctrlrequest() 1040 hid = acc_hid_get(&dev->hid_list, w_value); in acc_ctrlrequest() 1083 w_value, w_index, w_length); in acc_ctrlrequest()
|
D | f_sourcesink.c | 771 u16 w_value = le16_to_cpu(ctrl->wValue); in sourcesink_setup() local 793 if (w_value || w_index) in sourcesink_setup() 803 if (w_value || w_index) in sourcesink_setup() 816 w_value, w_index, w_length); in sourcesink_setup() 823 w_value, w_index, w_length); in sourcesink_setup()
|
D | f_eem.c | 175 u16 w_value = le16_to_cpu(ctrl->wValue); in eem_setup() local 180 w_value, w_index, w_length); in eem_setup()
|
D | f_printer.c | 944 u16 w_value = le16_to_cpu(ctrl->wValue); in gprinter_req_match() local 961 if (!w_value && w_length == 1 && in gprinter_req_match() 966 if (!w_value && !w_length && in gprinter_req_match()
|
D | f_mass_storage.c | 461 u16 w_value = le16_to_cpu(ctrl->wValue); in fsg_setup() local 478 if (w_index != fsg->interface_number || w_value != 0 || in fsg_setup() 494 if (w_index != fsg->interface_number || w_value != 0 || in fsg_setup()
|
D | f_tcm.c | 424 u16 w_value = le16_to_cpu(ctrl->wValue); in usbg_bot_setup() local 437 if (w_value != 0) in usbg_bot_setup()
|
/drivers/usb/gadget/ |
D | composite.c | 578 static int config_desc(struct usb_composite_dev *cdev, unsigned w_value) in config_desc() argument 583 u8 type = w_value >> 8; in config_desc() 600 w_value &= 0xff; in config_desc() 634 if (w_value == 0) in config_desc() 636 w_value--; in config_desc() 1712 u16 w_value = le16_to_cpu(ctrl->wValue); in composite_setup() local 1752 switch (w_value >> 8) { in composite_setup() 1790 value = config_desc(cdev, w_value); in composite_setup() 1796 w_index, w_value & 0xff); in composite_setup() 1849 value = set_config(cdev, ctrl, w_value); in composite_setup() [all …]
|
/drivers/usb/gadget/udc/ |
D | dummy_hcd.c | 1620 unsigned w_value; in handle_control_request() local 1623 w_value = le16_to_cpu(setup->wValue); in handle_control_request() 1628 dum->address = w_value; in handle_control_request() 1631 w_value); in handle_control_request() 1637 switch (w_value) { in handle_control_request() 1652 w_value = USB_DEV_STAT_U1_ENABLED; in handle_control_request() 1659 w_value = USB_DEV_STAT_U2_ENABLED; in handle_control_request() 1666 w_value = USB_DEV_STAT_LTM_ENABLED; in handle_control_request() 1674 dum->devstatus |= (1 << w_value); in handle_control_request() 1692 switch (w_value) { in handle_control_request() [all …]
|
D | at91_udc.c | 1081 #define w_value le16_to_cpu(pkt.r.wValue) in handle_setup() macro 1086 w_value, w_index, w_length); in handle_setup() 1101 udc->addr = w_value; in handle_setup() 1135 if (w_value != USB_DEVICE_REMOTE_WAKEUP) in handle_setup() 1143 if (w_value != USB_DEVICE_REMOTE_WAKEUP) in handle_setup() 1198 if (w_value != USB_ENDPOINT_HALT || tmp >= NUM_ENDPOINTS) in handle_setup() 1217 if (w_value != USB_ENDPOINT_HALT || tmp >= NUM_ENDPOINTS) in handle_setup() 1240 #undef w_value in handle_setup()
|
D | net2280.c | 2876 #define w_value le16_to_cpu(r.wValue) in handle_stat0_irqs_superspeed() macro 2882 dev->addressed_state = !w_value; in handle_stat0_irqs_superspeed() 2920 switch (w_value) { in handle_stat0_irqs_superspeed() 2949 if (w_value == USB_DEVICE_REMOTE_WAKEUP) { in handle_stat0_irqs_superspeed() 2963 if (w_value != USB_ENDPOINT_HALT) in handle_stat0_irqs_superspeed() 2986 switch (w_value) { in handle_stat0_irqs_superspeed() 3015 if (w_value == USB_DEVICE_REMOTE_WAKEUP) { in handle_stat0_irqs_superspeed() 3027 if (!e || (w_value != USB_ENDPOINT_HALT)) in handle_stat0_irqs_superspeed() 3050 w_value, w_index, w_length, in handle_stat0_irqs_superspeed() 3071 #undef w_value in handle_stat0_irqs_superspeed() [all …]
|
D | omap_udc.c | 1524 #define w_value le16_to_cpu(u.r.wValue) in ep0_irq() macro 1545 udc->ep0_reset_config = (w_value == 0); in ep0_irq() 1546 VDBG("set config %d\n", w_value); in ep0_irq() 1562 if (w_value != USB_ENDPOINT_HALT in ep0_irq() 1591 if (w_value != USB_ENDPOINT_HALT in ep0_irq() 1676 w_value, w_index, w_length); in ep0_irq() 1678 #undef w_value in ep0_irq()
|
D | renesas_usb3.c | 1638 u16 w_value = le16_to_cpu(ctrl->wValue); in usb3_std_req_feature_device() local 1640 switch (w_value) { in usb3_std_req_feature_device() 1651 if (w_value == USB_DEVICE_U1_ENABLE) in usb3_std_req_feature_device() 1653 if (w_value == USB_DEVICE_U2_ENABLE) in usb3_std_req_feature_device()
|
/drivers/usb/gadget/legacy/ |
D | inode.c | 1338 u16 w_value = le16_to_cpu(ctrl->wValue); in gadgetfs_setup() local 1386 switch (w_value >> 8) { in gadgetfs_setup() 1403 w_value >> 8, in gadgetfs_setup() 1404 w_value & 0xff); in gadgetfs_setup() 1420 if (0 == (u8) w_value) { in gadgetfs_setup() 1437 if (config == (u8) w_value) { in gadgetfs_setup() 1478 w_value, le16_to_cpu(ctrl->wIndex), w_length); in gadgetfs_setup()
|