/drivers/net/wireless/mediatek/mt7601u/ |
D | usb.c | 216 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/staging/comedi/drivers/ |
D | ni_usb6501.c | 488 struct usb_endpoint_descriptor *ep_desc; in ni6501_find_endpoints() local 497 ep_desc = &iface_desc->endpoint[i].desc; in ni6501_find_endpoints() 499 if (usb_endpoint_is_bulk_in(ep_desc)) { in ni6501_find_endpoints() 501 devpriv->ep_rx = ep_desc; in ni6501_find_endpoints() 505 if (usb_endpoint_is_bulk_out(ep_desc)) { in ni6501_find_endpoints() 507 devpriv->ep_tx = ep_desc; in ni6501_find_endpoints()
|
D | vmk80xx.c | 652 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/nfc/nfcmrvl/ |
D | usb.c | 298 struct usb_endpoint_descriptor *ep_desc; in nfcmrvl_probe() local 315 ep_desc = &intf->cur_altsetting->endpoint[i].desc; in nfcmrvl_probe() 318 usb_endpoint_is_bulk_out(ep_desc)) { in nfcmrvl_probe() 319 drv_data->bulk_tx_ep = ep_desc; in nfcmrvl_probe() 324 usb_endpoint_is_bulk_in(ep_desc)) { in nfcmrvl_probe() 325 drv_data->bulk_rx_ep = ep_desc; in nfcmrvl_probe()
|
/drivers/net/wireless/ralink/rt2x00/ |
D | rt2x00usb.c | 575 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/ |
D | btusb.c | 1328 struct usb_endpoint_descriptor *ep_desc; in __set_isoc_interface() local 1346 ep_desc = &intf->cur_altsetting->endpoint[i].desc; in __set_isoc_interface() 1348 if (!data->isoc_tx_ep && usb_endpoint_is_isoc_out(ep_desc)) { in __set_isoc_interface() 1349 data->isoc_tx_ep = ep_desc; in __set_isoc_interface() 1353 if (!data->isoc_rx_ep && usb_endpoint_is_isoc_in(ep_desc)) { in __set_isoc_interface() 1354 data->isoc_rx_ep = ep_desc; in __set_isoc_interface() 2659 struct usb_endpoint_descriptor *ep_desc; in __set_diag_interface() local 2661 ep_desc = &intf->cur_altsetting->endpoint[i].desc; in __set_diag_interface() 2663 if (!data->diag_tx_ep && usb_endpoint_is_bulk_out(ep_desc)) { in __set_diag_interface() 2664 data->diag_tx_ep = ep_desc; in __set_diag_interface() [all …]
|
/drivers/staging/most/hdm-usb/ |
D | hdm_usb.c | 1187 struct usb_endpoint_descriptor *ep_desc; in hdm_probe() local 1243 ep_desc = &usb_iface_desc->endpoint[i].desc; in hdm_probe() 1244 mdev->ep_address[i] = ep_desc->bEndpointAddress; in hdm_probe() 1258 if (usb_endpoint_dir_in(ep_desc)) in hdm_probe() 1267 ep_desc->bEndpointAddress * 16, in hdm_probe() 1271 ep_desc->bEndpointAddress); in hdm_probe()
|
/drivers/usb/gadget/function/ |
D | f_uac2.c | 967 struct usb_endpoint_descriptor *ep_desc, in set_ep_max_packet_size() argument 984 DIV_ROUND_UP(srate, factor / (1 << (ep_desc->bInterval - 1))); in set_ep_max_packet_size() 985 ep_desc->wMaxPacketSize = cpu_to_le16(min_t(u16, max_packet_size, in set_ep_max_packet_size() 986 le16_to_cpu(ep_desc->wMaxPacketSize))); in set_ep_max_packet_size() 1162 struct usb_endpoint_descriptor *ep_desc; in afunc_set_alt() local 1171 ep_desc = &fs_epin_desc; in afunc_set_alt() 1174 ep_desc = &hs_epin_desc; in afunc_set_alt() 1182 uac2->p_interval = factor / (1 << (ep_desc->bInterval - 1)); in afunc_set_alt()
|
D | f_printer.c | 209 static inline struct usb_endpoint_descriptor *ep_desc(struct usb_gadget *gadget, in ep_desc() function 764 dev->in_ep->desc = ep_desc(dev->gadget, &fs_ep_in_desc, &hs_ep_in_desc, in set_printer_interface() 768 dev->out_ep->desc = ep_desc(dev->gadget, &fs_ep_out_desc, in set_printer_interface()
|
/drivers/usb/serial/ |
D | keyspan.c | 1234 struct usb_endpoint_descriptor const *ep_desc; in keyspan_setup_urb() local 1251 ep_desc = find_ep(serial, endpoint); in keyspan_setup_urb() 1252 if (!ep_desc) { in keyspan_setup_urb() 1256 if (usb_endpoint_xfer_int(ep_desc)) { in keyspan_setup_urb() 1261 ep_desc->bInterval); in keyspan_setup_urb() 1262 } else if (usb_endpoint_xfer_bulk(ep_desc)) { in keyspan_setup_urb() 1270 usb_endpoint_type(ep_desc)); in keyspan_setup_urb()
|
D | ftdi_sio.c | 1647 struct usb_endpoint_descriptor *ep_desc; in ftdi_set_max_packet_size() local 1662 ep_desc = &interface->cur_altsetting->endpoint[i].desc; in ftdi_set_max_packet_size() 1663 if (!ep_desc->wMaxPacketSize) { in ftdi_set_max_packet_size() 1664 ep_desc->wMaxPacketSize = cpu_to_le16(0x40); in ftdi_set_max_packet_size() 1666 usb_endpoint_num(ep_desc)); in ftdi_set_max_packet_size() 1671 priv->max_packet_size = usb_endpoint_maxp(ep_desc); in ftdi_set_max_packet_size()
|
/drivers/usb/gadget/ |
D | composite.c | 127 #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/ |
D | usb.c | 58 struct usb_endpoint_descriptor *ep_desc; member 388 pipe->ep_desc = endpoint; in ath6kl_usb_setup_pipe_resources()
|