Lines Matching refs:ep_base

289 	USBD_EP_T *ep_base = numaker_usbd_ep_base(dev, ep_cur->ep_hw_idx);  in numaker_usbd_ep_set_stall()  local
292 ep_base->CFGP |= USBD_CFGP_SSTALL_Msk; in numaker_usbd_ep_set_stall()
299 USBD_EP_T *ep_base = numaker_usbd_ep_base(dev, ep_cur->ep_hw_idx); in numaker_usbd_ep_clear_stall_n_data_toggle() local
302 ep_base->CFGP &= ~USBD_CFGP_SSTALL_Msk; in numaker_usbd_ep_clear_stall_n_data_toggle()
305 ep_base->CFG &= ~USBD_CFG_DSQSYNC_Msk; in numaker_usbd_ep_clear_stall_n_data_toggle()
311 USBD_EP_T *ep_base = numaker_usbd_ep_base(dev, ep_cur->ep_hw_idx); in numaker_usbd_ep_is_stalled() local
313 return ep_base->CFGP & USBD_CFGP_SSTALL_Msk; in numaker_usbd_ep_is_stalled()
447 USBD_EP_T *ep_base; in numaker_usbd_bus_reset_th() local
450 ep_base = numaker_usbd_ep_base(dev, EP0 + i); in numaker_usbd_bus_reset_th()
453 ep_base->CFGP |= USBD_CFGP_CLRRDY_Msk; in numaker_usbd_bus_reset_th()
456 ep_base->CFGP &= ~USBD_CFGP_SSTALL_Msk; in numaker_usbd_bus_reset_th()
459 ep_base->CFG &= ~USBD_CFG_DSQSYNC_Msk; in numaker_usbd_bus_reset_th()
463 ep_base->CFG = 0; in numaker_usbd_bus_reset_th()
543 USBD_EP_T *ep_base = numaker_usbd_ep_base(dev, ep_cur->ep_hw_idx); in numaker_usbd_ep_fifo_copy_from_user() local
552 dmabuf_addr = numaker_usbd_buf_base(dev) + ep_base->BUFSEG; in numaker_usbd_ep_fifo_copy_from_user()
573 USBD_EP_T *ep_base = numaker_usbd_ep_base(dev, ep_cur->ep_hw_idx); in numaker_usbd_ep_fifo_update() local
586 ep_cur->read_fifo_used = ep_base->MXPLD; in numaker_usbd_ep_fifo_update()
600 USBD_EP_T *ep_base = numaker_usbd_ep_base(dev, ep_cur->ep_hw_idx); in numaker_usbd_ep_config_dmabuf() local
602 ep_base->BUFSEG = dmabuf_base; in numaker_usbd_ep_config_dmabuf()
612 USBD_EP_T *ep_base = numaker_usbd_ep_base(dev, ep_cur->ep_hw_idx); in numaker_usbd_ep_abort() local
615 ep_base->CFGP |= USBD_CFGP_CLRRDY_Msk; in numaker_usbd_ep_abort()
626 USBD_EP_T *ep_base = numaker_usbd_ep_base(dev, ep_cur->ep_hw_idx); in numaker_usbd_ep_config_major() local
654 ep_base->CFG = ep_cur->ep_hw_cfg; in numaker_usbd_ep_config_major()
660 USBD_EP_T *ep_base = numaker_usbd_ep_base(dev, ep_cur->ep_hw_idx); in numaker_usbd_ep_enable() local
675 ep_base->CFG = ep_cur->ep_hw_cfg; in numaker_usbd_ep_enable()
683 USBD_EP_T *ep_base = numaker_usbd_ep_base(dev, ep_cur->ep_hw_idx); in numaker_usbd_ep_disable() local
689 ep_base->CFG = ep_cur->ep_hw_cfg; in numaker_usbd_ep_disable()
696 USBD_EP_T *ep_base = numaker_usbd_ep_base(dev, ep_cur->ep_hw_idx); in numaker_usbd_ep_trigger() local
698 ep_base->MXPLD = len; in numaker_usbd_ep_trigger()
1189 USBD_EP_T *ep_base = numaker_usbd_ep_base(dev, ep_hw_idx); in numaker_udbd_isr() local
1201 ep_dir = ((ep_base->CFG & USBD_CFG_STATE_Msk) == USBD_CFG_EPMODE_IN) in numaker_udbd_isr()
1204 ep_idx = (ep_base->CFG & USBD_CFG_EPNUM_Msk) >> USBD_CFG_EPNUM_Pos; in numaker_udbd_isr()