/linux/drivers/usb/gadget/function/ |
H A D | f_loopback.c | 31 struct usb_ep *in_ep; member 187 loop->in_ep = usb_ep_autoconfig(cdev->gadget, &fs_loop_source_desc); in loopback_bind() 188 if (!loop->in_ep) { in loopback_bind() 215 f->name, loop->in_ep->name, loop->out_ep->name); in loopback_bind() 250 ep = loop->in_ep; in loopback_complete() 286 usb_ep_free_request(ep == loop->in_ep ? in loopback_complete() 287 loop->out_ep : loop->in_ep, in loopback_complete() 299 disable_endpoints(cdev, loop->in_ep, loop->out_ep, NULL, NULL); in disable_loopback() 324 in_req = usb_ep_alloc_request(loop->in_ep, GFP_ATOMIC); in alloc_requests() 353 usb_ep_free_request(loop->in_ep, in_req); in alloc_requests() [all …]
|
H A D | f_phonet.c | 48 struct usb_ep *in_ep, *out_ep; member 246 if (unlikely(usb_ep_queue(fp->in_ep, req, GFP_ATOMIC))) in pn_net_xmit() 390 usb_ep_disable(fp->in_ep); in __pn_reset() 416 if (fp->in_ep->enabled) in pn_set_alt() 422 if (config_ep_by_speed(gadget, f, fp->in_ep) || in pn_set_alt() 424 fp->in_ep->desc = NULL; in pn_set_alt() 430 usb_ep_enable(fp->in_ep); in pn_set_alt() 434 fp->in_ep->driver_data = fp; in pn_set_alt() 532 fp->in_ep = ep; in pn_bind() 557 fp->in_req = usb_ep_alloc_request(fp->in_ep, GFP_KERNEL); in pn_bind() [all …]
|
H A D | f_printer.c | 72 struct usb_ep *in_ep, *out_ep; member 650 req->zero = ((len % dev->in_ep->maxpacket) == 0); in printer_write() 682 value = usb_ep_queue(dev->in_ep, req, GFP_ATOMIC); in printer_write() 833 dev->in_ep->desc = ep_desc(dev->gadget, &fs_ep_in_desc, &hs_ep_in_desc, in set_printer_interface() 835 dev->in_ep->driver_data = dev; in set_printer_interface() 841 result = usb_ep_enable(dev->in_ep); in set_printer_interface() 843 DBG(dev, "enable %s --> %d\n", dev->in_ep->name, result); in set_printer_interface() 856 (void) usb_ep_disable(dev->in_ep); in set_printer_interface() 858 dev->in_ep->desc = NULL; in set_printer_interface() 873 if (dev->in_ep->desc) in printer_reset_interface() [all …]
|
H A D | f_eem.c | 201 if (!eem->port.in_ep->desc || !eem->port.out_ep->desc) { in eem_set_alt() 204 eem->port.in_ep) || in eem_set_alt() 207 eem->port.in_ep->desc = NULL; in eem_set_alt() 237 if (eem->port.in_ep->enabled) in eem_disable() 292 eem->port.in_ep = ep; in eem_bind() 315 eem->port.in_ep->name, eem->port.out_ep->name); in eem_bind() 342 struct usb_ep *in = port->in_ep; in eem_wrap() 451 ep = port->in_ep; in eem_unwrap() 480 if (usb_ep_queue(port->in_ep, req, GFP_ATOMIC)) in eem_unwrap()
|
H A D | f_hid.c | 108 struct usb_ep *in_ep; member 514 free_ep_req(hidg->in_ep, req); in f_hidg_write() 530 if (!hidg->in_ep->enabled) { in f_hidg_write() 536 status = usb_ep_queue(hidg->in_ep, req, GFP_ATOMIC); in f_hidg_write() 993 usb_ep_disable(hidg->in_ep); in hidg_disable() 1017 free_ep_req(hidg->in_ep, hidg->req); in hidg_disable() 1035 if (hidg->in_ep != NULL) { in hidg_set_alt() 1037 usb_ep_disable(hidg->in_ep); in hidg_set_alt() 1040 hidg->in_ep); in hidg_set_alt() 1045 status = usb_ep_enable(hidg->in_ep); in hidg_set_alt() [all …]
|
H A D | u_ether.c | 357 status = prealloc(&dev->tx_reqs, link->in_ep, n); in alloc_requests() 467 in = dev->port_usb->in_ep; in eth_start_xmit() 664 in = link->in_ep->desc; in eth_stop() 666 usb_ep_disable(link->in_ep); in eth_stop() 670 link->in_ep->desc = in; in eth_stop() 672 usb_ep_enable(link->in_ep); in eth_stop() 1122 link->in_ep->driver_data = dev; in gether_connect() 1123 result = usb_ep_enable(link->in_ep); in gether_connect() 1126 link->in_ep->name, result); in gether_connect() 1170 (void) usb_ep_disable(link->in_ep); in gether_connect() [all …]
|
H A D | f_subset.c | 261 if (geth->port.in_ep->enabled) { in geth_set_alt() 267 if (config_ep_by_speed(cdev->gadget, f, geth->port.in_ep) || in geth_set_alt() 269 geth->port.in_ep->desc = NULL; in geth_set_alt() 341 geth->port.in_ep = ep; in geth_bind() 371 geth->port.in_ep->name, geth->port.out_ep->name); in geth_bind()
|
H A D | f_ecm.c | 546 if (ecm->port.in_ep->enabled) { in ecm_set_alt() 551 if (!ecm->port.in_ep->desc || in ecm_set_alt() 555 ecm->port.in_ep) || in ecm_set_alt() 558 ecm->port.in_ep->desc = NULL; in ecm_set_alt() 606 return ecm->port.in_ep->enabled ? 1 : 0; in ecm_get_alt() 616 if (ecm->port.in_ep->enabled) { in ecm_disable() 619 ecm->port.in_ep->desc = NULL; in ecm_disable() 736 ecm->port.in_ep = ep; in ecm_bind() 792 ecm->port.in_ep->name, ecm->port.out_ep->name, in ecm_bind()
|
H A D | f_sourcesink.c | 37 struct usb_ep *in_ep; member 332 ss->in_ep = usb_ep_autoconfig(cdev->gadget, &fs_source_desc); in sourcesink_bind() 333 if (!ss->in_ep) { in sourcesink_bind() 440 f->name, ss->in_ep->name, ss->out_ep->name, in sourcesink_bind() 602 ep = is_in ? ss->in_ep : ss->out_ep; in source_sink_start_ep() 639 disable_endpoints(cdev, ss->in_ep, ss->out_ep, ss->iso_in_ep, in disable_source_sink() 653 ep = ss->in_ep; in enable_source_sink() 665 ep = ss->in_ep; in enable_source_sink()
|
H A D | f_rndis.c | 547 if (rndis->port.in_ep->enabled) { in rndis_set_alt() 552 if (!rndis->port.in_ep->desc || !rndis->port.out_ep->desc) { in rndis_set_alt() 555 rndis->port.in_ep) || in rndis_set_alt() 558 rndis->port.in_ep->desc = NULL; in rndis_set_alt() 737 rndis->port.in_ep = ep; in rndis_bind() 802 rndis->port.in_ep->name, rndis->port.out_ep->name, in rndis_bind()
|
H A D | u_audio.h | 64 struct usb_ep *in_ep; member
|
H A D | u_ether.h | 59 struct usb_ep *in_ep; member
|
H A D | f_ncm.c | 895 if (!ncm->port.in_ep->desc || in ncm_set_alt() 899 ncm->port.in_ep) || in ncm_set_alt() 902 ncm->port.in_ep->desc = NULL; in ncm_set_alt() 943 return ncm->port.in_ep->enabled ? 1 : 0; in ncm_get_alt() 1508 ncm->port.in_ep = ep; in ncm_bind() 1565 ncm->port.in_ep->name, ncm->port.out_ep->name, in ncm_bind()
|
H A D | u_audio.c | 713 ep = audio_dev->in_ep; in u_audio_start_playback() 781 free_ep(&uac->p_prm, audio_dev->in_ep); in u_audio_stop_playback()
|
/linux/net/9p/ |
H A D | trans_usbg.c | 48 struct usb_ep *in_ep; member 98 if (!(p9_tx_req->tc.size % usb9pfs->in_ep->maxpacket)) in usb9pfs_queue_tx() 106 usb9pfs->in_ep->name, req->actual, req->length, req->zero); in usb9pfs_queue_tx() 108 ret = usb_ep_queue(usb9pfs->in_ep, req, gfp_flags); in usb9pfs_queue_tx() 271 usb_ep_free_request(usb9pfs->in_ep, usb9pfs->in_req); in disable_usb9pfs() 280 disable_ep(cdev, usb9pfs->in_ep); in disable_usb9pfs() 291 usb9pfs->in_req = usb_ep_alloc_request(usb9pfs->in_ep, GFP_ATOMIC); in alloc_requests() 313 usb_ep_free_request(usb9pfs->in_ep, usb9pfs->in_req); in alloc_requests() 342 ret = enable_endpoint(cdev, usb9pfs, usb9pfs->in_ep); in enable_usb9pfs() 364 usb_ep_disable(usb9pfs->in_ep); in enable_usb9pfs() [all …]
|
/linux/drivers/media/usb/siano/ |
H A D | smsusb.c | 58 unsigned char in_ep; member 165 usb_rcvbulkpipe(dev->udev, dev->in_ep), in smsusb_submit_urb() 414 dev->in_ep = desc->bEndpointAddress; in smsusb_init_device() 421 pr_debug("in_ep = %02x, out_ep = %02x\n", dev->in_ep, dev->out_ep); in smsusb_init_device() 422 if (!dev->in_ep || !dev->out_ep || align < 0) { /* Missing endpoints? */ in smsusb_init_device() 605 usb_clear_halt(udev, usb_rcvbulkpipe(udev, dev->in_ep)); in smsusb_resume()
|
/linux/drivers/gpu/drm/bridge/ |
H A D | parade-ps8640.c | 564 struct device_node *in_ep, *dsi_node; in ps8640_bridge_get_dsi_resources() local 573 in_ep = of_graph_get_endpoint_by_regs(dev->of_node, 0, -1); in ps8640_bridge_get_dsi_resources() 574 if (!in_ep) in ps8640_bridge_get_dsi_resources() 577 dsi_node = of_graph_get_remote_port_parent(in_ep); in ps8640_bridge_get_dsi_resources() 578 of_node_put(in_ep); in ps8640_bridge_get_dsi_resources()
|
/linux/sound/usb/usx2y/ |
H A D | usX2Yhwdep.c | 117 .in_ep = 0x06, in usx2y_create_usbmidi() 130 .in_ep = 0x06, in usx2y_create_usbmidi()
|
H A D | us122l.c | 45 .in_ep = 3, in us122l_create_usbmidi() 67 .in_ep = 3, in us144_create_usbmidi()
|
/linux/sound/usb/ |
H A D | midi.h | 12 int8_t in_ep; member
|
H A D | midi.c | 1287 pipe = usb_rcvintpipe(umidi->dev, ep_info->in_ep); in snd_usbmidi_in_endpoint_create() 1289 pipe = usb_rcvbulkpipe(umidi->dev, ep_info->in_ep); in snd_usbmidi_in_endpoint_create() 1311 ep_info->in_ep); in snd_usbmidi_in_endpoint_create() 1972 if (endpoints[epidx].in_ep) { in snd_usbmidi_get_ms_info() 1979 endpoints[epidx].in_ep = usb_endpoint_num(ep); in snd_usbmidi_get_ms_info() 2089 if (endpoint[0].out_ep || endpoint[0].in_ep) in snd_usbmidi_detect_endpoints() 2112 endpoint[in_eps].in_ep = usb_endpoint_num(epd); in snd_usbmidi_detect_endpoints() 2133 if (endpoints[i].in_ep) in snd_usbmidi_detect_per_port_endpoints() 2282 ep_info.in_ep = get_endpoint(hostif, 0)->bEndpointAddress & in snd_usbmidi_create_endpoints_midiman()
|
/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | usb.c | 298 int i, in_ep = 0, out_ep = 0; in mt76u_set_endpoints() local 304 in_ep < __MT_EP_IN_MAX) { in mt76u_set_endpoints() 305 usb->in_ep[in_ep] = usb_endpoint_num(ep_desc); in mt76u_set_endpoints() 306 in_ep++; in mt76u_set_endpoints() 314 if (in_ep != __MT_EP_IN_MAX || out_ep != __MT_EP_OUT_MAX) in mt76u_set_endpoints() 427 pipe = usb_rcvbulkpipe(udev, dev->usb.in_ep[index]); in mt76u_fill_bulk_urb()
|
/linux/drivers/char/xillybus/ |
H A D | xillyusb.c | 179 struct xillyusb_endpoint *in_ep; member 552 if (xdev->in_ep) in cleanup_dev() 553 endpoint_dealloc(xdev->in_ep); in cleanup_dev() 643 flush_work(&chan->xdev->in_ep->workitem); in safely_assign_in_fifo() 1923 xdev->in_ep = endpoint_alloc(xdev, IN_EP_NUM | USB_DIR_IN, in xillyusb_setup_base_eps() 1925 if (!xdev->in_ep) in xillyusb_setup_base_eps() 1928 try_queue_bulk_in(xdev->in_ep); in xillyusb_setup_base_eps() 2189 endpoint_quiesce(xdev->in_ep); in xillyusb_probe() 2254 endpoint_quiesce(xdev->in_ep); in xillyusb_disconnect()
|
/linux/drivers/net/wireless/realtek/rtlwifi/ |
H A D | usb.h | 117 u32 in_ep; /* Bulk IN endpoint number */ member
|
H A D | usb.c | 226 rtlusb->rx_max_size, rtlusb->rx_urb_num, rtlusb->in_ep); in _rtl_usb_init_rx() 258 rtlusb->in_ep = usb_endpoint_num(pep_desc); in _rtl_usb_init() 362 usb_rcvbulkpipe(rtlusb->udev, rtlusb->in_ep), in _rtl_prep_rx_urb() 576 _rtl_install_trx_info(rtlusb, skb, rtlusb->in_ep); in _rtl_rx_completed()
|