Home
last modified time | relevance | path

Searched refs:USB_CONTROL_EP_OUT (Results 1 – 25 of 26) sorted by relevance

12

/Zephyr-latest/drivers/usb/udc/
Dudc_kinetis.c240 cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_OUT); in usbfsotg_ctrl_feed_start()
264 cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_OUT); in usbfsotg_ctrl_feed_start_next()
292 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, length); in usbfsotg_ctrl_feed_dout()
320 buf = udc_buf_get(dev, USB_CONTROL_EP_OUT); in work_handler_setup()
378 if (ep == USB_CONTROL_EP_OUT) { in work_handler_out()
504 if (ev->ep != USB_CONTROL_EP_OUT && !udc_ep_is_busy(ev->dev, ev->ep)) { in xfer_work_handler()
582 if (ep == USB_CONTROL_EP_OUT) { in isr_handle_xfer_done()
599 if (ep == USB_CONTROL_EP_OUT) { in isr_handle_xfer_done()
605 if (ep == USB_CONTROL_EP_OUT) { in isr_handle_xfer_done()
670 ep_cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_OUT); in usbfsotg_isr_handler()
[all …]
Dudc_nrf.c88 if (nrf_usbd_common_last_setup_dir_get() == USB_CONTROL_EP_OUT && in udc_nrf_clear_control_out()
287 if (ep == USB_CONTROL_EP_OUT) { in udc_event_xfer_out()
307 struct udc_ep_config *cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_OUT); in usbd_ctrl_feed_dout()
310 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, length); in usbd_ctrl_feed_dout()
327 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, in udc_event_xfer_setup()
574 if (nrf_usbd_common_last_setup_dir_get() == USB_CONTROL_EP_OUT || in udc_nrf_fake_status_in()
670 if (cfg->addr == USB_CONTROL_EP_OUT || in udc_nrf_ep_set_halt()
753 if (udc_ep_enable_internal(dev, USB_CONTROL_EP_OUT, in udc_nrf_enable()
786 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_OUT)) { in udc_nrf_disable()
Dudc_virtual.c69 cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_OUT); in ctrl_ep_clear_halt()
79 struct udc_ep_config *ep_cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_OUT); in vrt_ctrl_feed_dout()
82 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, length); in vrt_ctrl_feed_dout()
98 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, 8); in vrt_handle_setup()
189 if (ep == USB_CONTROL_EP_OUT) { in vrt_handle_out()
517 if (udc_ep_enable_internal(dev, USB_CONTROL_EP_OUT, in udc_vrt_init()
536 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_OUT)) { in udc_vrt_shutdown()
Dudc_numaker.c454 if (ep_cur->addr == USB_CONTROL_EP_OUT) { in numaker_usbd_ep_copy_to_user()
861 ep_cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_OUT); in numaker_usbd_ctrl_feed_dout()
863 LOG_ERR("Bind udc_ep_config: ep=0x%02x", USB_CONTROL_EP_OUT); in numaker_usbd_ctrl_feed_dout()
867 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, length); in numaker_usbd_ctrl_feed_dout()
869 LOG_ERR("Allocate net_buf: ep=0x%02x", USB_CONTROL_EP_OUT); in numaker_usbd_ctrl_feed_dout()
890 ep = USB_CONTROL_EP_OUT; in numaker_usbd_msg_handle_setup()
900 __ASSERT_NO_MSG(ep_cur->addr == USB_CONTROL_EP_OUT); in numaker_usbd_msg_handle_setup()
911 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, 8); in numaker_usbd_msg_handle_setup()
971 if (ep == USB_CONTROL_EP_OUT) { in numaker_usbd_msg_handle_out()
980 if (ep == USB_CONTROL_EP_OUT) { in numaker_usbd_msg_handle_out()
[all …]
Dudc_rpi_pico.c266 struct udc_ep_config *ep_cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_OUT); in rpi_pico_ctrl_feed_dout()
269 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, length); in rpi_pico_ctrl_feed_dout()
283 buf = udc_buf_get_all(dev, USB_CONTROL_EP_OUT); in drop_control_transfers()
302 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, 8); in rpi_pico_handle_evt_setup()
349 if (cfg->addr == USB_CONTROL_EP_OUT) { in rpi_pico_handle_evt_dout()
463 if (ep_cfg->addr != USB_CONTROL_EP_OUT && !udc_ep_is_busy(dev, ep_cfg->addr)) { in rpi_pico_thread_handler()
475 .ep = USB_CONTROL_EP_OUT, in rpi_pico_handle_setup()
483 rpi_pico_ep_cancel(dev, USB_CONTROL_EP_OUT); in rpi_pico_handle_setup()
490 get_ep_data(dev, USB_CONTROL_EP_OUT)->next_pid = 1; in rpi_pico_handle_setup()
964 if (udc_ep_enable_internal(dev, USB_CONTROL_EP_OUT, in udc_rpi_pico_init()
[all …]
Dudc_ambiq.c80 struct udc_ep_config *cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_OUT); in usbd_ctrl_feed_dout()
83 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, length); in usbd_ctrl_feed_dout()
126 struct udc_ep_config *cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_OUT); in udc_ambiq_rx()
137 if ((ep != USB_CONTROL_EP_OUT) && (cfg->mps < rx_size)) { in udc_ambiq_rx()
548 if (udc_ep_enable_internal(dev, USB_CONTROL_EP_OUT, USB_EP_TYPE_CONTROL, EP0_MPS, 0)) { in udc_ambiq_init()
571 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_OUT)) { in udc_ambiq_shutdown()
614 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, sizeof(struct usb_setup_packet)); in ambiq_handle_evt_setup()
660 if (cfg->addr == USB_CONTROL_EP_OUT) { in ambiq_handle_evt_dout()
Dudc_stm32.c83 ep = udc_get_ep_cfg(dev, USB_CONTROL_EP_OUT); in HAL_PCD_ResetCallback()
85 HAL_PCD_EP_Open(&priv->pcd, USB_CONTROL_EP_OUT, cfg->ep0_mps, in HAL_PCD_ResetCallback()
131 struct udc_ep_config *cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_OUT); in usbd_ctrl_feed_dout()
134 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, length); in usbd_ctrl_feed_dout()
154 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, in HAL_PCD_SetupStageCallback()
282 if (ep == USB_CONTROL_EP_OUT) { in HAL_PCD_DataOutStageCallback()
532 ret = udc_ep_enable_internal(dev, USB_CONTROL_EP_OUT, in udc_stm32_enable()
535 LOG_ERR("Failed enabling ep 0x%02x", USB_CONTROL_EP_OUT); in udc_stm32_enable()
558 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_OUT)) { in udc_stm32_disable()
Dudc_renesas_ra.c127 struct udc_ep_config *cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_OUT); in usbd_ctrl_feed_dout()
131 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, length); in usbd_ctrl_feed_dout()
153 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, sizeof(struct usb_setup_packet)); in udc_event_xfer_setup()
267 } else if (ep == USB_CONTROL_EP_OUT) { in udc_event_xfer_complete()
541 if (udc_ep_enable_internal(dev, USB_CONTROL_EP_OUT, USB_EP_TYPE_CONTROL, 64, 0)) { in udc_renesas_ra_init()
560 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_OUT)) { in udc_renesas_ra_shutdown()
Dudc_mcux_ehci.c167 struct udc_ep_config *cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_OUT); in udc_mcux_ctrl_feed_dout()
170 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, length); in udc_mcux_ctrl_feed_dout()
193 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, in udc_mcux_handler_setup()
339 if (ep == USB_CONTROL_EP_OUT) { in udc_mcux_handler_out()
446 cfg = udc_get_ep_cfg(ev->dev, USB_CONTROL_EP_OUT); in udc_mcux_work_handler()
448 udc_ep_disable_internal(ev->dev, USB_CONTROL_EP_OUT); in udc_mcux_work_handler()
454 if (udc_ep_enable_internal(ev->dev, USB_CONTROL_EP_OUT, in udc_mcux_work_handler()
Dudc_mcux_ip3511.c167 struct udc_ep_config *cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_OUT); in udc_mcux_ctrl_feed_dout()
170 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, length); in udc_mcux_ctrl_feed_dout()
193 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, in udc_mcux_handler_setup()
339 if (ep == USB_CONTROL_EP_OUT) { in udc_mcux_handler_out()
446 cfg = udc_get_ep_cfg(ev->dev, USB_CONTROL_EP_OUT); in udc_mcux_work_handler()
448 udc_ep_disable_internal(ev->dev, USB_CONTROL_EP_OUT); in udc_mcux_work_handler()
454 if (udc_ep_enable_internal(ev->dev, USB_CONTROL_EP_OUT, in udc_mcux_work_handler()
Dudc_it82xx2.c882 struct udc_ep_config *cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_OUT); in it82xx2_ctrl_feed_dout()
885 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, length); in it82xx2_ctrl_feed_dout()
1046 buf = udc_buf_get(dev, USB_CONTROL_EP_OUT); in work_handler_setup()
1048 udc_ep_set_busy(dev, USB_CONTROL_EP_OUT, false); in work_handler_setup()
1058 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, sizeof(struct usb_setup_packet)); in work_handler_setup()
1121 if (ep == USB_CONTROL_EP_OUT) { in work_handler_out()
1145 if (ep != USB_CONTROL_EP_OUT) { in work_handler_out()
1158 if (ep == USB_CONTROL_EP_OUT) { in work_handler_out()
1209 if (evt.ep != USB_CONTROL_EP_OUT && !udc_ep_is_busy(evt.dev, evt.ep)) { in xfer_work_handler()
1467 ret = udc_ep_enable_internal(dev, USB_CONTROL_EP_OUT, USB_EP_TYPE_CONTROL, in it82xx2_init()
[all …]
Dudc_smartbond.c686 if (ep == USB_CONTROL_EP_OUT) { in udc_smartbond_ep_enable()
732 buf = udc_buf_get(dev, USB_CONTROL_EP_OUT); in udc_smartbond_ep_set_halt()
740 } else if (ep == USB_CONTROL_EP_OUT) { in udc_smartbond_ep_set_halt()
765 if (ep == USB_CONTROL_EP_OUT || ep == USB_CONTROL_EP_IN) { in udc_smartbond_ep_clear_halt()
818 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_OUT)) { in udc_smartbond_shutdown()
1169 buf = udc_buf_get_all(dev, USB_CONTROL_EP_OUT); in empty_ep0_queues()
1418 struct udc_ep_config *const ep_cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_OUT); in usb_dc_smartbond_alloc_status_out()
1421 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, 0); in usb_dc_smartbond_alloc_status_out()
1438 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, length); in usbd_ctrl_feed_dout()
1454 const uint8_t ep = USB_CONTROL_EP_OUT; in handle_ep0_rx_work()
[all …]
Dudc_skeleton.c224 if (udc_ep_enable_internal(dev, USB_CONTROL_EP_OUT, in udc_skeleton_init()
242 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_OUT)) { in udc_skeleton_shutdown()
Dudc_common.c405 if (ep == USB_CONTROL_EP_OUT || ep == USB_CONTROL_EP_IN) { in udc_ep_enable()
451 if (ep == USB_CONTROL_EP_OUT || ep == USB_CONTROL_EP_IN) { in udc_ep_disable()
584 if (bi->ep == USB_CONTROL_EP_OUT) { in udc_ep_enqueue()
881 size_t size = (ep == USB_CONTROL_EP_OUT) ? 64 : 0; in udc_ctrl_alloc_status()
1010 if (bi->setup && bi->ep == USB_CONTROL_EP_OUT) { in udc_ctrl_update_stage()
1048 } else if (bi->ep == USB_CONTROL_EP_OUT) { in udc_ctrl_update_stage()
Dudc_dwc2.c621 if (cfg->addr == USB_CONTROL_EP_OUT) { in dwc2_prep_rx()
681 struct udc_ep_config *ep_cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_OUT); in dwc2_ctrl_feed_dout()
684 buf = udc_ctrl_alloc(dev, USB_CONTROL_EP_OUT, length); in dwc2_ctrl_feed_dout()
702 buf = udc_buf_get(dev, USB_CONTROL_EP_OUT); in dwc2_handle_evt_setup()
765 if (cfg->addr == USB_CONTROL_EP_OUT) { in dwc2_handle_evt_dout()
1257 if (cfg->addr == USB_CONTROL_EP_OUT) { in dwc2_ep_control_enable()
1527 if (cfg->addr == USB_CONTROL_EP_OUT) { in udc_dwc2_ep_deactivate()
1972 if (udc_ep_enable_internal(dev, USB_CONTROL_EP_OUT, in udc_dwc2_init_controller()
2041 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_OUT)) { in udc_dwc2_disable()
/Zephyr-latest/drivers/usb/device/
Dusb_dc_rpi_pico.c191 const struct udc_rpi_ep_state *const ep_state = udc_rpi_get_ep_state(USB_CONTROL_EP_OUT); in udc_rpi_handle_setup()
206 udc_rpi_cancel_endpoint(USB_CONTROL_EP_OUT); in udc_rpi_handle_setup()
222 udc_rpi_get_ep_state(USB_CONTROL_EP_OUT)->next_pid = 1; in udc_rpi_handle_setup()
224 msg.ep = USB_CONTROL_EP_OUT; in udc_rpi_handle_setup()
644 udc_rpi_cancel_endpoint(USB_CONTROL_EP_OUT); in usb_dc_ep_set_stall()
722 if (USB_EP_DIR_IS_OUT(ep) && ep != USB_CONTROL_EP_OUT) { in usb_dc_ep_enable()
843 if (ep == USB_CONTROL_EP_OUT && state.setup_available) { in usb_dc_ep_read_wait()
859 if (ep == USB_CONTROL_EP_OUT && state.setup_available) { in usb_dc_ep_read_wait()
900 const size_t len = udc_rpi_get_ep_buffer_len(USB_CONTROL_EP_OUT); in usb_dc_control_ep_read_continue()
928 if (ep == USB_CONTROL_EP_OUT) { in usb_dc_ep_read_continue()
Dusb_dc_kinetis.c858 ep_cfg.ep_addr = USB_CONTROL_EP_OUT; in reenable_control_endpoints()
866 usb_dc_ep_enable(USB_CONTROL_EP_OUT); in reenable_control_endpoints()
Dusb_dc_mcux.c799 ep_init.endpointAddress = USB_CONTROL_EP_OUT; in handle_bus_reset()
Dusb_dc_smartbond.c63 #define EP0_OUT USB_CONTROL_EP_OUT
/Zephyr-latest/subsys/usb/device/
Dusb_device.c291 if (ep == USB_CONTROL_EP_OUT && ep_status == USB_DC_EP_SETUP) { in usb_handle_control_transfer()
324 usb_dc_ep_set_stall(USB_CONTROL_EP_OUT); in usb_handle_control_transfer()
350 } else if (ep == USB_CONTROL_EP_OUT) { in usb_handle_control_transfer()
354 if (usb_dc_ep_read(USB_CONTROL_EP_OUT, in usb_handle_control_transfer()
362 if (usb_dc_ep_read(USB_CONTROL_EP_OUT, in usb_handle_control_transfer()
367 usb_dc_ep_set_stall(USB_CONTROL_EP_OUT); in usb_handle_control_transfer()
1660 ep0_cfg.ep_addr = USB_CONTROL_EP_OUT; in usb_enable()
1673 ret = usb_dc_ep_set_callback(USB_CONTROL_EP_OUT, in usb_enable()
1692 ret = usb_dc_ep_enable(USB_CONTROL_EP_OUT); in usb_enable()
1696 usb_dev.ep_bm |= get_ep_bm_from_addr(USB_CONTROL_EP_OUT); in usb_enable()
/Zephyr-latest/drivers/usb/uhc/
Duhc_virtual.c89 xfer->addr, USB_CONTROL_EP_OUT, in vrt_xfer_control()
131 ep = USB_CONTROL_EP_OUT; in vrt_xfer_control()
232 if (pkt->ep == USB_CONTROL_EP_OUT) { in vrt_hrslt_success()
Duhc_max3421e.c465 if (xfer->ep == USB_CONTROL_EP_OUT) { in max3421e_hrslt_success()
/Zephyr-latest/tests/drivers/udc/src/
Dmain.c128 USB_CONTROL_EP_IN : USB_CONTROL_EP_OUT; in test_udc_ep_enable()
167 USB_CONTROL_EP_IN : USB_CONTROL_EP_OUT; in test_udc_ep_disable()
447 .bEndpointAddress = USB_CONTROL_EP_OUT,
/Zephyr-latest/include/zephyr/usb/
Dusb_ch9.h324 #define USB_CONTROL_EP_OUT (USB_EP_DIR_OUT | 0U) macro
/Zephyr-latest/subsys/usb/device_next/
Dusbd_ch9.c1132 if (bi->setup && bi->ep == USB_CONTROL_EP_OUT) { in usbd_handle_ctrl_xfer()
1185 if (bi->status && bi->ep == USB_CONTROL_EP_OUT) { in usbd_handle_ctrl_xfer()
1223 uint8_t ep = (err == -ENOMEM) ? USB_CONTROL_EP_OUT : USB_CONTROL_EP_IN; in usbd_handle_ctrl_xfer()

12