| /OK3568_Linux_fs/u-boot/drivers/usb/gadget/ |
| H A D | composite.c | 797 u16 w_index = le16_to_cpu(ctrl->wIndex); in composite_setup() local 800 u8 intf = w_index & 0xFF; in composite_setup() 873 w_index, w_value & 0xff); in composite_setup() 935 if (!cdev->config || w_index >= MAX_CONFIG_INTERFACES) in composite_setup() 942 value = f->set_alt(f, w_index, w_value); in composite_setup() 947 if (!cdev->config || w_index >= MAX_CONFIG_INTERFACES) in composite_setup() 953 value = f->get_alt ? f->get_alt(f, w_index) : 0; in composite_setup() 963 w_value, w_index, w_length); in composite_setup() 983 endp = ((w_index & 0x80) >> 3) | (w_index & 0x0f); in composite_setup()
|
| H A D | at91_udc.c | 884 #define w_index le16_to_cpu(pkt.r.wIndex) in handle_setup() macro 890 w_value, w_index, w_length); in handle_setup() 977 tmp = w_index & USB_ENDPOINT_NUMBER_MASK; in handle_setup() 983 if ((w_index & USB_DIR_IN)) { in handle_setup() 1000 tmp = w_index & USB_ENDPOINT_NUMBER_MASK; in handle_setup() 1006 if ((w_index & USB_DIR_IN)) { in handle_setup() 1019 tmp = w_index & USB_ENDPOINT_NUMBER_MASK; in handle_setup() 1027 if ((w_index & USB_DIR_IN)) { in handle_setup() 1045 #undef w_index in handle_setup()
|
| H A D | f_mass_storage.c | 536 u16 w_index = get_unaligned_le16(&ctrl->wIndex); in fsg_setup() local 549 if (w_index != fsg->interface_number || w_value != 0) in fsg_setup() 562 if (w_index != fsg->interface_number || w_value != 0) in fsg_setup() 576 get_unaligned_le16(&ctrl->wValue), w_index, w_length); in fsg_setup()
|
| /OK3568_Linux_fs/kernel/drivers/usb/usbip/ |
| H A D | vudc_transfer.c | 64 unsigned int w_index; in handle_control_request() local 67 w_index = le16_to_cpu(setup->wIndex); in handle_control_request() 101 ep2 = vudc_find_endpoint(udc, w_index); in handle_control_request() 134 ep2 = vudc_find_endpoint(udc, w_index); in handle_control_request() 158 ep2 = vudc_find_endpoint(udc, w_index); in handle_control_request()
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/function/ |
| H A D | f_ncm.c | 692 u16 w_index = le16_to_cpu(ctrl->wIndex); in ncm_setup() local 707 if (w_length != 0 || w_index != ncm->ctrl_id) 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() 780 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup() 802 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup() 814 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup() 842 w_value, w_index, w_length); in ncm_setup() [all …]
|
| H A D | f_acm.c | 342 u16 w_index = le16_to_cpu(ctrl->wIndex); in acm_setup() local 360 || w_index != acm->ctrl_id) in acm_setup() 371 if (w_index != acm->ctrl_id) in acm_setup() 382 if (w_index != acm->ctrl_id) in acm_setup() 399 w_value, w_index, w_length); in acm_setup() 407 w_value, w_index, w_length); in acm_setup()
|
| H A D | f_uac1.c | 654 u16 w_index = le16_to_cpu(cr->wIndex); in in_rq_cur() local 656 u8 entity_id = (w_index >> 8) & 0xff; in in_rq_cur() 705 u16 w_index = le16_to_cpu(cr->wIndex); in in_rq_min() local 707 u8 entity_id = (w_index >> 8) & 0xff; in in_rq_min() 752 u16 w_index = le16_to_cpu(cr->wIndex); in in_rq_max() local 754 u8 entity_id = (w_index >> 8) & 0xff; in in_rq_max() 799 u16 w_index = le16_to_cpu(cr->wIndex); in in_rq_res() local 801 u8 entity_id = (w_index >> 8) & 0xff; in in_rq_res() 847 u16 w_index = le16_to_cpu(cr->wIndex); in out_rq_complete() local 849 u8 entity_id = (w_index >> 8) & 0xff; in out_rq_complete() [all …]
|
| H A D | f_rndis.c | 471 u16 w_index = le16_to_cpu(ctrl->wIndex); 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() 523 if (w_length != 0 || w_index != rndis->ctrl_id) in rndis_setup() 533 w_value, w_index, w_length); in rndis_setup() 540 w_value, w_index, w_length); in rndis_setup()
|
| H A D | f_uac2.c | 1363 u16 w_index, w_value; in afunc_notify() local 1386 w_index = unit_id << 8 | uac2->ac_intf; in afunc_notify() 1391 msg->wIndex = cpu_to_le16(w_index); in afunc_notify() 1519 u16 w_index = le16_to_cpu(cr->wIndex); in in_rq_cur() local 1521 u8 entity_id = (w_index >> 8) & 0xff; in in_rq_cur() 1596 u16 w_index = le16_to_cpu(cr->wIndex); in in_rq_range() local 1598 u8 entity_id = (w_index >> 8) & 0xff; in in_rq_range() 1719 u16 w_index = le16_to_cpu(cr->wIndex); in out_rq_cur_complete() local 1721 u8 entity_id = (w_index >> 8) & 0xff; in out_rq_cur_complete() 1768 u16 w_index = le16_to_cpu(cr->wIndex); in out_rq_cur() local [all …]
|
| H A D | f_ecm.c | 474 u16 w_index = le16_to_cpu(ctrl->wIndex); in ecm_setup() local 487 if (w_length != 0 || w_index != ecm->ctrl_id) in ecm_setup() 511 w_value, w_index, w_length); in ecm_setup() 518 w_value, w_index, w_length); in ecm_setup()
|
| H A D | f_accessory.c | 984 u16 w_index = le16_to_cpu(ctrl->wIndex); in acc_ctrlrequest() local 1005 dev->string_index = w_index; in acc_ctrlrequest() 1010 w_index == 0 && w_length == 0) { in acc_ctrlrequest() 1016 value = acc_register_hid(dev, w_value, w_index); in acc_ctrlrequest() 1028 offset = w_index; in acc_ctrlrequest() 1082 w_value, w_index, w_length); in acc_ctrlrequest()
|
| H A D | f_sourcesink.c | 769 u16 w_index = le16_to_cpu(ctrl->wIndex); in sourcesink_setup() local 792 if (w_value || w_index) in sourcesink_setup() 802 if (w_value || w_index) in sourcesink_setup() 815 w_value, w_index, w_length); in sourcesink_setup() 822 w_value, w_index, w_length); in sourcesink_setup()
|
| H A D | f_eem.c | 174 u16 w_index = le16_to_cpu(ctrl->wIndex); in eem_setup() local 180 w_value, w_index, w_length); in eem_setup()
|
| H A D | f_uac1_legacy.c | 528 u16 w_index = le16_to_cpu(ctrl->wIndex); in f_audio_setup() local 555 w_value, w_index, w_length); in f_audio_setup() 562 w_value, w_index, w_length); in f_audio_setup()
|
| H A D | f_audio_source.c | 531 u16 w_index = le16_to_cpu(ctrl->wIndex); in audio_setup() local 552 w_value, w_index, w_length); in audio_setup()
|
| H A D | f_printer.c | 944 u16 w_index = le16_to_cpu(ctrl->wIndex); in gprinter_req_match() local 957 w_index >>= 8; in gprinter_req_match() 974 return w_index == dev->interface; in gprinter_req_match()
|
| H A D | f_mass_storage.c | 492 u16 w_index = le16_to_cpu(ctrl->wIndex); in fsg_setup() local 510 if (w_index != fsg->interface_number || w_value != 0 || in fsg_setup() 526 if (w_index != fsg->interface_number || w_value != 0 || in fsg_setup() 540 le16_to_cpu(ctrl->wValue), w_index, w_length); in fsg_setup()
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/ |
| H A D | composite.c | 1688 u16 w_index = le16_to_cpu(ctrl->wIndex); in composite_setup() local 1689 u8 intf = w_index & 0xFF; in composite_setup() 1774 w_index, w_value & 0xff); in composite_setup() 1859 value = f->set_alt(f, w_index, w_value); in composite_setup() 1879 value = f->get_alt ? f->get_alt(f, w_index) : 0; in composite_setup() 1887 (w_index == OTG_STS_SELECTOR)) { in composite_setup() 1939 value = f->func_suspend(f, w_index >> 8); in composite_setup() 1972 if (w_index != 0x4 || (w_value >> 8)) in composite_setup() 1974 buf[6] = w_index; in composite_setup() 1988 if (w_index != 0x5 || (w_value >> 8)) in composite_setup() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/ |
| H A D | at91_udc.c | 1080 #define w_index le16_to_cpu(pkt.r.wIndex) in handle_setup() macro 1086 w_value, w_index, w_length); in handle_setup() 1173 tmp = w_index & USB_ENDPOINT_NUMBER_MASK; in handle_setup() 1179 if ((w_index & USB_DIR_IN)) { in handle_setup() 1196 tmp = w_index & USB_ENDPOINT_NUMBER_MASK; in handle_setup() 1202 if ((w_index & USB_DIR_IN)) { in handle_setup() 1215 tmp = w_index & USB_ENDPOINT_NUMBER_MASK; in handle_setup() 1223 if ((w_index & USB_DIR_IN)) { in handle_setup() 1241 #undef w_index in handle_setup()
|
| H A D | omap_udc.c | 1525 #define w_index le16_to_cpu(u.r.wIndex) in ep0_irq() macro 1565 ep = &udc->ep[w_index & 0xf]; in ep0_irq() 1567 if (w_index & USB_DIR_IN) in ep0_irq() 1594 ep = &udc->ep[w_index & 0xf]; in ep0_irq() 1595 if (w_index & USB_DIR_IN) in ep0_irq() 1626 if (!(w_index & 0xf)) in ep0_irq() 1630 ep = &udc->ep[w_index & 0xf]; in ep0_irq() 1631 if (w_index & USB_DIR_IN) in ep0_irq() 1659 VDBG("GET_STATUS, interface %d\n", w_index); in ep0_irq() 1676 w_value, w_index, w_length); in ep0_irq() [all …]
|
| H A D | m66592-udc.c | 969 u16 w_index = le16_to_cpu(ctrl->wIndex); in get_status() local 979 ep = m66592->epaddr2ep[w_index & USB_ENDPOINT_NUMBER_MASK]; in get_status() 1012 u16 w_index = le16_to_cpu(ctrl->wIndex); in clear_feature() local 1014 ep = m66592->epaddr2ep[w_index & USB_ENDPOINT_NUMBER_MASK]; in clear_feature() 1069 u16 w_index = le16_to_cpu(ctrl->wIndex); in set_feature() local 1071 ep = m66592->epaddr2ep[w_index & USB_ENDPOINT_NUMBER_MASK]; in set_feature()
|
| H A D | net2280.c | 2868 #define w_index le16_to_cpu(r.wIndex) in handle_stat0_irqs_superspeed() macro 2891 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs_superspeed() 2951 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs_superspeed() 3017 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs_superspeed() 3041 w_value, w_index, w_length, in handle_stat0_irqs_superspeed() 3061 #undef w_index in handle_stat0_irqs_superspeed() 3173 #define w_index le16_to_cpu(u.r.wIndex) in handle_stat0_irqs() macro 3215 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs() 3241 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs() 3266 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs() [all …]
|
| H A D | r8a66597-udc.c | 1166 u16 w_index = le16_to_cpu(ctrl->wIndex); in get_status() local 1176 ep = r8a66597->epaddr2ep[w_index & USB_ENDPOINT_NUMBER_MASK]; in get_status() 1210 u16 w_index = le16_to_cpu(ctrl->wIndex); in clear_feature() local 1212 ep = r8a66597->epaddr2ep[w_index & USB_ENDPOINT_NUMBER_MASK]; in clear_feature() 1270 u16 w_index = le16_to_cpu(ctrl->wIndex); in set_feature() local 1272 ep = r8a66597->epaddr2ep[w_index & USB_ENDPOINT_NUMBER_MASK]; in set_feature()
|
| H A D | fusb300_udc.c | 689 u16 w_index = ctrl->wIndex; in get_status() local 699 ep = w_index & USB_ENDPOINT_NUMBER_MASK; in get_status() 735 u16 w_index = le16_to_cpu(ctrl->wIndex); in set_feature() local 737 ep = w_index & USB_ENDPOINT_NUMBER_MASK; in set_feature()
|
| H A D | dummy_hcd.c | 1608 unsigned w_index; in handle_control_request() local 1611 w_index = le16_to_cpu(setup->wIndex); in handle_control_request() 1668 ep2 = find_endpoint(dum, w_index); in handle_control_request() 1716 ep2 = find_endpoint(dum, w_index); in handle_control_request() 1740 ep2 = find_endpoint(dum, w_index); in handle_control_request()
|