/Zephyr-latest/subsys/usb/device/ |
D | usb_device.c | 248 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/ |
D | udc_nrf.c | 156 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()
|
D | udc_stm32.c | 89 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()
|
D | udc_renesas_ra.c | 203 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()
|
D | udc_ambiq.c | 263 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()
|
D | udc_skeleton.c | 230 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()
|
D | udc_kinetis.c | 416 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()
|
D | udc_virtual.c | 72 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()
|
D | udc_smartbond.c | 433 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()
|
D | udc_rpi_pico.c | 288 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()
|
D | udc_common.c | 405 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()
|
D | udc_mcux_ehci.c | 401 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()
|
D | udc_mcux_ip3511.c | 401 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()
|
D | udc_it82xx2.c | 981 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()
|
D | udc_numaker.c | 901 __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()
|
D | udc_dwc2.c | 821 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/ |
D | usb_dc_rpi_pico.c | 203 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()
|
D | usb_dc_kinetis.c | 862 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()
|
D | usb_dc_mcux.c | 814 ep_init.endpointAddress = USB_CONTROL_EP_IN; in handle_bus_reset()
|
/Zephyr-latest/tests/drivers/udc/src/ |
D | main.c | 128 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/ |
D | usbd_core.c | 114 if (usbd_ep_dequeue(uds_ctx, USB_CONTROL_EP_IN)) { in event_handler_bus_reset()
|
D | usbd_ch9.c | 1197 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/ |
D | uhc_virtual.c | 133 ep = USB_CONTROL_EP_IN; in vrt_xfer_control() 248 if (pkt->ep == USB_CONTROL_EP_IN) { in vrt_hrslt_success()
|
D | uhc_max3421e.c | 494 if (xfer->ep == USB_CONTROL_EP_IN) { in max3421e_hrslt_success()
|
/Zephyr-latest/include/zephyr/usb/ |
D | usb_ch9.h | 327 #define USB_CONTROL_EP_IN (USB_EP_DIR_IN | 0U) macro
|