Home
last modified time | relevance | path

Searched refs:out_ep (Results 1 – 25 of 39) sorted by relevance

12

/openbmc/linux/drivers/usb/gadget/function/
H A Df_loopback.c32 struct usb_ep *out_ep; member
195 loop->out_ep = usb_ep_autoconfig(cdev->gadget, &fs_loop_sink_desc); in loopback_bind()
196 if (!loop->out_ep) in loopback_bind()
215 f->name, loop->in_ep->name, loop->out_ep->name); in loopback_bind()
241 if (ep == loop->out_ep) { in loopback_complete()
258 ep = loop->out_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()
328 out_req = lb_alloc_ep_req(loop->out_ep, loop->buflen); in alloc_requests()
340 result = usb_ep_queue(loop->out_ep, out_req, GFP_ATOMIC); in alloc_requests()
[all …]
H A Df_phonet.c48 struct usb_ep *in_ep, *out_ep; member
308 err = usb_ep_queue(fp->out_ep, req, gfp_flags); in pn_rx_submit()
389 usb_ep_disable(fp->out_ep); in __pn_reset()
423 config_ep_by_speed(gadget, f, fp->out_ep)) { in pn_set_alt()
425 fp->out_ep->desc = NULL; in pn_set_alt()
429 usb_ep_enable(fp->out_ep); in pn_set_alt()
433 fp->out_ep->driver_data = fp; in pn_set_alt()
527 fp->out_ep = ep; in pn_bind()
548 req = usb_ep_alloc_request(fp->out_ep, GFP_KERNEL); in pn_bind()
563 fp->out_ep->name, fp->in_ep->name); in pn_bind()
[all …]
H A Df_printer.c72 struct usb_ep *in_ep, *out_ep; member
417 error = usb_ep_queue(dev->out_ep, req, GFP_ATOMIC); in setup_rx_reqs()
837 dev->out_ep->desc = ep_desc(dev->gadget, &fs_ep_out_desc, in set_printer_interface()
839 dev->out_ep->driver_data = dev; in set_printer_interface()
847 result = usb_ep_enable(dev->out_ep); in set_printer_interface()
849 DBG(dev, "enable %s --> %d\n", dev->out_ep->name, result); in set_printer_interface()
857 (void) usb_ep_disable(dev->out_ep); in set_printer_interface()
859 dev->out_ep->desc = NULL; in set_printer_interface()
876 if (dev->out_ep->desc) in printer_reset_interface()
877 usb_ep_disable(dev->out_ep); in printer_reset_interface()
[all …]
H A Df_hid.c83 struct usb_ep *out_ep; member
348 ret = usb_ep_queue(hidg->out_ep, req, GFP_KERNEL); in f_hidg_intout_read()
350 free_ep_req(hidg->out_ep, req); in f_hidg_intout_read()
784 if (hidg->out_ep) { in hidg_disable()
785 usb_ep_disable(hidg->out_ep); in hidg_disable()
789 free_ep_req(hidg->out_ep, list->req); in hidg_disable()
840 if (hidg->use_out_ep && hidg->out_ep != NULL) { in hidg_set_alt()
842 usb_ep_disable(hidg->out_ep); in hidg_set_alt()
845 hidg->out_ep); in hidg_set_alt()
850 status = usb_ep_enable(hidg->out_ep); in hidg_set_alt()
[all …]
H A Df_uac1_legacy.c281 struct usb_ep *out_ep; member
365 struct usb_ep *out_ep = audio->out_ep; in f_audio_complete() local
370 if (ep == out_ep) in f_audio_complete()
578 struct usb_ep *out_ep = audio->out_ep; in f_audio_set_alt() local
606 err = config_ep_by_speed(cdev->gadget, f, out_ep); in f_audio_set_alt()
610 usb_ep_enable(out_ep); in f_audio_set_alt()
620 req = usb_ep_alloc_request(out_ep, GFP_ATOMIC); in f_audio_set_alt()
629 err = usb_ep_queue(out_ep, in f_audio_set_alt()
634 out_ep->name, err); in f_audio_set_alt()
754 audio->out_ep = ep; in f_audio_bind()
[all …]
H A Du_ether.c154 out = dev->port_usb->out_ep; in rx_submit()
360 status = prealloc(&dev->rx_reqs, link->out_ep, n); in alloc_requests()
665 out = link->out_ep->desc; in eth_stop()
667 usb_ep_disable(link->out_ep); in eth_stop()
671 link->out_ep->desc = out; in eth_stop()
673 usb_ep_enable(link->out_ep); in eth_stop()
1130 link->out_ep->driver_data = dev; in gether_connect()
1131 result = usb_ep_enable(link->out_ep); in gether_connect()
1134 link->out_ep->name, result); in gether_connect()
1168 (void) usb_ep_disable(link->out_ep); in gether_connect()
[all …]
H A Df_sourcesink.c38 struct usb_ep *out_ep; member
340 ss->out_ep = usb_ep_autoconfig(cdev->gadget, &fs_sink_desc); in sourcesink_bind()
341 if (!ss->out_ep) in sourcesink_bind()
440 f->name, ss->in_ep->name, ss->out_ep->name, in sourcesink_bind()
467 int max_packet_size = le16_to_cpu(ss->out_ep->desc->wMaxPacketSize); in check_read_data()
494 usb_ep_set_halt(ss->out_ep); in check_read_data()
535 if (ep == ss->out_ep) { in source_sink_complete()
548 if (ep == ss->out_ep) in source_sink_complete()
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()
[all …]
H A Df_subset.c268 config_ep_by_speed(cdev->gadget, f, geth->port.out_ep)) { in geth_set_alt()
270 geth->port.out_ep->desc = NULL; in geth_set_alt()
346 geth->port.out_ep = ep; in geth_bind()
371 geth->port.in_ep->name, geth->port.out_ep->name); in geth_bind()
H A Df_midi.c82 struct usb_ep *in_ep, *out_ep; member
278 if (ep == midi->out_ep) { in f_midi_complete()
296 if (ep == midi->out_ep) { in f_midi_complete()
377 err = f_midi_start_ep(midi, f, midi->out_ep); in f_midi_set_alt()
398 midi_alloc_ep_req(midi->out_ep, midi->buflen); in f_midi_set_alt()
404 err = usb_ep_queue(midi->out_ep, req, GFP_ATOMIC); in f_midi_set_alt()
407 midi->out_ep->name, err); in f_midi_set_alt()
409 free_ep_req(midi->out_ep, req); in f_midi_set_alt()
430 usb_ep_disable(midi->out_ep); in f_midi_disable()
914 midi->out_ep = usb_ep_autoconfig(cdev->gadget, &bulk_out_desc); in f_midi_bind()
[all …]
H A Df_eem.c201 if (!eem->port.in_ep->desc || !eem->port.out_ep->desc) { in eem_set_alt()
206 eem->port.out_ep)) { in eem_set_alt()
208 eem->port.out_ep->desc = NULL; in eem_set_alt()
297 eem->port.out_ep = ep; in eem_bind()
315 eem->port.in_ep->name, eem->port.out_ep->name); in eem_bind()
H A Df_ecm.c552 !ecm->port.out_ep->desc) { in ecm_set_alt()
557 ecm->port.out_ep)) { in ecm_set_alt()
559 ecm->port.out_ep->desc = NULL; in ecm_set_alt()
620 ecm->port.out_ep->desc = NULL; in ecm_disable()
741 ecm->port.out_ep = ep; in ecm_bind()
792 ecm->port.in_ep->name, ecm->port.out_ep->name, in ecm_bind()
H A Df_rndis.c552 if (!rndis->port.in_ep->desc || !rndis->port.out_ep->desc) { in rndis_set_alt()
557 rndis->port.out_ep)) { in rndis_set_alt()
559 rndis->port.out_ep->desc = NULL; in rndis_set_alt()
742 rndis->port.out_ep = ep; in rndis_bind()
802 rndis->port.in_ep->name, rndis->port.out_ep->name, in rndis_bind()
H A Du_audio.h66 struct usb_ep *out_ep; member
/openbmc/u-boot/drivers/usb/gadget/
H A Df_fastboot.c42 struct usb_ep *in_ep, *out_ep; member
172 f_fb->out_ep = usb_ep_autoconfig(gadget, &fs_ep_out); in fastboot_bind()
173 if (!f_fb->out_ep) in fastboot_bind()
175 f_fb->out_ep->driver_data = c->cdev; in fastboot_bind()
203 usb_ep_disable(f_fb->out_ep); in fastboot_disable()
208 usb_ep_free_request(f_fb->out_ep, f_fb->out_req); in fastboot_disable()
250 ret = usb_ep_enable(f_fb->out_ep, d); in fastboot_set_alt()
256 f_fb->out_req = fastboot_start_ep(f_fb->out_ep); in fastboot_set_alt()
279 ret = usb_ep_queue(f_fb->out_ep, f_fb->out_req, 0); in fastboot_set_alt()
H A Df_thor.c546 status = usb_ep_queue(dev->out_ep, dev->out_req, 0); in thor_rx_data()
549 dev->out_ep->name, dev->out_req->length, status); in thor_rx_data()
550 usb_ep_set_halt(dev->out_ep); in thor_rx_data()
602 if (ep == dev->out_ep) in thor_rx_tx_complete()
825 dev->out_ep = ep; /* Store OUT EP for enabling @ setup */ in thor_func_bind()
849 dev->out_ep, dev->out_req); in thor_func_bind()
885 if (dev->out_ep->driver_data) { in thor_func_disable()
886 usb_ep_disable(dev->out_ep); in thor_func_disable()
887 usb_ep_free_request(dev->out_ep, dev->out_req); in thor_func_disable()
888 dev->out_ep->driver_data = NULL; in thor_func_disable()
[all …]
H A Dether.c105 struct usb_ep *in_ep, *out_ep, *status_ep; member
952 dev->out_ep->driver_data = dev; in set_ether_config()
971 result = usb_ep_enable(dev->out_ep, dev->out); in set_ether_config()
974 dev->out_ep->name, result); in set_ether_config()
989 (void) usb_ep_disable(dev->out_ep); in set_ether_config()
1026 usb_ep_disable(dev->out_ep); in eth_reset_config()
1028 usb_ep_free_request(dev->out_ep, dev->rx_req); in eth_reset_config()
1361 usb_ep_disable(dev->out_ep); in eth_setup()
1372 usb_ep_enable(dev->out_ep, dev->out); in eth_setup()
1531 size += dev->out_ep->maxpacket - 1; in rx_submit()
[all …]
H A Df_rockusb.c171 f_rkusb->out_ep = usb_ep_autoconfig(gadget, &fs_ep_out); in rockusb_bind()
172 if (!f_rkusb->out_ep) in rockusb_bind()
174 f_rkusb->out_ep->driver_data = c->cdev; in rockusb_bind()
201 usb_ep_disable(f_rkusb->out_ep); in rockusb_disable()
206 usb_ep_free_request(f_rkusb->out_ep, f_rkusb->out_req); in rockusb_disable()
253 ret = usb_ep_enable(f_rkusb->out_ep, d); in rockusb_set_alt()
259 f_rkusb->out_req = rockusb_start_ep(f_rkusb->out_ep); in rockusb_set_alt()
282 ret = usb_ep_queue(f_rkusb->out_ep, f_rkusb->out_req, 0); in rockusb_set_alt()
H A Df_thor.h106 struct usb_ep *in_ep, *out_ep, *int_ep; member
/openbmc/linux/drivers/char/xillybus/
H A Dxillyusb.c122 struct xillyusb_endpoint *out_ep; member
597 if (chan->out_ep) in wakeup_all()
598 wake_up_interruptible(&chan->out_ep->fifo.waitq); in wakeup_all()
1241 struct xillyusb_endpoint *out_ep = NULL; in xillyusb_open() local
1299 out_ep = endpoint_alloc(xdev, in xillyusb_open()
1303 if (!out_ep) { in xillyusb_open()
1308 rc = fifo_init(&out_ep->fifo, chan->out_log2_fifo_size); in xillyusb_open()
1313 out_ep->fill_mask = -(1 << chan->out_log2_element_size); in xillyusb_open()
1359 if (out_ep) in xillyusb_open()
1360 chan->out_ep = out_ep; in xillyusb_open()
[all …]
/openbmc/linux/drivers/media/usb/siano/
H A Dsmsusb.c59 unsigned char out_ep; member
414 dev->out_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()
600 usb_clear_halt(udev, usb_sndbulkpipe(udev, dev->out_ep)); in smsusb_resume()
/openbmc/linux/sound/usb/
H A Dmidi.h10 int8_t out_ep; /* ep number, 0 autodetect */ member
/openbmc/linux/sound/usb/usx2y/
H A DusX2Yhwdep.c122 .out_ep = 0x06, in usx2y_create_usbmidi()
135 .out_ep = 0x06, in usx2y_create_usbmidi()
/openbmc/linux/drivers/net/wireless/mediatek/mt76/
H A Dusb.c298 int i, in_ep = 0, out_ep = 0; in mt76u_set_endpoints() local
308 out_ep < __MT_EP_OUT_MAX) { in mt76u_set_endpoints()
309 usb->out_ep[out_ep] = usb_endpoint_num(ep_desc); in mt76u_set_endpoints()
310 out_ep++; in mt76u_set_endpoints()
314 if (in_ep != __MT_EP_IN_MAX || out_ep != __MT_EP_OUT_MAX) in mt76u_set_endpoints()
429 pipe = usb_sndbulkpipe(udev, dev->usb.out_ep[index]); in mt76u_fill_bulk_urb()
/openbmc/linux/drivers/net/wireless/realtek/rtw88/
H A Dusb.h74 u8 out_ep[RTW_USB_EP_MAX]; member
/openbmc/u-boot/arch/arm/include/asm/arch-rockchip/
H A Df_rockusb.h117 struct usb_ep *in_ep, *out_ep; member

12