Home
last modified time | relevance | path

Searched refs:w_value (Results 1 – 20 of 20) sorted by relevance

/linux-6.1.9/drivers/usb/usbip/
Dvudc_transfer.c65 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()
/linux-6.1.9/drivers/usb/gadget/function/
Df_uac1_legacy.c392 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 …]
Df_uac1.c437 u16 w_value = le16_to_cpu(cr->wValue); in in_rq_cur() local
439 u8 control_selector = w_value >> 8; in in_rq_cur()
488 u16 w_value = le16_to_cpu(cr->wValue); in in_rq_min() local
490 u8 control_selector = w_value >> 8; in in_rq_min()
535 u16 w_value = le16_to_cpu(cr->wValue); in in_rq_max() local
537 u8 control_selector = w_value >> 8; in in_rq_max()
582 u16 w_value = le16_to_cpu(cr->wValue); in in_rq_res() local
584 u8 control_selector = w_value >> 8; in in_rq_res()
630 u16 w_value = le16_to_cpu(cr->wValue); in out_rq_cur_complete() local
632 u8 control_selector = w_value >> 8; in out_rq_cur_complete()
[all …]
Df_ncm.c689 u16 w_value = le16_to_cpu(ctrl->wValue); in ncm_setup() local
705 DBG(cdev, "packet filter %02x\n", w_value); in ncm_setup()
711 ncm->port.cdc_filter = w_value; in ncm_setup()
727 if (w_length == 0 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
738 if (w_length < 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
749 if (w_length != 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
764 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
778 switch (w_value) { in ncm_setup()
798 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
812 switch (w_value) { in ncm_setup()
[all …]
Df_ecm.c475 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()
Df_acm.c335 u16 w_value = le16_to_cpu(ctrl->wValue); in acm_setup() local
383 acm->port_handshake_bits = w_value; in acm_setup()
391 acm_send_break(&acm->port, 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()
Df_rndis.c472 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()
Df_uac2.c1363 u16 w_index, w_value; in afunc_notify() local
1387 w_value = cs << 8; in afunc_notify()
1392 msg->wValue = cpu_to_le16(w_value); in afunc_notify()
1520 u16 w_value = le16_to_cpu(cr->wValue); in in_rq_cur() local
1522 u8 control_selector = w_value >> 8; in in_rq_cur()
1597 u16 w_value = le16_to_cpu(cr->wValue); in in_rq_range() local
1599 u8 control_selector = w_value >> 8; in in_rq_range()
1720 u16 w_value = le16_to_cpu(cr->wValue); in out_rq_cur_complete() local
1722 u8 control_selector = w_value >> 8; in out_rq_cur_complete()
1769 u16 w_value = le16_to_cpu(cr->wValue); in out_rq_cur() local
[all …]
Df_sourcesink.c771 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()
Df_eem.c175 u16 w_value = le16_to_cpu(ctrl->wValue); in eem_setup() local
180 w_value, w_index, w_length); in eem_setup()
Df_printer.c944 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()
Df_mass_storage.c462 u16 w_value = le16_to_cpu(ctrl->wValue); in fsg_setup() local
479 if (w_index != fsg->interface_number || w_value != 0 || in fsg_setup()
495 if (w_index != fsg->interface_number || w_value != 0 || in fsg_setup()
Df_tcm.c424 u16 w_value = le16_to_cpu(ctrl->wValue); in usbg_bot_setup() local
437 if (w_value != 0) in usbg_bot_setup()
/linux-6.1.9/drivers/usb/gadget/
Dcomposite.c565 static int config_desc(struct usb_composite_dev *cdev, unsigned w_value) in config_desc() argument
570 u8 type = w_value >> 8; in config_desc()
587 w_value &= 0xff; in config_desc()
621 if (w_value == 0) in config_desc()
623 w_value--; in config_desc()
1691 u16 w_value = le16_to_cpu(ctrl->wValue); in composite_setup() local
1732 switch (w_value >> 8) { in composite_setup()
1770 value = config_desc(cdev, w_value); in composite_setup()
1776 w_index, w_value & 0xff); in composite_setup()
1829 value = set_config(cdev, ctrl, w_value); in composite_setup()
[all …]
/linux-6.1.9/drivers/usb/gadget/udc/
Ddummy_hcd.c1621 unsigned w_value; in handle_control_request() local
1624 w_value = le16_to_cpu(setup->wValue); in handle_control_request()
1629 dum->address = w_value; in handle_control_request()
1632 w_value); in handle_control_request()
1638 switch (w_value) { in handle_control_request()
1653 w_value = USB_DEV_STAT_U1_ENABLED; in handle_control_request()
1660 w_value = USB_DEV_STAT_U2_ENABLED; in handle_control_request()
1667 w_value = USB_DEV_STAT_LTM_ENABLED; in handle_control_request()
1675 dum->devstatus |= (1 << w_value); in handle_control_request()
1693 switch (w_value) { in handle_control_request()
[all …]
Dat91_udc.c1083 #define w_value le16_to_cpu(pkt.r.wValue) in handle_setup() macro
1088 w_value, w_index, w_length); in handle_setup()
1103 udc->addr = w_value; in handle_setup()
1137 if (w_value != USB_DEVICE_REMOTE_WAKEUP) in handle_setup()
1145 if (w_value != USB_DEVICE_REMOTE_WAKEUP) in handle_setup()
1200 if (w_value != USB_ENDPOINT_HALT || tmp >= NUM_ENDPOINTS) in handle_setup()
1219 if (w_value != USB_ENDPOINT_HALT || tmp >= NUM_ENDPOINTS) in handle_setup()
1242 #undef w_value in handle_setup()
Dnet2280.c2871 #define w_value le16_to_cpu(r.wValue) in handle_stat0_irqs_superspeed() macro
2877 dev->addressed_state = !w_value; in handle_stat0_irqs_superspeed()
2915 switch (w_value) { in handle_stat0_irqs_superspeed()
2944 if (w_value == USB_DEVICE_REMOTE_WAKEUP) { in handle_stat0_irqs_superspeed()
2958 if (w_value != USB_ENDPOINT_HALT) in handle_stat0_irqs_superspeed()
2981 switch (w_value) { in handle_stat0_irqs_superspeed()
3010 if (w_value == USB_DEVICE_REMOTE_WAKEUP) { in handle_stat0_irqs_superspeed()
3022 if (!e || (w_value != USB_ENDPOINT_HALT)) in handle_stat0_irqs_superspeed()
3045 w_value, w_index, w_length, in handle_stat0_irqs_superspeed()
3066 #undef w_value in handle_stat0_irqs_superspeed()
[all …]
Domap_udc.c1529 #define w_value le16_to_cpu(u.r.wValue) in ep0_irq() macro
1550 udc->ep0_reset_config = (w_value == 0); in ep0_irq()
1551 VDBG("set config %d\n", w_value); in ep0_irq()
1567 if (w_value != USB_ENDPOINT_HALT in ep0_irq()
1596 if (w_value != USB_ENDPOINT_HALT in ep0_irq()
1681 w_value, w_index, w_length); in ep0_irq()
1683 #undef w_value in ep0_irq()
Drenesas_usb3.c1655 u16 w_value = le16_to_cpu(ctrl->wValue); in usb3_std_req_feature_device() local
1657 switch (w_value) { in usb3_std_req_feature_device()
1668 if (w_value == USB_DEVICE_U1_ENABLE) in usb3_std_req_feature_device()
1670 if (w_value == USB_DEVICE_U2_ENABLE) in usb3_std_req_feature_device()
/linux-6.1.9/drivers/usb/gadget/legacy/
Dinode.c1335 u16 w_value = le16_to_cpu(ctrl->wValue); in gadgetfs_setup() local
1383 switch (w_value >> 8) { in gadgetfs_setup()
1400 w_value >> 8, in gadgetfs_setup()
1401 w_value & 0xff); in gadgetfs_setup()
1417 if (0 == (u8) w_value) { in gadgetfs_setup()
1434 if (config == (u8) w_value) { in gadgetfs_setup()
1475 w_value, le16_to_cpu(ctrl->wIndex), w_length); in gadgetfs_setup()