Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/wireless/mediatek/mt7601u/
Dusb.c231 struct usb_endpoint_descriptor *ep_desc; in mt7601u_assign_pipes() local
239 ep_desc = &intf_desc->endpoint[i].desc; in mt7601u_assign_pipes()
241 if (usb_endpoint_is_bulk_in(ep_desc) && in mt7601u_assign_pipes()
243 dev->in_eps[ep_i - 1] = usb_endpoint_num(ep_desc); in mt7601u_assign_pipes()
244 dev->in_max_packet = usb_endpoint_maxp(ep_desc); in mt7601u_assign_pipes()
249 } else if (usb_endpoint_is_bulk_out(ep_desc) && in mt7601u_assign_pipes()
251 dev->out_eps[ep_o - 1] = usb_endpoint_num(ep_desc); in mt7601u_assign_pipes()
252 dev->out_max_packet = usb_endpoint_maxp(ep_desc); in mt7601u_assign_pipes()
/linux-6.12.1/drivers/comedi/drivers/
Dni_usb6501.c480 struct usb_endpoint_descriptor *ep_desc; in ni6501_find_endpoints() local
489 ep_desc = &iface_desc->endpoint[i].desc; in ni6501_find_endpoints()
491 if (usb_endpoint_is_bulk_in(ep_desc)) { in ni6501_find_endpoints()
493 devpriv->ep_rx = ep_desc; in ni6501_find_endpoints()
497 if (usb_endpoint_is_bulk_out(ep_desc)) { in ni6501_find_endpoints()
499 devpriv->ep_tx = ep_desc; in ni6501_find_endpoints()
/linux-6.12.1/drivers/nfc/nfcmrvl/
Dusb.c306 struct usb_endpoint_descriptor *ep_desc; in nfcmrvl_probe() local
308 ep_desc = &intf->cur_altsetting->endpoint[i].desc; in nfcmrvl_probe()
311 usb_endpoint_is_bulk_out(ep_desc)) { in nfcmrvl_probe()
312 drv_data->bulk_tx_ep = ep_desc; in nfcmrvl_probe()
314 usb_endpoint_is_bulk_in(ep_desc)) { in nfcmrvl_probe()
315 drv_data->bulk_rx_ep = ep_desc; in nfcmrvl_probe()
/linux-6.12.1/drivers/net/wireless/ralink/rt2x00/
Drt2x00usb.c580 struct usb_endpoint_descriptor *ep_desc) in rt2x00usb_assign_endpoint() argument
585 queue->usb_endpoint = usb_endpoint_num(ep_desc); in rt2x00usb_assign_endpoint()
603 struct usb_endpoint_descriptor *ep_desc; in rt2x00usb_find_endpoints() local
615 ep_desc = &intf_desc->endpoint[i].desc; in rt2x00usb_find_endpoints()
617 if (usb_endpoint_is_bulk_in(ep_desc)) { in rt2x00usb_find_endpoints()
618 rt2x00usb_assign_endpoint(rt2x00dev->rx, ep_desc); in rt2x00usb_find_endpoints()
619 } else if (usb_endpoint_is_bulk_out(ep_desc) && in rt2x00usb_find_endpoints()
621 rt2x00usb_assign_endpoint(queue, ep_desc); in rt2x00usb_find_endpoints()
624 tx_ep_desc = ep_desc; in rt2x00usb_find_endpoints()
/linux-6.12.1/drivers/bluetooth/
Dbtusb.c2116 struct usb_endpoint_descriptor *ep_desc; in __set_isoc_interface() local
2134 ep_desc = &intf->cur_altsetting->endpoint[i].desc; in __set_isoc_interface()
2136 if (!data->isoc_tx_ep && usb_endpoint_is_isoc_out(ep_desc)) { in __set_isoc_interface()
2137 data->isoc_tx_ep = ep_desc; in __set_isoc_interface()
2141 if (!data->isoc_rx_ep && usb_endpoint_is_isoc_in(ep_desc)) { in __set_isoc_interface()
2142 data->isoc_rx_ep = ep_desc; in __set_isoc_interface()
3397 struct usb_endpoint_descriptor *ep_desc; in __set_diag_interface() local
3399 ep_desc = &intf->cur_altsetting->endpoint[i].desc; in __set_diag_interface()
3401 if (!data->diag_tx_ep && usb_endpoint_is_bulk_out(ep_desc)) { in __set_diag_interface()
3402 data->diag_tx_ep = ep_desc; in __set_diag_interface()
[all …]
Dbtmtk.c1002 struct usb_endpoint_descriptor *ep_desc; in __set_mtk_intr_interface() local
1004 ep_desc = &intf->cur_altsetting->endpoint[i].desc; in __set_mtk_intr_interface()
1007 usb_endpoint_is_int_out(ep_desc)) { in __set_mtk_intr_interface()
1008 btmtk_data->isopkt_tx_ep = ep_desc; in __set_mtk_intr_interface()
1013 usb_endpoint_is_int_in(ep_desc)) { in __set_mtk_intr_interface()
1014 btmtk_data->isopkt_rx_ep = ep_desc; in __set_mtk_intr_interface()
/linux-6.12.1/drivers/net/wireless/ath/ath10k/
Dusb.h87 struct usb_endpoint_descriptor *ep_desc; member
Dusb.c920 pipe->ep_desc = endpoint; in ath10k_usb_setup_pipe_resources()
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/
Dusb.c297 struct usb_endpoint_descriptor *ep_desc; in mt76u_set_endpoints() local
301 ep_desc = &intf_desc->endpoint[i].desc; in mt76u_set_endpoints()
303 if (usb_endpoint_is_bulk_in(ep_desc) && in mt76u_set_endpoints()
305 usb->in_ep[in_ep] = usb_endpoint_num(ep_desc); in mt76u_set_endpoints()
307 } else if (usb_endpoint_is_bulk_out(ep_desc) && in mt76u_set_endpoints()
309 usb->out_ep[out_ep] = usb_endpoint_num(ep_desc); in mt76u_set_endpoints()
/linux-6.12.1/drivers/usb/gadget/function/
Du_audio.c107 const struct usb_endpoint_descriptor *ep_desc; in u_audio_set_fback_frequency() local
140 ep_desc = out_ep->desc; in u_audio_set_fback_frequency()
141 freq <<= 4 + (ep_desc->bInterval - 1); in u_audio_set_fback_frequency()
707 const struct usb_endpoint_descriptor *ep_desc; in u_audio_start_playback() local
720 ep_desc = ep->desc; in u_audio_start_playback()
735 uac->p_interval = factor / (1 << (ep_desc->bInterval - 1)); in u_audio_start_playback()
Df_printer.c210 static inline struct usb_endpoint_descriptor *ep_desc(struct usb_gadget *gadget, in ep_desc() function
833 dev->in_ep->desc = ep_desc(dev->gadget, &fs_ep_in_desc, &hs_ep_in_desc, in set_printer_interface()
837 dev->out_ep->desc = ep_desc(dev->gadget, &fs_ep_out_desc, in set_printer_interface()
Df_uac2.c703 struct usb_endpoint_descriptor *ep_desc, in set_ep_max_packet_size_bint() argument
714 bint = ep_desc->bInterval; in set_ep_max_packet_size_bint()
761 ep_desc->wMaxPacketSize = cpu_to_le16(max_size_bw); in set_ep_max_packet_size_bint()
762 ep_desc->bInterval = bint; in set_ep_max_packet_size_bint()
/linux-6.12.1/drivers/most/
Dmost_usb.c956 struct usb_endpoint_descriptor *ep_desc; in hdm_probe() local
1020 ep_desc = &usb_iface_desc->endpoint[i].desc; in hdm_probe()
1021 mdev->ep_address[i] = ep_desc->bEndpointAddress; in hdm_probe()
1035 if (usb_endpoint_dir_in(ep_desc)) in hdm_probe()
/linux-6.12.1/drivers/usb/serial/
Dkeyspan.c1712 struct usb_endpoint_descriptor const *ep_desc; in keyspan_setup_urb() local
1729 ep_desc = find_ep(serial, endpoint); in keyspan_setup_urb()
1730 if (!ep_desc) { in keyspan_setup_urb()
1734 if (usb_endpoint_xfer_int(ep_desc)) { in keyspan_setup_urb()
1739 ep_desc->bInterval); in keyspan_setup_urb()
1740 } else if (usb_endpoint_xfer_bulk(ep_desc)) { in keyspan_setup_urb()
1748 usb_endpoint_type(ep_desc)); in keyspan_setup_urb()
Dftdi_sio.c1605 struct usb_endpoint_descriptor *ep_desc; in ftdi_set_max_packet_size() local
1620 ep_desc = &interface->cur_altsetting->endpoint[i].desc; in ftdi_set_max_packet_size()
1621 if (!ep_desc->wMaxPacketSize) { in ftdi_set_max_packet_size()
1622 ep_desc->wMaxPacketSize = cpu_to_le16(0x40); in ftdi_set_max_packet_size()
1624 usb_endpoint_num(ep_desc)); in ftdi_set_max_packet_size()
1629 priv->max_packet_size = usb_endpoint_maxp(ep_desc); in ftdi_set_max_packet_size()
/linux-6.12.1/drivers/net/wireless/ath/ath6kl/
Dusb.c58 struct usb_endpoint_descriptor *ep_desc; member
402 pipe->ep_desc = endpoint; in ath6kl_usb_setup_pipe_resources()
/linux-6.12.1/drivers/usb/dwc2/
Dgadget.c727 const struct usb_endpoint_descriptor *ep_desc = hs_ep->ep.desc; in dwc2_gadget_get_chain_limit() local
742 if (usb_endpoint_xfer_int(ep_desc) && !dir_in && (mps % 4)) in dwc2_gadget_get_chain_limit()
767 const struct usb_endpoint_descriptor *ep_desc = hs_ep->ep.desc; in dwc2_gadget_get_desc_params() local
793 if (usb_endpoint_xfer_int(ep_desc) && !dir_in && (mps % 4)) { in dwc2_gadget_get_desc_params()
2345 const struct usb_endpoint_descriptor *ep_desc = hs_ep->ep.desc; in dwc2_gadget_get_xfersize_ddma() local
2360 if (usb_endpoint_xfer_int(ep_desc) && !dir_in && (mps % 4)) in dwc2_gadget_get_xfersize_ddma()