Home
last modified time | relevance | path

Searched refs:in_ep (Results 1 – 25 of 30) sorted by relevance

12

/linux-6.6.21/drivers/usb/gadget/function/
Df_loopback.c31 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 …]
Df_phonet.c48 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 …]
Df_printer.c72 struct usb_ep *in_ep, *out_ep; member
640 req->zero = ((len % dev->in_ep->maxpacket) == 0); in printer_write()
669 value = usb_ep_queue(dev->in_ep, req, GFP_ATOMIC); in printer_write()
813 dev->in_ep->desc = ep_desc(dev->gadget, &fs_ep_in_desc, &hs_ep_in_desc, in set_printer_interface()
815 dev->in_ep->driver_data = dev; in set_printer_interface()
821 result = usb_ep_enable(dev->in_ep); in set_printer_interface()
823 DBG(dev, "enable %s --> %d\n", dev->in_ep->name, result); in set_printer_interface()
836 (void) usb_ep_disable(dev->in_ep); in set_printer_interface()
838 dev->in_ep->desc = NULL; in set_printer_interface()
853 if (dev->in_ep->desc) in printer_reset_interface()
[all …]
Df_eem.c201 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()
Df_hid.c82 struct usb_ep *in_ep; member
488 free_ep_req(hidg->in_ep, req); in f_hidg_write()
504 if (!hidg->in_ep->enabled) { in f_hidg_write()
510 status = usb_ep_queue(hidg->in_ep, req, GFP_ATOMIC); in f_hidg_write()
782 usb_ep_disable(hidg->in_ep); in hidg_disable()
798 free_ep_req(hidg->in_ep, hidg->req); in hidg_disable()
816 if (hidg->in_ep != NULL) { in hidg_set_alt()
818 usb_ep_disable(hidg->in_ep); in hidg_set_alt()
821 hidg->in_ep); in hidg_set_alt()
826 status = usb_ep_enable(hidg->in_ep); in hidg_set_alt()
[all …]
Du_ether.c357 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 …]
Df_subset.c261 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()
Df_ecm.c546 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()
Df_midi.c82 struct usb_ep *in_ep, *out_ep; member
281 } else if (ep == midi->in_ep) { in f_midi_complete()
373 err = f_midi_start_ep(midi, f, midi->in_ep); in f_midi_set_alt()
384 midi_alloc_ep_req(midi->in_ep, midi->buflen); in f_midi_set_alt()
429 usb_ep_disable(midi->in_ep); in f_midi_disable()
434 free_ep_req(midi->in_ep, req); in f_midi_disable()
661 midi->in_ep->name, err); in f_midi_do_transmit()
675 struct usb_ep *ep = midi->in_ep; in f_midi_transmit()
910 midi->in_ep = usb_ep_autoconfig(cdev->gadget, &bulk_in_desc); in f_midi_bind()
911 if (!midi->in_ep) in f_midi_bind()
Df_sourcesink.c37 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()
Df_rndis.c547 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()
Df_ncm.c872 if (ncm->port.in_ep->enabled) { in ncm_set_alt()
886 if (!ncm->port.in_ep->desc || in ncm_set_alt()
890 ncm->port.in_ep) || in ncm_set_alt()
893 ncm->port.in_ep->desc = NULL; in ncm_set_alt()
934 return ncm->port.in_ep->enabled ? 1 : 0; in ncm_get_alt()
1357 if (ncm->port.in_ep->enabled) { in ncm_disable()
1491 ncm->port.in_ep = ep; in ncm_bind()
1548 ncm->port.in_ep->name, ncm->port.out_ep->name, in ncm_bind()
Du_audio.h64 struct usb_ep *in_ep; member
Du_ether.h59 struct usb_ep *in_ep; member
/linux-6.6.21/drivers/usb/misc/
Dchaoskey.c76 char in_ep; member
112 int in_ep; in chaoskey_probe() local
127 in_ep = usb_endpoint_num(epd); in chaoskey_probe()
163 usb_rcvbulkpipe(udev, in_ep), in chaoskey_probe()
180 dev->in_ep = in_ep; in chaoskey_probe()
/linux-6.6.21/drivers/media/usb/siano/
Dsmsusb.c58 unsigned char in_ep; member
165 usb_rcvbulkpipe(dev->udev, dev->in_ep), in smsusb_submit_urb()
411 dev->in_ep = desc->bEndpointAddress; in smsusb_init_device()
418 pr_debug("in_ep = %02x, out_ep = %02x\n", dev->in_ep, dev->out_ep); in smsusb_init_device()
419 if (!dev->in_ep || !dev->out_ep || align < 0) { /* Missing endpoints? */ in smsusb_init_device()
599 usb_clear_halt(udev, usb_rcvbulkpipe(udev, dev->in_ep)); in smsusb_resume()
/linux-6.6.21/drivers/gpu/drm/bridge/
Dparade-ps8640.c564 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-6.6.21/sound/usb/
Dmidi.h12 int8_t in_ep; member
Dmidi.c1287 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()
1995 if (endpoints[epidx].in_ep) { in snd_usbmidi_get_ms_info()
2002 endpoints[epidx].in_ep = usb_endpoint_num(ep); in snd_usbmidi_get_ms_info()
2112 if (endpoint[0].out_ep || endpoint[0].in_ep) in snd_usbmidi_detect_endpoints()
2135 endpoint[in_eps].in_ep = usb_endpoint_num(epd); in snd_usbmidi_detect_endpoints()
2156 if (endpoints[i].in_ep) in snd_usbmidi_detect_per_port_endpoints()
2305 ep_info.in_ep = get_endpoint(hostif, 0)->bEndpointAddress & in snd_usbmidi_create_endpoints_midiman()
/linux-6.6.21/sound/usb/usx2y/
DusX2Yhwdep.c123 .in_ep = 0x06, in usx2y_create_usbmidi()
136 .in_ep = 0x06, in usx2y_create_usbmidi()
Dus122l.c45 .in_ep = 3, in us122l_create_usbmidi()
67 .in_ep = 3, in us144_create_usbmidi()
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/
Dusb.c298 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-6.6.21/drivers/char/xillybus/
Dxillyusb.c178 struct xillyusb_endpoint *in_ep; member
551 if (xdev->in_ep) in cleanup_dev()
552 endpoint_dealloc(xdev->in_ep); in cleanup_dev()
646 flush_work(&chan->xdev->in_ep->workitem); in safely_assign_in_fifo()
1919 xdev->in_ep = endpoint_alloc(xdev, IN_EP_NUM | USB_DIR_IN, in xillyusb_setup_base_eps()
1921 if (!xdev->in_ep) in xillyusb_setup_base_eps()
1924 try_queue_bulk_in(xdev->in_ep); in xillyusb_setup_base_eps()
2172 endpoint_quiesce(xdev->in_ep); in xillyusb_probe()
2237 endpoint_quiesce(xdev->in_ep); in xillyusb_disconnect()
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/
Dusb.h115 u32 in_ep; /* Bulk IN endpoint number */ member
Dusb.c283 rtlusb->in_ep = rtlpriv->cfg->usb_interface_cfg->in_ep_num; in _rtl_usb_init_rx()
289 rtlusb->rx_max_size, rtlusb->rx_urb_num, rtlusb->in_ep); in _rtl_usb_init_rx()
393 usb_rcvbulkpipe(rtlusb->udev, rtlusb->in_ep), in _rtl_prep_rx_urb()
607 _rtl_install_trx_info(rtlusb, skb, rtlusb->in_ep); in _rtl_rx_completed()

12