Home
last modified time | relevance | path

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

12

/Zephyr-latest/subsys/usb/device/
Dusb_device.c248 usb_write(USB_CONTROL_EP_IN, usb_dev.data_buf, in usb_data_to_host()
272 usb_dc_ep_write(USB_CONTROL_EP_IN, NULL, 0, NULL); in usb_data_to_host()
299 usb_dc_ep_set_stall(USB_CONTROL_EP_IN); in usb_handle_control_transfer()
323 usb_dc_ep_set_stall(USB_CONTROL_EP_IN); in usb_handle_control_transfer()
341 usb_dc_ep_set_stall(USB_CONTROL_EP_IN); in usb_handle_control_transfer()
357 usb_dc_ep_set_stall(USB_CONTROL_EP_IN); in usb_handle_control_transfer()
366 usb_dc_ep_set_stall(USB_CONTROL_EP_IN); in usb_handle_control_transfer()
380 usb_dc_ep_set_stall(USB_CONTROL_EP_IN); in usb_handle_control_transfer()
388 } else if (ep == USB_CONTROL_EP_IN) { in usb_handle_control_transfer()
1666 ep0_cfg.ep_addr = USB_CONTROL_EP_IN; in usb_enable()
[all …]
/Zephyr-latest/drivers/usb/udc/
Dudc_nrf.c156 buf = udc_buf_get(dev, USB_CONTROL_EP_IN); in udc_event_fake_status_in()
158 LOG_DBG("ep 0x%02x queue is empty", USB_CONTROL_EP_IN); in udc_event_fake_status_in()
182 if (ep == USB_CONTROL_EP_IN) { in udc_event_xfer_in()
571 .ep = USB_CONTROL_EP_IN, in udc_nrf_fake_status_in()
595 if (cfg->addr == USB_CONTROL_EP_IN && buf->len == 0) { in udc_nrf_ep_enqueue()
671 cfg->addr == USB_CONTROL_EP_IN) { in udc_nrf_ep_set_halt()
759 if (udc_ep_enable_internal(dev, USB_CONTROL_EP_IN, in udc_nrf_enable()
791 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_IN)) { in udc_nrf_disable()
Dudc_stm32.c89 ep = udc_get_ep_cfg(dev, USB_CONTROL_EP_IN); in HAL_PCD_ResetCallback()
91 HAL_PCD_EP_Open(&priv->pcd, USB_CONTROL_EP_IN, cfg->ep0_mps, in HAL_PCD_ResetCallback()
214 if (ep == USB_CONTROL_EP_IN) { in udc_stm32_tx()
229 if (ep == USB_CONTROL_EP_IN && len > 0) { in udc_stm32_tx()
319 if (ep == USB_CONTROL_EP_IN && buf->len) { in HAL_PCD_DataInStageCallback()
331 if (udc_ep_buf_has_zlp(buf) && ep != USB_CONTROL_EP_IN) { in HAL_PCD_DataInStageCallback()
340 if (ep == USB_CONTROL_EP_IN) { in HAL_PCD_DataInStageCallback()
539 ret |= udc_ep_enable_internal(dev, USB_CONTROL_EP_IN, in udc_stm32_enable()
542 LOG_ERR("Failed enabling ep 0x%02x", USB_CONTROL_EP_IN); in udc_stm32_enable()
563 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_IN)) { in udc_stm32_disable()
Dudc_renesas_ra.c203 buf = udc_buf_get(dev, USB_CONTROL_EP_IN); in udc_event_status_in()
205 LOG_DBG("ep 0x%02x queue is empty", USB_CONTROL_EP_IN); in udc_event_status_in()
210 R_USBD_XferStart(&data->udc, USB_CONTROL_EP_IN, NULL, 0); in udc_event_status_in()
265 if (ep == USB_CONTROL_EP_IN) { in udc_event_xfer_complete()
331 if (cfg->addr == USB_CONTROL_EP_IN && buf->len == 0) { in udc_renesas_ra_ep_enqueue()
546 if (udc_ep_enable_internal(dev, USB_CONTROL_EP_IN, USB_EP_TYPE_CONTROL, 64, 0)) { in udc_renesas_ra_init()
565 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_IN)) { in udc_renesas_ra_shutdown()
Dudc_ambiq.c263 if (ep_cfg->addr == USB_CONTROL_EP_IN && buf->len == 0 && priv->ctrl_pending_in_ack) { in udc_ambiq_ep_enqueue()
265 udc_ambiq_ep_xfer_complete_callback(dev, USB_CONTROL_EP_IN, 0, 0, NULL); in udc_ambiq_ep_enqueue()
552 if (udc_ep_enable_internal(dev, USB_CONTROL_EP_IN, USB_EP_TYPE_CONTROL, EP0_MPS, 0)) { in udc_ambiq_init()
575 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_IN)) { in udc_ambiq_shutdown()
692 if (cfg->addr != USB_CONTROL_EP_IN) { in ambiq_handle_evt_din()
710 if (cfg->addr == USB_CONTROL_EP_IN) { in ambiq_handle_evt_din()
Dudc_skeleton.c230 if (udc_ep_enable_internal(dev, USB_CONTROL_EP_IN, in udc_skeleton_init()
247 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_IN)) { in udc_skeleton_shutdown()
Dudc_kinetis.c416 if (ep == USB_CONTROL_EP_IN) { in work_handler_in()
529 struct udc_ep_config *ep_cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_IN); in set_control_in_pid_data1()
680 ep_cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_IN); in usbfsotg_isr_handler()
682 usbfsotg_event_submit(dev, USB_CONTROL_EP_IN, in usbfsotg_isr_handler()
784 if (cfg->addr == USB_CONTROL_EP_IN) { in usbfsotg_ep_set_halt()
1030 if (udc_ep_enable_internal(dev, USB_CONTROL_EP_IN, in usbfsotg_init()
1056 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_IN)) { in usbfsotg_shutdown()
Dudc_virtual.c72 cfg = udc_get_ep_cfg(dev, USB_CONTROL_EP_IN); in ctrl_ep_clear_halt()
264 if (ep == USB_CONTROL_EP_IN) { in vrt_handle_in()
523 if (udc_ep_enable_internal(dev, USB_CONTROL_EP_IN, in udc_vrt_init()
541 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_IN)) { in udc_vrt_shutdown()
Dudc_smartbond.c433 if (ep != USB_CONTROL_EP_IN && size > config->dma_min_transfer_size && in start_tx_packet()
441 if (ep == USB_CONTROL_EP_IN) { in start_tx_packet()
677 if (ep != USB_CONTROL_EP_IN) { in udc_smartbond_ep_enable()
729 if (ep_cfg->addr == USB_CONTROL_EP_IN) { in udc_smartbond_ep_set_halt()
765 if (ep == USB_CONTROL_EP_OUT || ep == USB_CONTROL_EP_IN) { in udc_smartbond_ep_clear_halt()
823 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_IN)) { in udc_smartbond_shutdown()
864 const uint8_t ep = USB_CONTROL_EP_IN; in handle_ep0_tx()
1173 buf = udc_buf_get_all(dev, USB_CONTROL_EP_IN); in empty_ep0_queues()
1492 const uint8_t ep = USB_CONTROL_EP_IN; in handle_ep0_tx_work()
1599 if (udc_ep_enable_internal(dev, USB_CONTROL_EP_IN, USB_EP_TYPE_CONTROL, 8, 0)) { in udc_smartbond_enable()
Dudc_rpi_pico.c288 buf = udc_buf_get_all(dev, USB_CONTROL_EP_IN); in drop_control_transfers()
386 if (cfg->addr == USB_CONTROL_EP_IN) { in rpi_pico_handle_evt_din()
482 rpi_pico_ep_cancel(dev, USB_CONTROL_EP_IN); in rpi_pico_handle_setup()
489 get_ep_data(dev, USB_CONTROL_EP_IN)->next_pid = 1; in rpi_pico_handle_setup()
970 if (udc_ep_enable_internal(dev, USB_CONTROL_EP_IN, in udc_rpi_pico_init()
988 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_IN)) { in udc_rpi_pico_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()
905 buf = udc_ctrl_alloc_status(dev, dout, USB_CONTROL_EP_IN); in udc_ctrl_submit_s_out_status()
924 buf = udc_ctrl_alloc_data(dev, data->setup, USB_CONTROL_EP_IN); in udc_ctrl_submit_s_in_status()
939 buf = udc_ctrl_alloc_status(dev, data->setup, USB_CONTROL_EP_IN); in udc_ctrl_submit_s_status()
Dudc_mcux_ehci.c401 if (ep == USB_CONTROL_EP_IN) { in udc_mcux_handler_in()
450 cfg = udc_get_ep_cfg(ev->dev, USB_CONTROL_EP_IN); in udc_mcux_work_handler()
452 udc_ep_disable_internal(ev->dev, USB_CONTROL_EP_IN); in udc_mcux_work_handler()
460 if (udc_ep_enable_internal(ev->dev, USB_CONTROL_EP_IN, in udc_mcux_work_handler()
Dudc_mcux_ip3511.c401 if (ep == USB_CONTROL_EP_IN) { in udc_mcux_handler_in()
450 cfg = udc_get_ep_cfg(ev->dev, USB_CONTROL_EP_IN); in udc_mcux_work_handler()
452 udc_ep_disable_internal(ev->dev, USB_CONTROL_EP_IN); in udc_mcux_work_handler()
460 if (udc_ep_enable_internal(ev->dev, USB_CONTROL_EP_IN, in udc_mcux_work_handler()
Dudc_it82xx2.c981 if (ep != USB_CONTROL_EP_IN) { in work_handler_in()
1015 if (ep == USB_CONTROL_EP_IN) { in work_handler_in()
1055 work_handler_in(dev, USB_CONTROL_EP_IN); in work_handler_setup()
1474 ret = udc_ep_enable_internal(dev, USB_CONTROL_EP_IN, USB_EP_TYPE_CONTROL, in it82xx2_init()
1477 LOG_ERR("Failed to enable ep 0x%02x", USB_CONTROL_EP_IN); in it82xx2_init()
1490 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_IN)) { in it82xx2_shutdown()
Dudc_numaker.c901 __ASSERT_NO_MSG((ep_cur + 1)->addr == USB_CONTROL_EP_IN); in numaker_usbd_msg_handle_setup()
1068 if (ep == USB_CONTROL_EP_IN) { in numaker_usbd_msg_handle_in()
1594 if (udc_ep_enable_internal(dev, USB_CONTROL_EP_IN, USB_EP_TYPE_CONTROL, 64, 0)) { in udc_numaker_init()
1611 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_IN)) { in udc_numaker_shutdown()
Dudc_dwc2.c821 if (cfg->addr == USB_CONTROL_EP_IN && udc_ep_buf_has_zlp(buf)) { in dwc2_handle_evt_din()
829 if (cfg->addr == USB_CONTROL_EP_IN) { in dwc2_handle_evt_din()
1978 if (udc_ep_enable_internal(dev, USB_CONTROL_EP_IN, in udc_dwc2_init_controller()
2046 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_IN)) { in udc_dwc2_disable()
/Zephyr-latest/drivers/usb/device/
Dusb_dc_rpi_pico.c203 udc_rpi_cancel_endpoint(USB_CONTROL_EP_IN); in udc_rpi_handle_setup()
221 udc_rpi_get_ep_state(USB_CONTROL_EP_IN)->next_pid = 1; in udc_rpi_handle_setup()
642 if (ep == USB_CONTROL_EP_IN) { in usb_dc_ep_set_stall()
772 if (ep == USB_CONTROL_EP_IN && state.abort_control_writes) { in usb_dc_ep_write()
786 if (ep == USB_CONTROL_EP_IN && len > USB_MAX_CTRL_MPS) { in usb_dc_ep_write()
Dusb_dc_kinetis.c862 ep_cfg.ep_addr = USB_CONTROL_EP_IN; in reenable_control_endpoints()
867 usb_dc_ep_enable(USB_CONTROL_EP_IN); in reenable_control_endpoints()
Dusb_dc_mcux.c814 ep_init.endpointAddress = USB_CONTROL_EP_IN; in handle_bus_reset()
/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()
456 .bEndpointAddress = USB_CONTROL_EP_IN,
/Zephyr-latest/subsys/usb/device_next/
Dusbd_core.c114 if (usbd_ep_dequeue(uds_ctx, USB_CONTROL_EP_IN)) { in event_handler_bus_reset()
Dusbd_ch9.c1197 if (bi->status && bi->ep == USB_CONTROL_EP_IN) { in usbd_handle_ctrl_xfer()
1221 ret = udc_ep_set_halt(uds_ctx->dev, USB_CONTROL_EP_IN); in usbd_handle_ctrl_xfer()
1223 uint8_t ep = (err == -ENOMEM) ? USB_CONTROL_EP_OUT : USB_CONTROL_EP_IN; in usbd_handle_ctrl_xfer()
1227 ret = udc_ep_set_halt(uds_ctx->dev, USB_CONTROL_EP_IN); in usbd_handle_ctrl_xfer()
/Zephyr-latest/drivers/usb/uhc/
Duhc_virtual.c133 ep = USB_CONTROL_EP_IN; in vrt_xfer_control()
248 if (pkt->ep == USB_CONTROL_EP_IN) { in vrt_hrslt_success()
Duhc_max3421e.c494 if (xfer->ep == USB_CONTROL_EP_IN) { in max3421e_hrslt_success()
/Zephyr-latest/include/zephyr/usb/
Dusb_ch9.h327 #define USB_CONTROL_EP_IN (USB_EP_DIR_IN | 0U) macro

12