Searched refs:ep_cur (Results 1 – 2 of 2) sorted by relevance
249 static inline uint32_t numaker_usbd_ep_fifo_max(struct numaker_usbd_ep *ep_cur) in numaker_usbd_ep_fifo_max() argument252 __ASSERT_NO_MSG(ep_cur->dmabuf_valid); in numaker_usbd_ep_fifo_max()253 __ASSERT_NO_MSG(ep_cur->mps_valid); in numaker_usbd_ep_fifo_max()254 __ASSERT_NO_MSG(ep_cur->mps <= ep_cur->dmabuf_size); in numaker_usbd_ep_fifo_max()255 return ep_cur->mps; in numaker_usbd_ep_fifo_max()258 static inline uint32_t numaker_usbd_ep_fifo_used(struct numaker_usbd_ep *ep_cur) in numaker_usbd_ep_fifo_used() argument260 __ASSERT_NO_MSG(ep_cur->dmabuf_valid); in numaker_usbd_ep_fifo_used()262 return USB_EP_DIR_IS_OUT(ep_cur->addr) in numaker_usbd_ep_fifo_used()263 ? ep_cur->read_fifo_used in numaker_usbd_ep_fifo_used()264 : numaker_usbd_ep_fifo_max(ep_cur) - ep_cur->write_fifo_free; in numaker_usbd_ep_fifo_used()[all …]
227 static inline void numaker_usbd_ep_sync_udc_halt(struct numaker_usbd_ep *ep_cur, bool stalled) in numaker_usbd_ep_sync_udc_halt() argument229 const struct device *dev = ep_cur->dev; in numaker_usbd_ep_sync_udc_halt()232 __ASSERT_NO_MSG(ep_cur->addr_valid); in numaker_usbd_ep_sync_udc_halt()233 ep_cfg = udc_get_ep_cfg(dev, ep_cur->addr); in numaker_usbd_ep_sync_udc_halt()237 static inline void numaker_usbd_ep_set_stall(struct numaker_usbd_ep *ep_cur) in numaker_usbd_ep_set_stall() argument239 const struct device *dev = ep_cur->dev; in numaker_usbd_ep_set_stall()240 USBD_EP_T *ep_base = numaker_usbd_ep_base(dev, ep_cur->ep_hw_idx); in numaker_usbd_ep_set_stall()244 numaker_usbd_ep_sync_udc_halt(ep_cur, true); in numaker_usbd_ep_set_stall()248 static inline void numaker_usbd_ep_clear_stall_n_data_toggle(struct numaker_usbd_ep *ep_cur) in numaker_usbd_ep_clear_stall_n_data_toggle() argument250 const struct device *dev = ep_cur->dev; in numaker_usbd_ep_clear_stall_n_data_toggle()[all …]