Lines Matching refs:base

72 	USBD_T *base;  member
190 USBD_T *const base = config->base; in numaker_usbd_sw_connect() local
193 base->INTSTS = base->INTSTS; in numaker_usbd_sw_connect()
196 base->INTEN = USBD_INT_BUS | USBD_INT_USB | USBD_INT_FLDET | USBD_INT_WAKEUP | USBD_INT_SOF; in numaker_usbd_sw_connect()
199 base->SE0 &= ~USBD_DRVSE0; in numaker_usbd_sw_connect()
205 USBD_T *const base = config->base; in numaker_usbd_sw_disconnect() local
208 base->SE0 |= USBD_DRVSE0; in numaker_usbd_sw_disconnect()
223 USBD_T *const base = config->base; in numaker_usbd_reset_addr() local
225 base->FADDR = 0; in numaker_usbd_reset_addr()
233 USBD_T *const base = config->base; in numaker_usbd_set_addr() local
235 if (base->FADDR != data->addr) { in numaker_usbd_set_addr()
236 base->FADDR = data->addr; in numaker_usbd_set_addr()
244 USBD_T *const base = config->base; in numaker_usbd_ep_base() local
246 return base->EP + ep_hw_idx; in numaker_usbd_ep_base()
345 USBD_T *const base = config->base; in numaker_usbd_hw_setup() local
393 base->ATTR = USBD_ATTR_BYTEM_Msk | BIT(9) | USBD_ATTR_DPPUEN_Msk | USBD_ATTR_USBEN_Msk | in numaker_usbd_hw_setup()
414 USBD_T *const base = config->base; in numaker_usbd_hw_shutdown() local
426 base->ATTR &= ~USBD_PHY_EN; in numaker_usbd_hw_shutdown()
473 USBD_T *const base = config->base; in numaker_usbd_remote_wakeup() local
476 base->ATTR |= USBD_ATTR_USBEN_Msk | USBD_ATTR_PHYEN_Msk; in numaker_usbd_remote_wakeup()
479 base->ATTR |= USBD_ATTR_RWAKEUP_Msk; in numaker_usbd_remote_wakeup()
481 base->ATTR ^= USBD_ATTR_RWAKEUP_Msk; in numaker_usbd_remote_wakeup()
488 USBD_T *const base = config->base; in numaker_usbd_buf_base() local
490 return ((uint32_t)base + 0x800ul); in numaker_usbd_buf_base()
497 USBD_T *const base = config->base; in numaker_usbd_setup_fifo_copy_to_user() local
500 dmabuf_addr = numaker_usbd_buf_base(dev) + (base->STBUFSEG & USBD_STBUFSEG_STBUFSEG_Msk); in numaker_usbd_setup_fifo_copy_to_user()
754 USBD_T *const base = config->base; in numaker_usbd_ep_mgmt_init() local
782 base->STBUFSEG = ep_mgmt->dmabuf_pos; in numaker_usbd_ep_mgmt_init()
1046 USBD_T *const base = config->base; in numaker_udbd_isr() local
1051 uint32_t volatile usbd_intsts = base->INTSTS; in numaker_udbd_isr()
1052 uint32_t volatile usbd_bus_state = base->ATTR; in numaker_udbd_isr()
1057 base->INTSTS = USBD_INTSTS_FLDET; in numaker_udbd_isr()
1059 if (base->VBUSDET & USBD_VBUSDET_VBUSDET_Msk) { in numaker_udbd_isr()
1063 base->ATTR |= USBD_ATTR_USBEN_Msk | USBD_ATTR_PHYEN_Msk; in numaker_udbd_isr()
1075 base->ATTR &= ~USBD_USB_EN; in numaker_udbd_isr()
1089 base->INTSTS = USBD_INTSTS_WAKEUP; in numaker_udbd_isr()
1097 base->INTSTS = USBD_INTSTS_BUS; in numaker_udbd_isr()
1103 base->ATTR |= USBD_ATTR_USBEN_Msk | USBD_ATTR_PHYEN_Msk; in numaker_udbd_isr()
1117 base->ATTR &= ~USBD_PHY_EN; in numaker_udbd_isr()
1128 base->ATTR |= USBD_ATTR_USBEN_Msk | USBD_ATTR_PHYEN_Msk; in numaker_udbd_isr()
1142 base->INTSTS = USBD_INTSTS_SOFIF_Msk; in numaker_udbd_isr()
1160 base->INTSTS = USBD_INTSTS_SETUP; in numaker_udbd_isr()
1183 epintsts = base->EPINTSTS; in numaker_udbd_isr()
1185 base->EPINTSTS = epintsts; in numaker_udbd_isr()
1978 .base = (USBD_T *)DT_INST_REG_ADDR(inst), \