Home
last modified time | relevance | path

Searched refs:USB_EP_DIR_IN (Results 1 – 25 of 31) sorted by relevance

12

/Zephyr-latest/include/zephyr/usb/
Dusb_ch9.h298 #define USB_EP_DIR_IN (uint8_t)BIT(7) macro
318 #define USB_EP_DIR_IS_IN(ep) (USB_EP_GET_DIR(ep) == USB_EP_DIR_IN)
327 #define USB_CONTROL_EP_IN (USB_EP_DIR_IN | 0U)
/Zephyr-latest/subsys/usb/device_next/
Dusbd_init.c35 ep = USB_EP_DIR_IN | idx; in assign_ep_addr()
70 uint8_t ep_in = USB_EP_DIR_IN | idx; in unassign_eps()
Dusbd_interface.c119 uint8_t ep_in = USB_EP_DIR_IN | idx; in usbd_interface_shutdown()
/Zephyr-latest/drivers/usb/device/
Dusb_dc_kinetis.c142 if (ep & USB_EP_DIR_IN) { in get_bdt_idx()
306 if (USB_EP_GET_DIR(cfg->ep_addr) != USB_EP_DIR_IN) { in usb_dc_ep_check_cap()
372 if (cfg->ep_addr & USB_EP_DIR_IN) { in usb_dc_ep_configure()
613 if (USB_EP_GET_DIR(ep) != USB_EP_DIR_IN) { in usb_dc_ep_write()
820 if (ep & USB_EP_DIR_IN) { in usb_dc_ep_set_callback()
846 if (ep & USB_EP_DIR_IN) { in usb_dc_ep_mps()
915 uint8_t ep = ((status << 4) & USB_EP_DIR_IN) | ep_idx; in usb_kinetis_isr_handler()
Dusb_dc_sam_usbhs.c191 dev_data.ep_data[0].cb_in(USB_EP_DIR_IN, USB_DC_EP_DATA_IN); in usb_dc_ep0_isr()
221 uint8_t ep = ep_idx | USB_EP_DIR_IN; in usb_dc_ep_isr()
439 if (USB_EP_GET_DIR(cfg->ep_addr) != USB_EP_DIR_IN) { in usb_dc_ep_check_cap()
736 if (USB_EP_GET_DIR(ep) != USB_EP_DIR_IN) { in usb_dc_ep_write()
Dusb_dc_native_posix.c341 if (USB_EP_GET_DIR(ep) != USB_EP_DIR_IN) { in usb_dc_ep_write()
597 ep = ep_idx | USB_EP_DIR_IN; in handle_usb_data()
Dusb_dc_numaker.c800 ep_cur->addr = USB_EP_GET_ADDR(0, USB_EP_DIR_IN); in numaker_usbd_ep_mgmt_init()
902 __ASSERT_NO_MSG((ep_cur + 1)->addr == USB_EP_GET_ADDR(0, USB_EP_DIR_IN)); in numaker_usbd_ep_bh()
1202 ? USB_EP_DIR_IN in numaker_udbd_isr()
1210 if (ep == USB_EP_GET_ADDR(0, USB_EP_DIR_IN)) { in numaker_udbd_isr()
Dusb_dc_it82xx2.c619 udata0.ep_data[ep_idx].cb_in(ep_idx | USB_EP_DIR_IN, USB_DC_EP_DATA_IN); in it82xx2_handler_setup()
679 udata0.ep_data[ep_idx].cb_in(ep_idx | USB_EP_DIR_IN, USB_DC_EP_DATA_IN); in it82xx2_handler_in()
1177 LOG_DBG("EP%d set callback: %d", ep_idx, !!(ep & USB_EP_DIR_IN)); in usb_dc_ep_set_callback()
Dusb_dc_stm32.c150 #define EP0_IN (EP0_IDX | USB_EP_DIR_IN)
1266 uint8_t ep = ep_idx | USB_EP_DIR_IN; in HAL_PCD_DataInStageCallback()
Dusb_dc_dw.c763 ep_cb(USB_EP_GET_ADDR(ep_idx, USB_EP_DIR_IN), in usb_dw_int_iep_handler()
1209 if (USB_EP_GET_DIR(ep) != USB_EP_DIR_IN) { in usb_dc_ep_write()
Dusb_dc_sam_usbc.c465 dev_data.ep_data[0].cb_in(USB_EP_DIR_IN, USB_DC_EP_DATA_IN); in usb_dc_ep0_isr()
532 uint8_t ep = ep_idx | USB_EP_DIR_IN; in usb_dc_ep_isr()
Dusb_dc_smartbond.c509 try_allocate_dma(ep_state, USB_EP_DIR_IN)) { in start_tx_packet()
1146 dev_state.ep_state[1][i].ep_addr = i | USB_EP_DIR_IN; in usb_init()
Dusb_dc_mcux.c547 if (USB_EP_GET_DIR(ep) != USB_EP_DIR_IN) { in usb_dc_ep_write()
/Zephyr-latest/subsys/usb/device/
Dusb_descriptor.c271 if (ep_cfg.ep_addr & USB_EP_DIR_IN) { in usb_validate_ep_cfg_data()
276 ep_cfg.ep_addr = (USB_EP_DIR_IN | idx); in usb_validate_ep_cfg_data()
290 if (ep_cfg.ep_addr & USB_EP_DIR_IN) { in usb_validate_ep_cfg_data()
Dusb_device.c533 ep_idx = ep & (~USB_EP_DIR_IN); in get_ep_bm_from_addr()
539 if (ep & USB_EP_DIR_IN) { in get_ep_bm_from_addr()
1372 ret = disable_endpoint(USB_EP_DIR_IN | i); in usb_disable()
/Zephyr-latest/drivers/usb/udc/
Dudc_skeleton.c312 config->ep_cfg_in[i].addr = USB_EP_DIR_IN | i; in udc_skeleton_driver_preinit()
Dudc_dwc2.c1134 tmp = udc_get_ep_cfg(dev, i | USB_EP_DIR_IN); in dwc2_unset_unused_fifo()
2189 config->ep_cfg_in[n].addr = USB_EP_DIR_IN | i; in dwc2_driver_preinit()
2191 LOG_DBG("Register ep 0x%02x (%u)", USB_EP_DIR_IN | i, n); in dwc2_driver_preinit()
2354 ep_cfg = udc_get_ep_cfg(dev, ep_idx | USB_EP_DIR_IN); in dwc2_handle_in_xfercompl()
2392 n | USB_EP_DIR_IN, status); in dwc2_handle_iepint()
2570 mem_addr_t diepctl_reg = dwc2_get_dxepctl_reg(dev, i | USB_EP_DIR_IN); in dwc2_handle_incompisoin()
2580 cfg = udc_get_ep_cfg(dev, i | USB_EP_DIR_IN); in dwc2_handle_incompisoin()
2829 return USB_EP_DIR_IN | bit; in pull_next_ep_from_bitmap()
Dudc_stm32.c307 uint8_t ep = epnum | USB_EP_DIR_IN; in HAL_PCD_DataInStageCallback()
487 if (!(ep->addr & USB_EP_DIR_IN) || !USB_EP_GET_IDX(ep->addr)) { in udc_stm32_ep_mem_config()
1158 ep_cfg_in[i].addr = USB_EP_DIR_IN | i; in udc_stm32_driver_init0()
Dudc_numaker.c703 ep_cur->addr = USB_EP_GET_ADDR(0, USB_EP_DIR_IN); in numaker_usbd_ep_mgmt_init()
1335 ? USB_EP_DIR_IN in numaker_udbd_isr()
1343 if (ep == USB_EP_GET_ADDR(0, USB_EP_DIR_IN)) { in numaker_udbd_isr()
1692 config->ep_cfg_in[i].addr = USB_EP_DIR_IN | i; in udc_numaker_driver_preinit()
Dudc_kinetis.c519 return (status & USB_STAT_TX_MASK) ? (USB_EP_DIR_IN | ep_idx) : ep_idx; in stat_reg_get_ep()
1125 config->ep_cfg_in[i].addr = USB_EP_DIR_IN | i; in usbfsotg_driver_preinit()
Dudc_rpi_pico.c581 ep = USB_EP_DIR_IN | (i >> 1U); in rpi_pico_handle_buff_status()
1040 config->ep_cfg_in[i].addr = USB_EP_DIR_IN | i; in udc_rpi_pico_driver_preinit()
Dudc_nrf.c900 ep_cfg_in[i].addr = USB_EP_DIR_IN | i; in udc_nrf_driver_init()
Dudc_virtual.c599 config->ep_cfg_in[i].addr = USB_EP_DIR_IN | i; in udc_vrt_driver_preinit()
Dudc_renesas_ra.c630 config->ep_cfg_in[i].addr = USB_EP_DIR_IN | i; in udc_renesas_ra_driver_preinit()
/Zephyr-latest/tests/drivers/udc/src/
Dmain.c411 ed.bEndpointAddress |= USB_EP_DIR_IN; in test_udc_ep_mps()

12