Searched refs:ep_idx (Results 1 – 10 of 10) sorted by relevance
110 static bool usb_dc_ep_is_configured(uint8_t ep_idx) in usb_dc_ep_is_configured() argument112 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() argument118 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() argument124 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() argument132 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 …]
117 static void usb_dc_sam_usbc_isr_sta_dbg(uint32_t ep_idx, uint32_t sr) in usb_dc_sam_usbc_isr_sta_dbg() argument119 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 …]
93 uint8_t ep_idx = USB_EP_GET_IDX(ep); in usb_dw_ep_is_valid() local96 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() local111 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() local184 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 …]
280 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_check_cap() local282 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() local342 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 …]
69 uint8_t ep_idx = USB_EP_GET_IDX(ep); in usbip_ep_is_valid() local73 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() local91 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() local157 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 …]
327 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_check_cap() local329 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() local347 UsbDeviceEndpoint *endpoint = ®s->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() local421 UsbDeviceEndpoint *endpoint = ®s->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 …]
605 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_check_cap() local610 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() local1061 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() local1081 uint8_t ep = ep_idx | USB_EP_DIR_IN; in HAL_PCD_DataInStageCallback()
434 uint32_t ep_idx = USB_EP_GET_IDX(ep); in usbip_send_common() local440 rsp.common.ep = htonl(ep_idx); in usbip_send_common()
192 uint8_t ep_idx = USB_EP_GET_IDX(cfg->ep_addr); in usb_dc_ep_check_cap() local194 if ((cfg->ep_type == USB_DC_EP_CONTROL) && ep_idx) { in usb_dc_ep_check_cap()
1417 uint8_t ep_idx = NRF_USBD_EP_NR_GET(ep_cfg->ep_addr); in usb_dc_ep_check_cap() local1422 if ((ep_cfg->ep_type == USB_DC_EP_CONTROL) && ep_idx) { in usb_dc_ep_check_cap()