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.c155 buf = udc_buf_get(dev, USB_CONTROL_EP_IN); in udc_event_fake_status_in()
157 LOG_DBG("ep 0x%02x queue is empty", USB_CONTROL_EP_IN); in udc_event_fake_status_in()
181 if (ep == USB_CONTROL_EP_IN) { in udc_event_xfer_in()
569 .ep = USB_CONTROL_EP_IN, in udc_nrf_fake_status_in()
593 if (cfg->addr == USB_CONTROL_EP_IN && buf->len == 0) { in udc_nrf_ep_enqueue()
669 cfg->addr == USB_CONTROL_EP_IN) { in udc_nrf_ep_set_halt()
757 if (udc_ep_enable_internal(dev, USB_CONTROL_EP_IN, in udc_nrf_enable()
789 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_IN)) { in udc_nrf_disable()
Dudc_renesas_ra.c205 buf = udc_buf_get(dev, USB_CONTROL_EP_IN); in udc_event_status_in()
207 LOG_DBG("ep 0x%02x queue is empty", USB_CONTROL_EP_IN); in udc_event_status_in()
212 R_USBD_XferStart(&data->udc, USB_CONTROL_EP_IN, NULL, 0); in udc_event_status_in()
267 if (ep == USB_CONTROL_EP_IN) { in udc_event_xfer_complete()
333 if (cfg->addr == USB_CONTROL_EP_IN && buf->len == 0) { in udc_renesas_ra_ep_enqueue()
511 if (udc_ep_enable_internal(dev, USB_CONTROL_EP_IN, USB_EP_TYPE_CONTROL, 64, 0)) { in udc_renesas_ra_init()
542 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_IN)) { in udc_renesas_ra_shutdown()
Dudc_stm32.c102 ep = udc_get_ep_cfg(dev, USB_CONTROL_EP_IN); in HAL_PCD_ResetCallback()
104 HAL_PCD_EP_Open(&priv->pcd, USB_CONTROL_EP_IN, cfg->ep0_mps, in HAL_PCD_ResetCallback()
204 if (ep == USB_CONTROL_EP_IN) { in udc_stm32_tx()
219 if (ep == USB_CONTROL_EP_IN && len > 0) { in udc_stm32_tx()
342 if (ep == USB_CONTROL_EP_IN && buf->len) { in handle_msg_data_in()
363 if (ep == USB_CONTROL_EP_IN) { in handle_msg_data_in()
625 ret |= udc_ep_enable_internal(dev, USB_CONTROL_EP_IN, in udc_stm32_enable()
628 LOG_ERR("Failed enabling ep 0x%02x", USB_CONTROL_EP_IN); in udc_stm32_enable()
649 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_IN)) { in udc_stm32_disable()
Dudc_ambiq.c262 if (ep_cfg->addr == USB_CONTROL_EP_IN && buf->len == 0 && priv->ctrl_pending_in_ack) { in udc_ambiq_ep_enqueue()
264 udc_ambiq_ep_xfer_complete_callback(dev, USB_CONTROL_EP_IN, 0, 0, NULL); in udc_ambiq_ep_enqueue()
551 if (udc_ep_enable_internal(dev, USB_CONTROL_EP_IN, USB_EP_TYPE_CONTROL, EP0_MPS, 0)) { in udc_ambiq_init()
574 if (udc_ep_disable_internal(dev, USB_CONTROL_EP_IN)) { in udc_ambiq_shutdown()
691 if (cfg->addr != USB_CONTROL_EP_IN) { in ambiq_handle_evt_din()
709 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_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_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_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.c749 if (cfg->addr == USB_CONTROL_EP_IN) { in dwc2_handle_xfer_next()
802 buf = udc_buf_get_all(dev, USB_CONTROL_EP_IN); in dwc2_handle_evt_setup()
808 udc_ep_set_busy(dev, USB_CONTROL_EP_IN, false); in dwc2_handle_evt_setup()
914 if (cfg->addr == USB_CONTROL_EP_IN && udc_ep_buf_has_zlp(buf)) { in dwc2_handle_evt_din()
922 if (cfg->addr == USB_CONTROL_EP_IN) { in dwc2_handle_evt_din()
2087 if (udc_ep_enable_internal(dev, USB_CONTROL_EP_IN, in udc_dwc2_init_controller()
2155 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()
645 if (ep == USB_CONTROL_EP_IN) { in usb_dc_ep_set_stall()
775 if (ep == USB_CONTROL_EP_IN && state.abort_control_writes) { in usb_dc_ep_write()
789 if (ep == USB_CONTROL_EP_IN && len > USB_MAX_CTRL_MPS) { in usb_dc_ep_write()
Dusb_dc_kinetis.c869 ep_cfg.ep_addr = USB_CONTROL_EP_IN; in reenable_control_endpoints()
874 usb_dc_ep_enable(USB_CONTROL_EP_IN); in reenable_control_endpoints()
Dusb_dc_mcux.c812 ep_init.endpointAddress = USB_CONTROL_EP_IN; in handle_bus_reset()
/Zephyr-latest/tests/drivers/udc/src/
Dmain.c130 USB_CONTROL_EP_IN : USB_CONTROL_EP_OUT; in test_udc_ep_enable()
163 USB_CONTROL_EP_IN : USB_CONTROL_EP_OUT; in test_udc_ep_disable()
445 .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.c1199 if (bi->status && bi->ep == USB_CONTROL_EP_IN) { in usbd_handle_ctrl_xfer()
1223 ret = udc_ep_set_halt(uds_ctx->dev, USB_CONTROL_EP_IN); in usbd_handle_ctrl_xfer()
1225 uint8_t ep = (err == -ENOMEM) ? USB_CONTROL_EP_OUT : USB_CONTROL_EP_IN; in usbd_handle_ctrl_xfer()
1229 ret = udc_ep_set_halt(uds_ctx->dev, USB_CONTROL_EP_IN); in usbd_handle_ctrl_xfer()
/Zephyr-latest/include/zephyr/usb/
Dusb_ch9.h327 #define USB_CONTROL_EP_IN (USB_EP_DIR_IN | 0U) macro
/Zephyr-latest/drivers/usb/uhc/
Duhc_virtual.c144 ep = USB_CONTROL_EP_IN; in vrt_xfer_control()
330 if (pkt->ep == USB_CONTROL_EP_IN) { in vrt_hrslt_success()
Duhc_max3421e.c505 if (xfer->ep == USB_CONTROL_EP_IN) { in max3421e_hrslt_success()

12