Home
last modified time | relevance | path

Searched refs:w_index (Results 1 – 21 of 21) sorted by relevance

/linux-6.15/drivers/usb/usbip/
H A Dvudc_transfer.c64 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()
/linux-6.15/drivers/usb/gadget/function/
H A Df_acm.c335 u16 w_index = le16_to_cpu(ctrl->wIndex); in acm_setup() local
353 || w_index != acm->ctrl_id) in acm_setup()
364 if (w_index != acm->ctrl_id) in acm_setup()
375 if (w_index != acm->ctrl_id) in acm_setup()
389 if (w_index != acm->ctrl_id) in acm_setup()
400 w_value, w_index, w_length); in acm_setup()
408 w_value, w_index, w_length); in acm_setup()
H A Df_uac1.c493 u16 w_index = le16_to_cpu(cr->wIndex); in in_rq_cur() local
495 u8 entity_id = (w_index >> 8) & 0xff; in in_rq_cur()
544 u16 w_index = le16_to_cpu(cr->wIndex); in in_rq_min() local
546 u8 entity_id = (w_index >> 8) & 0xff; in in_rq_min()
591 u16 w_index = le16_to_cpu(cr->wIndex); in in_rq_max() local
593 u8 entity_id = (w_index >> 8) & 0xff; in in_rq_max()
640 u8 entity_id = (w_index >> 8) & 0xff; in in_rq_res()
688 u8 entity_id = (w_index >> 8) & 0xff; in out_rq_cur_complete()
742 u8 entity_id = (w_index >> 8) & 0xff; in out_rq_cur()
914 w_value, w_index, w_length); in f_audio_setup()
[all …]
H A Df_ncm.c683 u16 w_index = le16_to_cpu(ctrl->wIndex); in ncm_setup() local
698 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup()
722 if (w_length == 0 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
733 if (w_length < 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
744 if (w_length != 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
759 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
771 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup()
793 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
805 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup()
833 w_value, w_index, w_length); in ncm_setup()
[all …]
H A Df_uac2.c1374 u16 w_index, w_value; in afunc_notify() local
1402 msg->wIndex = cpu_to_le16(w_index); in afunc_notify()
1530 u16 w_index = le16_to_cpu(cr->wIndex); in in_rq_cur() local
1532 u8 entity_id = (w_index >> 8) & 0xff; in in_rq_cur()
1607 u16 w_index = le16_to_cpu(cr->wIndex); in in_rq_range() local
1609 u8 entity_id = (w_index >> 8) & 0xff; in in_rq_range()
1730 u16 w_index = le16_to_cpu(cr->wIndex); in out_rq_cur_complete() local
1732 u8 entity_id = (w_index >> 8) & 0xff; in out_rq_cur_complete()
1781 u8 entity_id = (w_index >> 8) & 0xff; in out_rq_cur()
1783 u8 clock_id = w_index >> 8; in out_rq_cur()
[all …]
H A Df_rndis.c458 u16 w_index = le16_to_cpu(ctrl->wIndex); in rndis_setup() local
472 if (w_value || w_index != rndis->ctrl_id) in rndis_setup()
483 if (w_value || w_index != rndis->ctrl_id) in rndis_setup()
506 w_value, w_index, w_length); in rndis_setup()
513 w_value, w_index, w_length); in rndis_setup()
H A Df_ecm.c463 u16 w_index = le16_to_cpu(ctrl->wIndex); in ecm_setup() local
476 if (w_length != 0 || w_index != ecm->ctrl_id) in ecm_setup()
500 w_value, w_index, w_length); in ecm_setup()
507 w_value, w_index, w_length); in ecm_setup()
H A Df_sourcesink.c768 u16 w_index = le16_to_cpu(ctrl->wIndex); in sourcesink_setup() local
791 if (w_value || w_index) in sourcesink_setup()
801 if (w_value || w_index) in sourcesink_setup()
814 w_value, w_index, w_length); in sourcesink_setup()
821 w_value, w_index, w_length); in sourcesink_setup()
H A Df_eem.c174 u16 w_index = le16_to_cpu(ctrl->wIndex); in eem_setup() local
180 w_value, w_index, w_length); in eem_setup()
H A Df_uac1_legacy.c528 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 Df_printer.c961 u16 w_index = le16_to_cpu(ctrl->wIndex); in gprinter_req_match() local
974 w_index >>= 8; in gprinter_req_match()
991 return w_index == dev->interface; in gprinter_req_match()
H A Df_mass_storage.c462 u16 w_index = le16_to_cpu(ctrl->wIndex); in fsg_setup() local
480 if (w_index != fsg->interface_number || w_value != 0 || in fsg_setup()
496 if (w_index != fsg->interface_number || w_value != 0 || in fsg_setup()
510 le16_to_cpu(ctrl->wValue), w_index, w_length); in fsg_setup()
H A Df_fs.c2713 u16 w_index = le16_to_cpu(desc->wIndex); in __ffs_do_os_desc_header() local
2723 switch (w_index) { in __ffs_do_os_desc_header()
2731 pr_vdebug("unsupported os descriptor type: %d", w_index); in __ffs_do_os_desc_header()
/linux-6.15/drivers/usb/gadget/
H A Dcomposite.c1785 u8 intf = w_index & 0xFF; in composite_setup()
1871 w_index, w_value & 0xff); in composite_setup()
1984 (w_index == OTG_STS_SELECTOR)) { in composite_setup()
2053 f->func_wakeup_armed = !!(w_index & in composite_setup()
2126 if (w_index != 0x4 || (w_value >> 8)) in composite_setup()
2128 buf[6] = w_index; in composite_setup()
2142 if (w_index != 0x5 || (w_value >> 8)) in composite_setup()
2148 buf[6] = w_index; in composite_setup()
2174 w_index == WEBUSB_GET_URL && in composite_setup()
2217 w_value, w_index, w_length); in composite_setup()
[all …]
/linux-6.15/drivers/usb/gadget/udc/
H A Dat91_udc.c1083 #define w_index le16_to_cpu(pkt.r.wIndex) in handle_setup() macro
1089 w_value, w_index, w_length); in handle_setup()
1176 tmp = w_index & USB_ENDPOINT_NUMBER_MASK; in handle_setup()
1182 if ((w_index & USB_DIR_IN)) { in handle_setup()
1199 tmp = w_index & USB_ENDPOINT_NUMBER_MASK; in handle_setup()
1205 if ((w_index & USB_DIR_IN)) { in handle_setup()
1218 tmp = w_index & USB_ENDPOINT_NUMBER_MASK; in handle_setup()
1226 if ((w_index & USB_DIR_IN)) { in handle_setup()
1244 #undef w_index in handle_setup()
H A Domap_udc.c1529 #define w_index le16_to_cpu(u.r.wIndex) in ep0_irq() macro
1569 ep = &udc->ep[w_index & 0xf]; in ep0_irq()
1571 if (w_index & USB_DIR_IN) in ep0_irq()
1598 ep = &udc->ep[w_index & 0xf]; in ep0_irq()
1599 if (w_index & USB_DIR_IN) in ep0_irq()
1630 if (!(w_index & 0xf)) in ep0_irq()
1634 ep = &udc->ep[w_index & 0xf]; in ep0_irq()
1635 if (w_index & USB_DIR_IN) in ep0_irq()
1663 VDBG("GET_STATUS, interface %d\n", w_index); in ep0_irq()
1680 w_value, w_index, w_length); in ep0_irq()
[all …]
H A Dm66592-udc.c969 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 Dnet2280.c2871 #define w_index le16_to_cpu(r.wIndex) in handle_stat0_irqs_superspeed() macro
2894 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs_superspeed()
2954 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs_superspeed()
3020 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs_superspeed()
3044 w_value, w_index, w_length, in handle_stat0_irqs_superspeed()
3066 #undef w_index in handle_stat0_irqs_superspeed()
3220 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs()
3246 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs()
3271 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs()
3289 w_value, w_index, w_length, in handle_stat0_irqs()
[all …]
H A Dr8a66597-udc.c1166 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 Dfusb300_udc.c689 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 Ddummy_hcd.c1627 unsigned w_index; in handle_control_request() local
1630 w_index = le16_to_cpu(setup->wIndex); in handle_control_request()
1687 ep2 = find_endpoint(dum, w_index); in handle_control_request()
1735 ep2 = find_endpoint(dum, w_index); in handle_control_request()
1759 ep2 = find_endpoint(dum, w_index); in handle_control_request()