Home
last modified time | relevance | path

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

/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_mtp.c1071 u16 w_index = le16_to_cpu(ctrl->wIndex); in mtp_ctrlrequest() local
1079 w_value, w_index, w_length); in mtp_ctrlrequest()
1093 ctrl->bRequest, w_index, w_value, w_length); in mtp_ctrlrequest()
1097 && (w_index == 4 || w_index == 5)) { in mtp_ctrlrequest()
1111 ctrl->bRequest, w_index, w_value, w_length); in mtp_ctrlrequest()
1113 if (ctrl->bRequest == MTP_REQ_CANCEL && w_index == 0 in mtp_ctrlrequest()
1131 && w_index == 0 && w_value == 0) { in mtp_ctrlrequest()
Df_rndis.c497 u16 w_index = le16_to_cpu(ctrl->wIndex); in rndis_setup() local
511 if (w_value || w_index != rndis->ctrl_id) in rndis_setup()
522 if (w_value || w_index != rndis->ctrl_id) in rndis_setup()
545 w_value, w_index, w_length); in rndis_setup()
552 w_value, w_index, w_length); in rndis_setup()
Df_accessory.c830 u16 w_index = le16_to_cpu(ctrl->wIndex); in acc_ctrlrequest() local
850 dev->string_index = w_index; in acc_ctrlrequest()
855 w_index == 0 && w_length == 0) { in acc_ctrlrequest()
861 value = acc_register_hid(dev, w_value, w_index); in acc_ctrlrequest()
873 offset = w_index; in acc_ctrlrequest()
926 w_value, w_index, w_length); in acc_ctrlrequest()
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_uac2.c1260 u16 w_index = le16_to_cpu(cr->wIndex); in in_rq_cur() local
1262 u8 entity_id = (w_index >> 8) & 0xff; in in_rq_cur()
1301 u16 w_index = le16_to_cpu(cr->wIndex); in in_rq_range() local
1303 u8 entity_id = (w_index >> 8) & 0xff; in in_rq_range()
1365 u16 w_index = le16_to_cpu(cr->wIndex); in setup_rq_inf() local
1366 u8 intf = w_index & 0xff; in setup_rq_inf()
Df_sourcesink.c1084 u16 w_index = le16_to_cpu(ctrl->wIndex); in sourcesink_setup() local
1107 if (w_value || w_index) in sourcesink_setup()
1117 if (w_value || w_index) in sourcesink_setup()
1130 w_value, w_index, w_length); in sourcesink_setup()
1137 w_value, w_index, w_length); in sourcesink_setup()
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.c522 u16 w_index = le16_to_cpu(ctrl->wIndex); in f_audio_setup() local
549 w_value, w_index, w_length); in f_audio_setup()
556 w_value, w_index, w_length); in f_audio_setup()
Df_audio_source.c528 u16 w_index = le16_to_cpu(ctrl->wIndex); in audio_setup() local
549 w_value, w_index, w_length); in audio_setup()
Df_mass_storage.c502 u16 w_index = le16_to_cpu(ctrl->wIndex); in fsg_setup() local
520 if (w_index != fsg->interface_number || w_value != 0 || in fsg_setup()
536 if (w_index != fsg->interface_number || w_value != 0 || in fsg_setup()
550 le16_to_cpu(ctrl->wValue), w_index, w_length); in fsg_setup()
Df_fs.c1949 u16 w_index = le16_to_cpu(desc->wIndex); in __ffs_do_os_desc_header() local
1956 switch (w_index) { in __ffs_do_os_desc_header()
1964 pr_vdebug("unsupported os descriptor type: %d", w_index); in __ffs_do_os_desc_header()
/drivers/usb/gadget/
Dcomposite.c1422 u16 w_index = le16_to_cpu(ctrl->wIndex); in composite_setup() local
1423 u8 intf = w_index & 0xFF; in composite_setup()
1483 w_index, w_value & 0xff); in composite_setup()
1535 value = f->set_alt(f, w_index, w_value); in composite_setup()
1554 value = f->get_alt ? f->get_alt(f, w_index) : 0; in composite_setup()
1605 value = f->func_suspend(f, w_index >> 8); in composite_setup()
1637 if (w_index != 0x4 || (w_value >> 8)) in composite_setup()
1639 buf[6] = w_index; in composite_setup()
1661 if (w_index != 0x5 || (w_value >> 8)) in composite_setup()
1664 buf[6] = w_index; in composite_setup()
[all …]
/drivers/usb/gadget/udc/
Dat91_udc.c1082 #define w_index le16_to_cpu(pkt.r.wIndex) in handle_setup() macro
1088 w_value, w_index, w_length); in handle_setup()
1175 tmp = w_index & USB_ENDPOINT_NUMBER_MASK; in handle_setup()
1181 if ((w_index & USB_DIR_IN)) { in handle_setup()
1198 tmp = w_index & USB_ENDPOINT_NUMBER_MASK; in handle_setup()
1204 if ((w_index & USB_DIR_IN)) { in handle_setup()
1217 tmp = w_index & USB_ENDPOINT_NUMBER_MASK; in handle_setup()
1225 if ((w_index & USB_DIR_IN)) { in handle_setup()
1243 #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.c2861 #define w_index le16_to_cpu(r.wIndex) in handle_stat0_irqs_superspeed() macro
2887 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs_superspeed()
2947 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs_superspeed()
3008 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs_superspeed()
3025 w_value, w_index, w_length, in handle_stat0_irqs_superspeed()
3045 #undef w_index in handle_stat0_irqs_superspeed()
3139 #define w_index le16_to_cpu(u.r.wIndex) in handle_stat0_irqs() macro
3181 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs()
3207 e = get_ep_by_addr(dev, w_index); in handle_stat0_irqs()
3232 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.c1502 unsigned w_index; in handle_control_request() local
1505 w_index = le16_to_cpu(setup->wIndex); in handle_control_request()
1562 ep2 = find_endpoint(dum, w_index); in handle_control_request()
1610 ep2 = find_endpoint(dum, w_index); in handle_control_request()
1634 ep2 = find_endpoint(dum, w_index); in handle_control_request()
/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()
/drivers/staging/ozwpan/
Dozprotocol.h193 __le16 w_index; member
Dozusbsvc1.c85 body->w_index = windex; in oz_usb_get_desc_req()