Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt7601u/
Dusb.c230 struct usb_endpoint_descriptor *ep_desc; in mt7601u_assign_pipes() local
238 ep_desc = &intf_desc->endpoint[i].desc; in mt7601u_assign_pipes()
240 if (usb_endpoint_is_bulk_in(ep_desc) && in mt7601u_assign_pipes()
242 dev->in_eps[ep_i - 1] = usb_endpoint_num(ep_desc); in mt7601u_assign_pipes()
243 dev->in_max_packet = usb_endpoint_maxp(ep_desc); in mt7601u_assign_pipes()
248 } else if (usb_endpoint_is_bulk_out(ep_desc) && in mt7601u_assign_pipes()
250 dev->out_eps[ep_o - 1] = usb_endpoint_num(ep_desc); in mt7601u_assign_pipes()
251 dev->out_max_packet = usb_endpoint_maxp(ep_desc); in mt7601u_assign_pipes()
/kernel/linux/linux-5.10/drivers/nfc/nfcmrvl/
Dusb.c299 struct usb_endpoint_descriptor *ep_desc; in nfcmrvl_probe() local
317 ep_desc = &intf->cur_altsetting->endpoint[i].desc; in nfcmrvl_probe()
320 usb_endpoint_is_bulk_out(ep_desc)) { in nfcmrvl_probe()
321 drv_data->bulk_tx_ep = ep_desc; in nfcmrvl_probe()
326 usb_endpoint_is_bulk_in(ep_desc)) { in nfcmrvl_probe()
327 drv_data->bulk_rx_ep = ep_desc; in nfcmrvl_probe()
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
Dni_usb6501.c481 struct usb_endpoint_descriptor *ep_desc; in ni6501_find_endpoints() local
490 ep_desc = &iface_desc->endpoint[i].desc; in ni6501_find_endpoints()
492 if (usb_endpoint_is_bulk_in(ep_desc)) { in ni6501_find_endpoints()
494 devpriv->ep_rx = ep_desc; in ni6501_find_endpoints()
498 if (usb_endpoint_is_bulk_out(ep_desc)) { in ni6501_find_endpoints()
500 devpriv->ep_tx = ep_desc; in ni6501_find_endpoints()
Dvmk80xx.c645 struct usb_endpoint_descriptor *ep_desc; in vmk80xx_find_usb_endpoints() local
652 ep_desc = &iface_desc->endpoint[i].desc; in vmk80xx_find_usb_endpoints()
654 if (usb_endpoint_is_int_in(ep_desc) || in vmk80xx_find_usb_endpoints()
655 usb_endpoint_is_bulk_in(ep_desc)) { in vmk80xx_find_usb_endpoints()
657 devpriv->ep_rx = ep_desc; in vmk80xx_find_usb_endpoints()
661 if (usb_endpoint_is_int_out(ep_desc) || in vmk80xx_find_usb_endpoints()
662 usb_endpoint_is_bulk_out(ep_desc)) { in vmk80xx_find_usb_endpoints()
664 devpriv->ep_tx = ep_desc; in vmk80xx_find_usb_endpoints()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/bluetooth/
Dbtusb.c1610 struct usb_endpoint_descriptor *ep_desc; in __set_isoc_interface() local
1628 ep_desc = &intf->cur_altsetting->endpoint[i].desc; in __set_isoc_interface()
1630 if (!data->isoc_tx_ep && usb_endpoint_is_isoc_out(ep_desc)) { in __set_isoc_interface()
1631 data->isoc_tx_ep = ep_desc; in __set_isoc_interface()
1635 if (!data->isoc_rx_ep && usb_endpoint_is_isoc_in(ep_desc)) { in __set_isoc_interface()
1636 data->isoc_rx_ep = ep_desc; in __set_isoc_interface()
3781 struct usb_endpoint_descriptor *ep_desc; in __set_diag_interface() local
3783 ep_desc = &intf->cur_altsetting->endpoint[i].desc; in __set_diag_interface()
3785 if (!data->diag_tx_ep && usb_endpoint_is_bulk_out(ep_desc)) { in __set_diag_interface()
3786 data->diag_tx_ep = ep_desc; in __set_diag_interface()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/
Dusb.h86 struct usb_endpoint_descriptor *ep_desc; member
Dusb.c912 pipe->ep_desc = endpoint; in ath10k_usb_setup_pipe_resources()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/
Dusb.c351 struct usb_endpoint_descriptor *ep_desc; in mt76u_set_endpoints() local
355 ep_desc = &intf_desc->endpoint[i].desc; in mt76u_set_endpoints()
357 if (usb_endpoint_is_bulk_in(ep_desc) && in mt76u_set_endpoints()
359 usb->in_ep[in_ep] = usb_endpoint_num(ep_desc); in mt76u_set_endpoints()
361 } else if (usb_endpoint_is_bulk_out(ep_desc) && in mt76u_set_endpoints()
363 usb->out_ep[out_ep] = usb_endpoint_num(ep_desc); in mt76u_set_endpoints()
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
Du_audio.c421 const struct usb_endpoint_descriptor *ep_desc; in u_audio_start_playback() local
428 ep_desc = ep->desc; in u_audio_start_playback()
439 uac->p_interval = factor / (1 << (ep_desc->bInterval - 1)); in u_audio_start_playback()
Df_uac2.c451 struct usb_endpoint_descriptor *ep_desc, in set_ep_max_packet_size() argument
484 ((srate / (factor / (1 << (ep_desc->bInterval - 1)))) + 1); in set_ep_max_packet_size()
485 ep_desc->wMaxPacketSize = cpu_to_le16(min_t(u16, max_size_bw, in set_ep_max_packet_size()
Df_printer.c205 static inline struct usb_endpoint_descriptor *ep_desc(struct usb_gadget *gadget, in ep_desc() function
810 dev->in_ep->desc = ep_desc(dev->gadget, &fs_ep_in_desc, &hs_ep_in_desc, in set_printer_interface()
814 dev->out_ep->desc = ep_desc(dev->gadget, &fs_ep_out_desc, in set_printer_interface()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/usb/serial/
Dkeyspan.c1729 struct usb_endpoint_descriptor const *ep_desc; in keyspan_setup_urb() local
1746 ep_desc = find_ep(serial, endpoint); in keyspan_setup_urb()
1747 if (!ep_desc) { in keyspan_setup_urb()
1751 if (usb_endpoint_xfer_int(ep_desc)) { in keyspan_setup_urb()
1756 ep_desc->bInterval); in keyspan_setup_urb()
1757 } else if (usb_endpoint_xfer_bulk(ep_desc)) { in keyspan_setup_urb()
1765 usb_endpoint_type(ep_desc)); in keyspan_setup_urb()
Dftdi_sio.c1658 struct usb_endpoint_descriptor *ep_desc; in ftdi_set_max_packet_size() local
1673 ep_desc = &interface->cur_altsetting->endpoint[i].desc; in ftdi_set_max_packet_size()
1674 if (!ep_desc->wMaxPacketSize) { in ftdi_set_max_packet_size()
1675 ep_desc->wMaxPacketSize = cpu_to_le16(0x40); in ftdi_set_max_packet_size()
1677 usb_endpoint_num(ep_desc)); in ftdi_set_max_packet_size()
1682 priv->max_packet_size = usb_endpoint_maxp(ep_desc); in ftdi_set_max_packet_size()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath6kl/
Dusb.c58 struct usb_endpoint_descriptor *ep_desc; member
401 pipe->ep_desc = endpoint; in ath6kl_usb_setup_pipe_resources()
/kernel/linux/linux-5.10/drivers/usb/dwc2/
Dgadget.c728 const struct usb_endpoint_descriptor *ep_desc = hs_ep->ep.desc; in dwc2_gadget_get_chain_limit() local
743 if (usb_endpoint_xfer_int(ep_desc) && !dir_in && (mps % 4)) in dwc2_gadget_get_chain_limit()
768 const struct usb_endpoint_descriptor *ep_desc = hs_ep->ep.desc; in dwc2_gadget_get_desc_params() local
794 if (usb_endpoint_xfer_int(ep_desc) && !dir_in && (mps % 4)) { in dwc2_gadget_get_desc_params()
2341 const struct usb_endpoint_descriptor *ep_desc = hs_ep->ep.desc; in dwc2_gadget_get_xfersize_ddma() local
2356 if (usb_endpoint_xfer_int(ep_desc) && !dir_in && (mps % 4)) in dwc2_gadget_get_xfersize_ddma()