/drivers/usb/usbip/ |
D | vudc_transfer.c | 77 unsigned int w_value; in handle_control_request() local 80 w_value = le16_to_cpu(setup->wValue); in handle_control_request() 85 udc->address = w_value; in handle_control_request() 92 switch (w_value) { in handle_control_request() 108 udc->devstatus |= (1 << w_value); in handle_control_request() 126 switch (w_value) { in handle_control_request() 128 w_value = USB_DEVICE_REMOTE_WAKEUP; in handle_control_request() 141 udc->devstatus &= ~(1 << w_value); in handle_control_request()
|
/drivers/usb/gadget/function/ |
D | f_uac1_legacy.c | 393 u16 w_value = le16_to_cpu(ctrl->wValue); in audio_set_intf_req() local 394 u8 con_sel = (w_value >> 8) & 0xFF; in audio_set_intf_req() 400 ctrl->bRequest, w_value, len, id); in audio_set_intf_req() 430 u16 w_value = le16_to_cpu(ctrl->wValue); in audio_get_intf_req() local 431 u8 con_sel = (w_value >> 8) & 0xFF; in audio_get_intf_req() 437 ctrl->bRequest, w_value, len, id); in audio_get_intf_req() 466 u16 w_value = le16_to_cpu(ctrl->wValue); in audio_set_endpoint_req() local 469 ctrl->bRequest, w_value, len, ep); in audio_set_endpoint_req() 502 u16 w_value = le16_to_cpu(ctrl->wValue); in audio_get_endpoint_req() local 505 ctrl->bRequest, w_value, len, ep); in audio_get_endpoint_req() [all …]
|
D | f_uac1.c | 332 u16 w_value = le16_to_cpu(ctrl->wValue); in audio_set_endpoint_req() local 335 ctrl->bRequest, w_value, len, ep); in audio_set_endpoint_req() 368 u16 w_value = le16_to_cpu(ctrl->wValue); in audio_get_endpoint_req() local 371 ctrl->bRequest, w_value, len, ep); in audio_get_endpoint_req() 396 u16 w_value = le16_to_cpu(ctrl->wValue); in f_audio_setup() local 414 w_value, w_index, w_length); in f_audio_setup() 421 w_value, w_index, w_length); in f_audio_setup()
|
D | f_ncm.c | 697 u16 w_value = le16_to_cpu(ctrl->wValue); in ncm_setup() local 713 DBG(cdev, "packet filter %02x\n", w_value); in ncm_setup() 719 ncm->port.cdc_filter = w_value; in ncm_setup() 735 if (w_length == 0 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 746 if (w_length < 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 757 if (w_length != 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 772 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 786 switch (w_value) { in ncm_setup() 806 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 822 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 | 479 u16 w_value = le16_to_cpu(ctrl->wValue); in ecm_setup() local 493 DBG(cdev, "packet filter %02x\n", w_value); in ecm_setup() 498 ecm->port.cdc_filter = w_value; in ecm_setup() 515 w_value, w_index, w_length); in ecm_setup() 522 w_value, w_index, w_length); in ecm_setup()
|
D | f_uac2.c | 695 u16 w_value = le16_to_cpu(cr->wValue); in in_rq_cur() local 697 u8 control_selector = w_value >> 8; in in_rq_cur() 736 u16 w_value = le16_to_cpu(cr->wValue); in in_rq_range() local 738 u8 control_selector = w_value >> 8; in in_rq_range() 785 u16 w_value = le16_to_cpu(cr->wValue); in out_rq_cur() local 786 u8 control_selector = w_value >> 8; in out_rq_cur()
|
D | f_accessory.c | 832 u16 w_value = le16_to_cpu(ctrl->wValue); in acc_ctrlrequest() local 857 dev->audio_mode = w_value; in acc_ctrlrequest() 862 value = acc_register_hid(dev, w_value, w_index); in acc_ctrlrequest() 865 value = acc_unregister_hid(dev, w_value); in acc_ctrlrequest() 868 hid = acc_hid_get(&dev->new_hid_list, w_value); in acc_ctrlrequest() 885 hid = acc_hid_get(&dev->hid_list, w_value); in acc_ctrlrequest() 927 w_value, w_index, w_length); in acc_ctrlrequest()
|
D | f_rndis.c | 474 u16 w_value = le16_to_cpu(ctrl->wValue); in rndis_setup() local 487 if (w_value || w_index != rndis->ctrl_id) in rndis_setup() 498 if (w_value || w_index != rndis->ctrl_id) in rndis_setup() 521 w_value, w_index, w_length); in rndis_setup() 528 w_value, w_index, w_length); in rndis_setup()
|
D | f_acm.c | 346 u16 w_value = le16_to_cpu(ctrl->wValue); in acm_setup() local 394 acm->port_handshake_bits = w_value; in acm_setup() 402 w_value, w_index, w_length); in acm_setup() 410 w_value, w_index, w_length); in acm_setup()
|
D | f_sourcesink.c | 772 u16 w_value = le16_to_cpu(ctrl->wValue); in sourcesink_setup() local 794 if (w_value || w_index) in sourcesink_setup() 804 if (w_value || w_index) in sourcesink_setup() 817 w_value, w_index, w_length); in sourcesink_setup() 824 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 | 901 u16 w_value = le16_to_cpu(ctrl->wValue); in gprinter_req_match() local 918 if (!w_value && w_length == 1 && in gprinter_req_match() 923 if (!w_value && !w_length && in gprinter_req_match()
|
D | f_mass_storage.c | 494 u16 w_value = le16_to_cpu(ctrl->wValue); in fsg_setup() local 511 if (w_index != fsg->interface_number || w_value != 0 || in fsg_setup() 527 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 | 504 static int config_desc(struct usb_composite_dev *cdev, unsigned w_value) in config_desc() argument 509 u8 type = w_value >> 8; in config_desc() 526 w_value &= 0xff; in config_desc() 560 if (w_value == 0) in config_desc() 562 w_value--; in config_desc() 1574 u16 w_value = le16_to_cpu(ctrl->wValue); in composite_setup() local 1602 switch (w_value >> 8) { in composite_setup() 1640 value = config_desc(cdev, w_value); in composite_setup() 1646 w_index, w_value & 0xff); in composite_setup() 1699 value = set_config(cdev, ctrl, w_value); in composite_setup() [all …]
|
/drivers/usb/gadget/udc/ |
D | dummy_hcd.c | 1605 unsigned w_value; in handle_control_request() local 1608 w_value = le16_to_cpu(setup->wValue); in handle_control_request() 1613 dum->address = w_value; in handle_control_request() 1616 w_value); in handle_control_request() 1622 switch (w_value) { in handle_control_request() 1637 w_value = USB_DEV_STAT_U1_ENABLED; in handle_control_request() 1644 w_value = USB_DEV_STAT_U2_ENABLED; in handle_control_request() 1651 w_value = USB_DEV_STAT_LTM_ENABLED; in handle_control_request() 1659 dum->devstatus |= (1 << w_value); in handle_control_request() 1677 switch (w_value) { in handle_control_request() [all …]
|
D | at91_udc.c | 1098 #define w_value le16_to_cpu(pkt.r.wValue) in handle_setup() macro 1103 w_value, w_index, w_length); in handle_setup() 1118 udc->addr = w_value; in handle_setup() 1152 if (w_value != USB_DEVICE_REMOTE_WAKEUP) in handle_setup() 1160 if (w_value != USB_DEVICE_REMOTE_WAKEUP) in handle_setup() 1215 if (w_value != USB_ENDPOINT_HALT || tmp >= NUM_ENDPOINTS) in handle_setup() 1234 if (w_value != USB_ENDPOINT_HALT || tmp >= NUM_ENDPOINTS) in handle_setup() 1257 #undef w_value in handle_setup()
|
D | net2280.c | 2864 #define w_value le16_to_cpu(r.wValue) in handle_stat0_irqs_superspeed() macro 2873 dev->addressed_state = !w_value; in handle_stat0_irqs_superspeed() 2911 switch (w_value) { in handle_stat0_irqs_superspeed() 2940 if (w_value == USB_DEVICE_REMOTE_WAKEUP) { in handle_stat0_irqs_superspeed() 2954 if (w_value != USB_ENDPOINT_HALT) in handle_stat0_irqs_superspeed() 2977 switch (w_value) { in handle_stat0_irqs_superspeed() 3006 if (w_value == USB_DEVICE_REMOTE_WAKEUP) { in handle_stat0_irqs_superspeed() 3018 if (!e || (w_value != USB_ENDPOINT_HALT)) in handle_stat0_irqs_superspeed() 3041 w_value, w_index, w_length, in handle_stat0_irqs_superspeed() 3060 #undef w_value in handle_stat0_irqs_superspeed() [all …]
|
D | omap_udc.c | 1528 #define w_value le16_to_cpu(u.r.wValue) in ep0_irq() macro 1549 udc->ep0_reset_config = (w_value == 0); in ep0_irq() 1550 VDBG("set config %d\n", w_value); in ep0_irq() 1566 if (w_value != USB_ENDPOINT_HALT in ep0_irq() 1595 if (w_value != USB_ENDPOINT_HALT in ep0_irq() 1680 w_value, w_index, w_length); in ep0_irq() 1682 #undef w_value in ep0_irq()
|
D | renesas_usb3.c | 1590 u16 w_value = le16_to_cpu(ctrl->wValue); in usb3_std_req_feature_device() local 1592 switch (w_value) { in usb3_std_req_feature_device() 1603 if (w_value == USB_DEVICE_U1_ENABLE) in usb3_std_req_feature_device() 1605 if (w_value == USB_DEVICE_U2_ENABLE) in usb3_std_req_feature_device()
|
/drivers/usb/gadget/legacy/ |
D | inode.c | 1336 u16 w_value = le16_to_cpu(ctrl->wValue); in gadgetfs_setup() local 1373 switch (w_value >> 8) { in gadgetfs_setup() 1391 w_value >> 8, in gadgetfs_setup() 1392 w_value & 0xff); in gadgetfs_setup() 1408 if (0 == (u8) w_value) { in gadgetfs_setup() 1425 if (config == (u8) w_value) { in gadgetfs_setup() 1466 w_value, le16_to_cpu(ctrl->wIndex), w_length); in gadgetfs_setup()
|