Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/usb/gadget/function/
Df_ncm.c619 u16 w_index = le16_to_cpu(ctrl->wIndex); in ncm_setup() local
634 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup()
658 if (w_length == 0 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
669 if (w_length < 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
680 if (w_length != 4 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
695 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
707 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup()
729 if (w_length < 2 || w_value != 0 || w_index != ncm->ctrl_id) in ncm_setup()
743 if (w_length != 0 || w_index != ncm->ctrl_id) in ncm_setup()
774 w_value, w_index, w_length); in ncm_setup()
[all …]
Df_acm.c346 u16 w_index = le16_to_cpu(ctrl->wIndex); in acm_setup() local
364 || w_index != acm->ctrl_id) in acm_setup()
375 if (w_index != acm->ctrl_id) in acm_setup()
386 if (w_index != acm->ctrl_id) in acm_setup()
403 w_value, w_index, w_length); in acm_setup()
411 w_value, w_index, w_length); in acm_setup()
Df_rndis.c470 u16 w_index = le16_to_cpu(ctrl->wIndex); in rndis_setup() local
484 if (w_value || w_index != rndis->ctrl_id) in rndis_setup()
495 if (w_value || w_index != rndis->ctrl_id) in rndis_setup()
518 w_value, w_index, w_length); in rndis_setup()
525 w_value, w_index, w_length); in rndis_setup()
Df_ecm.c475 u16 w_index = le16_to_cpu(ctrl->wIndex); in ecm_setup() local
488 if (w_length != 0 || w_index != ecm->ctrl_id) in ecm_setup()
512 w_value, w_index, w_length); in ecm_setup()
519 w_value, w_index, w_length); in ecm_setup()
Df_sourcesink.c799 u16 w_index = le16_to_cpu(ctrl->wIndex); in sourcesink_setup() local
822 if (w_value || w_index) in sourcesink_setup()
832 if (w_value || w_index) in sourcesink_setup()
845 w_value, w_index, w_length); in sourcesink_setup()
852 w_value, w_index, w_length); in sourcesink_setup()
Df_uac2.c1287 u16 w_index = le16_to_cpu(cr->wIndex); in in_rq_cur() local
1289 u8 entity_id = (w_index >> 8) & 0xff; in in_rq_cur()
1328 u16 w_index = le16_to_cpu(cr->wIndex); in in_rq_range() local
1330 u8 entity_id = (w_index >> 8) & 0xff; in in_rq_range()
1392 u16 w_index = le16_to_cpu(cr->wIndex); in setup_rq_inf() local
1393 u8 intf = w_index & 0xff; in setup_rq_inf()
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()
Df_uac1.c526 u16 w_index = le16_to_cpu(ctrl->wIndex); in f_audio_setup() local
553 w_value, w_index, w_length); in f_audio_setup()
560 w_value, w_index, w_length); in f_audio_setup()
Df_printer.c899 u16 w_index = le16_to_cpu(ctrl->wIndex); in gprinter_req_match() local
909 w_index >>= 8; in gprinter_req_match()
927 return w_index == dev->interface; in gprinter_req_match()
Df_mass_storage.c507 u16 w_index = le16_to_cpu(ctrl->wIndex); in fsg_setup() local
525 if (w_index != fsg->interface_number || w_value != 0 || in fsg_setup()
541 if (w_index != fsg->interface_number || w_value != 0 || in fsg_setup()
555 le16_to_cpu(ctrl->wValue), w_index, w_length); in fsg_setup()
Df_fs.c1933 u16 w_index = le16_to_cpu(desc->wIndex); in __ffs_do_os_desc_header() local
1940 switch (w_index) { in __ffs_do_os_desc_header()
1948 pr_vdebug("unsupported os descriptor type: %d", w_index); in __ffs_do_os_desc_header()
/linux-4.1.27/drivers/usb/gadget/
Dcomposite.c1458 u16 w_index = le16_to_cpu(ctrl->wIndex); in composite_setup() local
1459 u8 intf = w_index & 0xFF; in composite_setup()
1527 w_index, w_value & 0xff); in composite_setup()
1579 value = f->set_alt(f, w_index, w_value); in composite_setup()
1598 value = f->get_alt ? f->get_alt(f, w_index) : 0; in composite_setup()
1649 value = f->func_suspend(f, w_index >> 8); in composite_setup()
1682 if (w_index != 0x4 || (w_value >> 8)) in composite_setup()
1684 buf[6] = w_index; in composite_setup()
1706 if (w_index != 0x5 || (w_value >> 8)) in composite_setup()
1709 buf[6] = w_index; in composite_setup()
[all …]
/linux-4.1.27/drivers/usb/gadget/udc/
Dat91_udc.c1077 #define w_index le16_to_cpu(pkt.r.wIndex) in handle_setup() macro
1083 w_value, w_index, w_length); in handle_setup()
1170 tmp = w_index & USB_ENDPOINT_NUMBER_MASK; in handle_setup()
1176 if ((w_index & USB_DIR_IN)) { in handle_setup()
1193 tmp = w_index & USB_ENDPOINT_NUMBER_MASK; in handle_setup()
1199 if ((w_index & USB_DIR_IN)) { in handle_setup()
1212 tmp = w_index & USB_ENDPOINT_NUMBER_MASK; in handle_setup()
1220 if ((w_index & USB_DIR_IN)) { in handle_setup()
1238 #undef w_index in handle_setup()
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 …]
Dnet2280.c2675 #define w_index le16_to_cpu(r.wIndex) in handle_stat0_irqs_superspeed() macro
2701 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs_superspeed()
2761 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs_superspeed()
2827 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs_superspeed()
2851 w_value, w_index, w_length, in handle_stat0_irqs_superspeed()
2871 #undef w_index in handle_stat0_irqs_superspeed()
2963 #define w_index le16_to_cpu(u.r.wIndex) in handle_stat0_irqs() macro
3005 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs()
3031 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs()
3056 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs()
[all …]
Dm66592-udc.c972 u16 w_index = le16_to_cpu(ctrl->wIndex); in get_status() local
982 ep = m66592->epaddr2ep[w_index & USB_ENDPOINT_NUMBER_MASK]; in get_status()
1015 u16 w_index = le16_to_cpu(ctrl->wIndex); in clear_feature() local
1017 ep = m66592->epaddr2ep[w_index & USB_ENDPOINT_NUMBER_MASK]; in clear_feature()
1072 u16 w_index = le16_to_cpu(ctrl->wIndex); in set_feature() local
1074 ep = m66592->epaddr2ep[w_index & USB_ENDPOINT_NUMBER_MASK]; in set_feature()
Dr8a66597-udc.c1169 u16 w_index = le16_to_cpu(ctrl->wIndex); in get_status() local
1179 ep = r8a66597->epaddr2ep[w_index & USB_ENDPOINT_NUMBER_MASK]; in get_status()
1213 u16 w_index = le16_to_cpu(ctrl->wIndex); in clear_feature() local
1215 ep = r8a66597->epaddr2ep[w_index & USB_ENDPOINT_NUMBER_MASK]; in clear_feature()
1273 u16 w_index = le16_to_cpu(ctrl->wIndex); in set_feature() local
1275 ep = r8a66597->epaddr2ep[w_index & USB_ENDPOINT_NUMBER_MASK]; in set_feature()
Dfusb300_udc.c692 u16 w_index = ctrl->wIndex; in get_status() local
702 ep = w_index & USB_ENDPOINT_NUMBER_MASK; in get_status()
738 u16 w_index = le16_to_cpu(ctrl->wIndex); in set_feature() local
740 ep = w_index & USB_ENDPOINT_NUMBER_MASK; in set_feature()
Ddummy_hcd.c1486 unsigned w_index; in handle_control_request() local
1489 w_index = le16_to_cpu(setup->wIndex); in handle_control_request()
1546 ep2 = find_endpoint(dum, w_index); in handle_control_request()
1594 ep2 = find_endpoint(dum, w_index); in handle_control_request()
1618 ep2 = find_endpoint(dum, w_index); in handle_control_request()
/linux-4.1.27/drivers/isdn/hisax/
Dst5481_usb.c65 int w_index; in usb_ctrl_msg() local
68 if ((w_index = fifo_add(&ctrl->msg_fifo.f)) < 0) { in usb_ctrl_msg()
72 ctrl_msg = &ctrl->msg_fifo.data[w_index]; in usb_ctrl_msg()
/linux-4.1.27/drivers/staging/ozwpan/
Dozprotocol.h193 __le16 w_index; member
Dozusbsvc1.c85 body->w_index = windex; in oz_usb_get_desc_req()