Home
last modified time | relevance | path

Searched refs:ep_desc (Results 1 – 16 of 16) sorted by relevance

/drivers/net/wireless/mediatek/mt7601u/
Dusb.c216 struct usb_endpoint_descriptor *ep_desc; in mt7601u_assign_pipes() local
224 ep_desc = &intf_desc->endpoint[i].desc; in mt7601u_assign_pipes()
226 if (usb_endpoint_is_bulk_in(ep_desc) && in mt7601u_assign_pipes()
228 dev->in_eps[ep_i - 1] = usb_endpoint_num(ep_desc); in mt7601u_assign_pipes()
229 dev->in_max_packet = usb_endpoint_maxp(ep_desc); in mt7601u_assign_pipes()
234 } else if (usb_endpoint_is_bulk_out(ep_desc) && in mt7601u_assign_pipes()
236 dev->out_eps[ep_o - 1] = usb_endpoint_num(ep_desc); in mt7601u_assign_pipes()
237 dev->out_max_packet = usb_endpoint_maxp(ep_desc); in mt7601u_assign_pipes()
/drivers/nfc/nfcmrvl/
Dusb.c298 struct usb_endpoint_descriptor *ep_desc; in nfcmrvl_probe() local
316 ep_desc = &intf->cur_altsetting->endpoint[i].desc; in nfcmrvl_probe()
319 usb_endpoint_is_bulk_out(ep_desc)) { in nfcmrvl_probe()
320 drv_data->bulk_tx_ep = ep_desc; in nfcmrvl_probe()
325 usb_endpoint_is_bulk_in(ep_desc)) { in nfcmrvl_probe()
326 drv_data->bulk_rx_ep = ep_desc; in nfcmrvl_probe()
/drivers/staging/comedi/drivers/
Dni_usb6501.c486 struct usb_endpoint_descriptor *ep_desc; in ni6501_find_endpoints() local
495 ep_desc = &iface_desc->endpoint[i].desc; in ni6501_find_endpoints()
497 if (usb_endpoint_is_bulk_in(ep_desc)) { in ni6501_find_endpoints()
499 devpriv->ep_rx = ep_desc; in ni6501_find_endpoints()
503 if (usb_endpoint_is_bulk_out(ep_desc)) { in ni6501_find_endpoints()
505 devpriv->ep_tx = ep_desc; in ni6501_find_endpoints()
Dvmk80xx.c652 struct usb_endpoint_descriptor *ep_desc; in vmk80xx_find_usb_endpoints() local
659 ep_desc = &iface_desc->endpoint[i].desc; in vmk80xx_find_usb_endpoints()
661 if (usb_endpoint_is_int_in(ep_desc) || in vmk80xx_find_usb_endpoints()
662 usb_endpoint_is_bulk_in(ep_desc)) { in vmk80xx_find_usb_endpoints()
664 devpriv->ep_rx = ep_desc; in vmk80xx_find_usb_endpoints()
668 if (usb_endpoint_is_int_out(ep_desc) || in vmk80xx_find_usb_endpoints()
669 usb_endpoint_is_bulk_out(ep_desc)) { in vmk80xx_find_usb_endpoints()
671 devpriv->ep_tx = ep_desc; in vmk80xx_find_usb_endpoints()
/drivers/net/wireless/ralink/rt2x00/
Drt2x00usb.c575 struct usb_endpoint_descriptor *ep_desc) in rt2x00usb_assign_endpoint() argument
580 queue->usb_endpoint = usb_endpoint_num(ep_desc); in rt2x00usb_assign_endpoint()
598 struct usb_endpoint_descriptor *ep_desc; in rt2x00usb_find_endpoints() local
610 ep_desc = &intf_desc->endpoint[i].desc; in rt2x00usb_find_endpoints()
612 if (usb_endpoint_is_bulk_in(ep_desc)) { in rt2x00usb_find_endpoints()
613 rt2x00usb_assign_endpoint(rt2x00dev->rx, ep_desc); in rt2x00usb_find_endpoints()
614 } else if (usb_endpoint_is_bulk_out(ep_desc) && in rt2x00usb_find_endpoints()
616 rt2x00usb_assign_endpoint(queue, ep_desc); in rt2x00usb_find_endpoints()
619 tx_ep_desc = ep_desc; in rt2x00usb_find_endpoints()
/drivers/bluetooth/
Dbtusb.c1396 struct usb_endpoint_descriptor *ep_desc; in __set_isoc_interface() local
1414 ep_desc = &intf->cur_altsetting->endpoint[i].desc; in __set_isoc_interface()
1416 if (!data->isoc_tx_ep && usb_endpoint_is_isoc_out(ep_desc)) { in __set_isoc_interface()
1417 data->isoc_tx_ep = ep_desc; in __set_isoc_interface()
1421 if (!data->isoc_rx_ep && usb_endpoint_is_isoc_in(ep_desc)) { in __set_isoc_interface()
1422 data->isoc_rx_ep = ep_desc; in __set_isoc_interface()
2779 struct usb_endpoint_descriptor *ep_desc; in __set_diag_interface() local
2781 ep_desc = &intf->cur_altsetting->endpoint[i].desc; in __set_diag_interface()
2783 if (!data->diag_tx_ep && usb_endpoint_is_bulk_out(ep_desc)) { in __set_diag_interface()
2784 data->diag_tx_ep = ep_desc; in __set_diag_interface()
[all …]
/drivers/net/wireless/ath/ath10k/
Dusb.h97 struct usb_endpoint_descriptor *ep_desc; member
Dusb.c929 pipe->ep_desc = endpoint; in ath10k_usb_setup_pipe_resources()
/drivers/usb/gadget/function/
Du_audio.c435 const struct usb_endpoint_descriptor *ep_desc; in u_audio_start_playback() local
442 ep_desc = ep->desc; in u_audio_start_playback()
454 uac->p_interval = factor / (1 << (ep_desc->bInterval - 1)); in u_audio_start_playback()
Df_uac2.c456 struct usb_endpoint_descriptor *ep_desc, in set_ep_max_packet_size() argument
473 DIV_ROUND_UP(srate, factor / (1 << (ep_desc->bInterval - 1))); in set_ep_max_packet_size()
474 ep_desc->wMaxPacketSize = cpu_to_le16(min_t(u16, max_packet_size, in set_ep_max_packet_size()
475 le16_to_cpu(ep_desc->wMaxPacketSize))); in set_ep_max_packet_size()
Df_printer.c208 static inline struct usb_endpoint_descriptor *ep_desc(struct usb_gadget *gadget, in ep_desc() function
768 dev->in_ep->desc = ep_desc(dev->gadget, &fs_ep_in_desc, &hs_ep_in_desc, in set_printer_interface()
772 dev->out_ep->desc = ep_desc(dev->gadget, &fs_ep_out_desc, in set_printer_interface()
/drivers/staging/most/hdm-usb/
Dhdm_usb.c1131 struct usb_endpoint_descriptor *ep_desc; in hdm_probe() local
1186 ep_desc = &usb_iface_desc->endpoint[i].desc; in hdm_probe()
1187 mdev->ep_address[i] = ep_desc->bEndpointAddress; in hdm_probe()
1201 if (usb_endpoint_dir_in(ep_desc)) in hdm_probe()
/drivers/usb/serial/
Dkeyspan.c1733 struct usb_endpoint_descriptor const *ep_desc; in keyspan_setup_urb() local
1750 ep_desc = find_ep(serial, endpoint); in keyspan_setup_urb()
1751 if (!ep_desc) { in keyspan_setup_urb()
1755 if (usb_endpoint_xfer_int(ep_desc)) { in keyspan_setup_urb()
1760 ep_desc->bInterval); in keyspan_setup_urb()
1761 } else if (usb_endpoint_xfer_bulk(ep_desc)) { in keyspan_setup_urb()
1769 usb_endpoint_type(ep_desc)); in keyspan_setup_urb()
Dftdi_sio.c1643 struct usb_endpoint_descriptor *ep_desc; in ftdi_set_max_packet_size() local
1658 ep_desc = &interface->cur_altsetting->endpoint[i].desc; in ftdi_set_max_packet_size()
1659 if (!ep_desc->wMaxPacketSize) { in ftdi_set_max_packet_size()
1660 ep_desc->wMaxPacketSize = cpu_to_le16(0x40); in ftdi_set_max_packet_size()
1662 usb_endpoint_num(ep_desc)); in ftdi_set_max_packet_size()
1667 priv->max_packet_size = usb_endpoint_maxp(ep_desc); in ftdi_set_max_packet_size()
/drivers/usb/gadget/
Dcomposite.c127 #define for_each_ep_desc(start, ep_desc) \ argument
128 for (ep_desc = next_ep_desc(start); \
129 ep_desc; ep_desc = next_ep_desc(ep_desc+1))
/drivers/net/wireless/ath/ath6kl/
Dusb.c58 struct usb_endpoint_descriptor *ep_desc; member
396 pipe->ep_desc = endpoint; in ath6kl_usb_setup_pipe_resources()