Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/usb/gadget/function/
Df_acm.c345 u16 w_index = le16_to_cpu(ctrl->wIndex); in acm_setup() local
363 || w_index != acm->ctrl_id) in acm_setup()
374 if (w_index != acm->ctrl_id) in acm_setup()
385 if (w_index != acm->ctrl_id) in acm_setup()
402 w_value, w_index, w_length); in acm_setup()
410 w_value, w_index, w_length); in acm_setup()
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_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.c784 u16 w_index = le16_to_cpu(ctrl->wIndex); in sourcesink_setup() local
807 if (w_value || w_index) in sourcesink_setup()
817 if (w_value || w_index) in sourcesink_setup()
830 w_value, w_index, w_length); in sourcesink_setup()
837 w_value, w_index, w_length); in sourcesink_setup()
Df_uac2.c1281 u16 w_index = le16_to_cpu(cr->wIndex); in in_rq_cur() local
1283 u8 entity_id = (w_index >> 8) & 0xff; in in_rq_cur()
1322 u16 w_index = le16_to_cpu(cr->wIndex); in in_rq_range() local
1324 u8 entity_id = (w_index >> 8) & 0xff; in in_rq_range()
1386 u16 w_index = le16_to_cpu(cr->wIndex); in setup_rq_inf() local
1387 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.c903 u16 w_index = le16_to_cpu(ctrl->wIndex); in gprinter_req_match() local
913 w_index >>= 8; in gprinter_req_match()
931 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.4.14/drivers/usb/gadget/
Dcomposite.c1463 u16 w_index = le16_to_cpu(ctrl->wIndex); in composite_setup() local
1464 u8 intf = w_index & 0xFF; in composite_setup()
1534 w_index, w_value & 0xff); in composite_setup()
1612 value = f->set_alt(f, w_index, w_value); in composite_setup()
1631 value = f->get_alt ? f->get_alt(f, w_index) : 0; in composite_setup()
1682 value = f->func_suspend(f, w_index >> 8); in composite_setup()
1715 if (w_index != 0x4 || (w_value >> 8)) in composite_setup()
1717 buf[6] = w_index; in composite_setup()
1739 if (w_index != 0x5 || (w_value >> 8)) in composite_setup()
1742 buf[6] = w_index; in composite_setup()
[all …]
/linux-4.4.14/drivers/usb/gadget/udc/
Dat91_udc.c1097 #define w_index le16_to_cpu(pkt.r.wIndex) in handle_setup() macro
1103 w_value, w_index, w_length); in handle_setup()
1190 tmp = w_index & USB_ENDPOINT_NUMBER_MASK; in handle_setup()
1196 if ((w_index & USB_DIR_IN)) { in handle_setup()
1213 tmp = w_index & USB_ENDPOINT_NUMBER_MASK; in handle_setup()
1219 if ((w_index & USB_DIR_IN)) { in handle_setup()
1232 tmp = w_index & USB_ENDPOINT_NUMBER_MASK; in handle_setup()
1240 if ((w_index & USB_DIR_IN)) { in handle_setup()
1258 #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.c2791 #define w_index le16_to_cpu(r.wIndex) in handle_stat0_irqs_superspeed() macro
2817 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs_superspeed()
2877 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs_superspeed()
2943 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs_superspeed()
2967 w_value, w_index, w_length, in handle_stat0_irqs_superspeed()
2987 #undef w_index in handle_stat0_irqs_superspeed()
3099 #define w_index le16_to_cpu(u.r.wIndex) in handle_stat0_irqs() macro
3141 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs()
3167 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs()
3192 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.c1565 unsigned w_index; in handle_control_request() local
1568 w_index = le16_to_cpu(setup->wIndex); in handle_control_request()
1625 ep2 = find_endpoint(dum, w_index); in handle_control_request()
1673 ep2 = find_endpoint(dum, w_index); in handle_control_request()
1697 ep2 = find_endpoint(dum, w_index); in handle_control_request()
/linux-4.4.14/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()