Home
last modified time | relevance | path

Searched refs:ep_idx (Results 1 – 10 of 10) sorted by relevance

/Zephyr-Core-2.7.6/drivers/usb/device/
Dusb_dc_sam_usbhs.c110 static bool usb_dc_ep_is_configured(uint8_t ep_idx) in usb_dc_ep_is_configured() argument
112 return USBHS->USBHS_DEVEPTISR[ep_idx] & USBHS_DEVEPTISR_CFGOK; in usb_dc_ep_is_configured()
116 static bool usb_dc_ep_is_enabled(uint8_t ep_idx) in usb_dc_ep_is_enabled() argument
118 return USBHS->USBHS_DEVEPT & BIT(USBHS_DEVEPT_EPEN0_Pos + ep_idx); in usb_dc_ep_is_enabled()
122 static void usb_dc_ep_reset(uint8_t ep_idx) in usb_dc_ep_reset() argument
124 USBHS->USBHS_DEVEPT |= BIT(USBHS_DEVEPT_EPRST0_Pos + ep_idx); in usb_dc_ep_reset()
125 USBHS->USBHS_DEVEPT &= ~BIT(USBHS_DEVEPT_EPRST0_Pos + ep_idx); in usb_dc_ep_reset()
130 static void usb_dc_ep_enable_interrupts(uint8_t ep_idx) in usb_dc_ep_enable_interrupts() argument
132 if (ep_idx == 0U) { in usb_dc_ep_enable_interrupts()
134 USBHS->USBHS_DEVEPTIER[ep_idx] = USBHS_DEVEPTIER_CTRL_RXSTPES; in usb_dc_ep_enable_interrupts()
[all …]
Dusb_dc_sam_usbc.c117 static void usb_dc_sam_usbc_isr_sta_dbg(uint32_t ep_idx, uint32_t sr) in usb_dc_sam_usbc_isr_sta_dbg() argument
119 if (regs->UESTA[ep_idx] != dev_ep_sta_dbg[0][ep_idx]) { in usb_dc_sam_usbc_isr_sta_dbg()
120 dev_ep_sta_dbg[0][ep_idx] = regs->UESTA[ep_idx]; in usb_dc_sam_usbc_isr_sta_dbg()
121 dev_ep_sta_dbg[1][ep_idx] = 0; in usb_dc_sam_usbc_isr_sta_dbg()
124 "ECON=%08x ESTA=%08x%s", ep_idx, in usb_dc_sam_usbc_isr_sta_dbg()
126 regs->UECON[ep_idx], regs->UESTA[ep_idx], in usb_dc_sam_usbc_isr_sta_dbg()
128 } else if (dev_ep_sta_dbg[0][ep_idx] != dev_ep_sta_dbg[1][ep_idx]) { in usb_dc_sam_usbc_isr_sta_dbg()
129 dev_ep_sta_dbg[1][ep_idx] = dev_ep_sta_dbg[0][ep_idx]; in usb_dc_sam_usbc_isr_sta_dbg()
132 "ECON=%08x ESTA=%08x LOOP", ep_idx, in usb_dc_sam_usbc_isr_sta_dbg()
134 regs->UECON[ep_idx], regs->UESTA[ep_idx]); in usb_dc_sam_usbc_isr_sta_dbg()
[all …]
Dusb_dc_dw.c93 uint8_t ep_idx = USB_EP_GET_IDX(ep); in usb_dw_ep_is_valid() local
96 if ((USB_EP_DIR_IS_OUT(ep)) && ep_idx < USB_DW_OUT_EP_NUM) { in usb_dw_ep_is_valid()
98 } else if ((USB_EP_DIR_IS_IN(ep)) && ep_idx < USB_DW_IN_EP_NUM) { in usb_dw_ep_is_valid()
107 uint8_t ep_idx = USB_EP_GET_IDX(ep); in usb_dw_ep_is_enabled() local
111 usb_dw_ctrl.out_ep_ctrl[ep_idx].ep_ena) { in usb_dw_ep_is_enabled()
114 usb_dw_ctrl.in_ep_ctrl[ep_idx].ep_ena) { in usb_dw_ep_is_enabled()
183 int ep_idx = USB_EP_GET_IDX(ep); in usb_dw_set_fifo() local
184 volatile uint32_t *reg = &USB_DW->in_ep_reg[ep_idx].diepctl; in usb_dw_set_fifo()
206 if (ep_idx != 0) { in usb_dw_set_fifo()
212 reg = &USB_DW->in_ep_reg[ep_idx].diepctl; in usb_dw_set_fifo()
[all …]
Dusb_dc_kinetis.c280 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_check_cap() local
282 if (ep_idx > (NUM_OF_EP_MAX - 1)) { in usb_dc_ep_check_cap()
313 if (ep_idx & BIT(0)) { in usb_dc_ep_check_cap()
330 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_configure() local
342 ep_ctrl = &dev_data.ep_ctrl[ep_idx]; in usb_dc_ep_configure()
344 if (ep_idx && (dev_data.ep_ctrl[ep_idx].status.in_enabled || in usb_dc_ep_configure()
345 dev_data.ep_ctrl[ep_idx].status.out_enabled)) { in usb_dc_ep_configure()
363 USB0->ENDPOINT[ep_idx].ENDPT = 0; in usb_dc_ep_configure()
381 dev_data.ep_ctrl[ep_idx].mps_in = cfg->ep_mps; in usb_dc_ep_configure()
383 dev_data.ep_ctrl[ep_idx].mps_out = cfg->ep_mps; in usb_dc_ep_configure()
[all …]
Dusb_dc_native_posix.c69 uint8_t ep_idx = USB_EP_GET_IDX(ep); in usbip_ep_is_valid() local
73 ep_idx < USBIP_OUT_EP_NUM) { in usbip_ep_is_valid()
76 ep_idx < USBIP_IN_EP_NUM) { in usbip_ep_is_valid()
85 uint8_t ep_idx = USB_EP_GET_IDX(ep); in usbip_ep_is_enabled() local
91 usbip_ctrl.out_ep_ctrl[ep_idx].ep_ena) { in usbip_ep_is_enabled()
94 usbip_ctrl.in_ep_ctrl[ep_idx].ep_ena) { in usbip_ep_is_enabled()
152 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_check_cap() local
157 if ((cfg->ep_type == USB_DC_EP_CONTROL) && ep_idx) { in usb_dc_ep_check_cap()
168 (ep_idx >= USBIP_OUT_EP_NUM)) { in usb_dc_ep_check_cap()
174 (ep_idx >= USBIP_IN_EP_NUM)) { in usb_dc_ep_check_cap()
[all …]
Dusb_dc_sam0.c327 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_check_cap() local
329 if ((cfg->ep_type == USB_DC_EP_CONTROL) && ep_idx) { in usb_dc_ep_check_cap()
334 if (ep_idx > USB_NUM_ENDPOINTS) { in usb_dc_ep_check_cap()
346 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_configure() local
347 UsbDeviceEndpoint *endpoint = &regs->DeviceEndpoint[ep_idx]; in usb_dc_ep_configure()
348 UsbDeviceDescriptor *desc = &data->descriptors[ep_idx]; in usb_dc_ep_configure()
420 uint8_t ep_idx = USB_EP_GET_IDX(ep); in usb_dc_ep_set_stall() local
421 UsbDeviceEndpoint *endpoint = &regs->DeviceEndpoint[ep_idx]; in usb_dc_ep_set_stall()
423 if (ep_idx >= USB_NUM_ENDPOINTS) { in usb_dc_ep_set_stall()
441 uint8_t ep_idx = USB_EP_GET_IDX(ep); in usb_dc_ep_clear_stall() local
[all …]
Dusb_dc_stm32.c605 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_check_cap() local
610 if ((cfg->ep_type == USB_DC_EP_CONTROL) && ep_idx) { in usb_dc_ep_check_cap()
615 if (ep_idx > (USB_NUM_BIDIR_ENDPOINTS - 1)) { in usb_dc_ep_check_cap()
1060 uint8_t ep_idx = USB_EP_GET_IDX(epnum); in HAL_PCD_DataOutStageCallback() local
1061 uint8_t ep = ep_idx | USB_EP_DIR_OUT; in HAL_PCD_DataOutStageCallback()
1080 uint8_t ep_idx = USB_EP_GET_IDX(epnum); in HAL_PCD_DataInStageCallback() local
1081 uint8_t ep = ep_idx | USB_EP_DIR_IN; in HAL_PCD_DataInStageCallback()
Dusb_dc_native_posix_adapt.c434 uint32_t ep_idx = USB_EP_GET_IDX(ep); in usbip_send_common() local
440 rsp.common.ep = htonl(ep_idx); in usbip_send_common()
Dusb_dc_mcux.c192 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_check_cap() local
194 if ((cfg->ep_type == USB_DC_EP_CONTROL) && ep_idx) { in usb_dc_ep_check_cap()
Dusb_dc_nrfx.c1417 uint8_t ep_idx = NRF_USBD_EP_NR_GET(ep_cfg->ep_addr); in usb_dc_ep_check_cap() local
1422 if ((ep_cfg->ep_type == USB_DC_EP_CONTROL) && ep_idx) { in usb_dc_ep_check_cap()