Home
last modified time | relevance | path

Searched refs:hwep (Results 1 – 2 of 2) sorted by relevance

/drivers/usb/chipidea/
Dudc.c341 static int add_td_to_list(struct ci_hw_ep *hwep, struct ci_hw_req *hwreq, in add_td_to_list() argument
352 node->ptr = dma_pool_alloc(hwep->td_pool, GFP_ATOMIC, in add_td_to_list()
363 if (hwep->type == USB_ENDPOINT_XFER_ISOC && hwep->dir == TX) { in add_td_to_list()
364 u32 mul = hwreq->req.length / hwep->ep.maxpacket; in add_td_to_list()
367 || hwreq->req.length % hwep->ep.maxpacket) in add_td_to_list()
413 static int _hardware_enqueue(struct ci_hw_ep *hwep, struct ci_hw_req *hwreq) in _hardware_enqueue() argument
415 struct ci_hdrc *ci = hwep->ci; in _hardware_enqueue()
427 ret = usb_gadget_map_request(&ci->gadget, &hwreq->req, hwep->dir); in _hardware_enqueue()
439 add_td_to_list(hwep, hwreq, 0); in _hardware_enqueue()
444 add_td_to_list(hwep, hwreq, count); in _hardware_enqueue()
[all …]
/drivers/usb/gadget/udc/
Dlpc32xx_udc.c824 static void uda_enable_hwepint(struct lpc32xx_udc *udc, u32 hwep) in uda_enable_hwepint() argument
826 udc->enabled_hwepints |= (1 << hwep); in uda_enable_hwepint()
831 static void uda_disable_hwepint(struct lpc32xx_udc *udc, u32 hwep) in uda_disable_hwepint() argument
833 udc->enabled_hwepints &= ~(1 << hwep); in uda_disable_hwepint()
838 static inline void uda_clear_hwepint(struct lpc32xx_udc *udc, u32 hwep) in uda_clear_hwepint() argument
840 writel((1 << hwep), USBD_EPINTCLR(udc->udp_baseaddr)); in uda_clear_hwepint()
844 static inline void udc_ep_dma_enable(struct lpc32xx_udc *udc, u32 hwep) in udc_ep_dma_enable() argument
846 writel((1 << hwep), USBD_EPDMAEN(udc->udp_baseaddr)); in udc_ep_dma_enable()
850 static inline void udc_ep_dma_disable(struct lpc32xx_udc *udc, u32 hwep) in udc_ep_dma_disable() argument
852 writel((1 << hwep), USBD_EPDMADIS(udc->udp_baseaddr)); in udc_ep_dma_disable()
[all …]