Lines Matching refs:hw_ep

64 	csr = musb_readw(cppi41_channel->hw_ep->regs, MUSB_RXCSR);  in save_rx_toggle()
72 struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; in update_rx_toggle() local
73 struct musb *musb = hw_ep->musb; in update_rx_toggle()
82 musb_ep_select(musb->mregs, hw_ep->epnum); in update_rx_toggle()
83 csr = musb_readw(hw_ep->regs, MUSB_RXCSR); in update_rx_toggle()
93 musb_writew(cppi41_channel->hw_ep->regs, MUSB_RXCSR, csr); in update_rx_toggle()
100 static bool musb_is_tx_fifo_empty(struct musb_hw_ep *hw_ep) in musb_is_tx_fifo_empty() argument
102 u8 epnum = hw_ep->epnum; in musb_is_tx_fifo_empty()
103 struct musb *musb = hw_ep->musb; in musb_is_tx_fifo_empty()
107 musb_ep_select(musb->mregs, hw_ep->epnum); in musb_is_tx_fifo_empty()
119 struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; in cppi41_trans_done() local
120 struct musb *musb = hw_ep->musb; in cppi41_trans_done()
121 void __iomem *epio = hw_ep->regs; in cppi41_trans_done()
139 musb_ep_select(musb->mregs, hw_ep->epnum); in cppi41_trans_done()
145 musb_dma_completion(musb, hw_ep->epnum, cppi41_channel->is_tx); in cppi41_trans_done()
177 musb_ep_select(musb->mregs, hw_ep->epnum); in cppi41_trans_done()
201 struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; in cppi41_recheck_tx_req() local
203 empty = musb_is_tx_fifo_empty(hw_ep); in cppi41_recheck_tx_req()
225 struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; in cppi41_dma_callback() local
227 struct musb *musb = hw_ep->musb; in cppi41_dma_callback()
259 type = hw_ep->out_qh->type; in cppi41_dma_callback()
261 type = hw_ep->ep_in.type; in cppi41_dma_callback()
274 empty = musb_is_tx_fifo_empty(hw_ep); in cppi41_dma_callback()
303 empty = musb_is_tx_fifo_empty(hw_ep); in cppi41_dma_callback()
483 struct musb_hw_ep *hw_ep, u8 is_tx) in cppi41_dma_channel_allocate() argument
488 u8 ch_num = hw_ep->epnum - 1; in cppi41_dma_channel_allocate()
504 cppi41_channel->hw_ep = hw_ep; in cppi41_dma_channel_allocate()
536 hb_mult = cppi41_channel->hw_ep->out_qh->hb_mult; in cppi41_dma_channel_program()
538 hb_mult = cppi41_channel->hw_ep->in_qh->hb_mult; in cppi41_dma_channel_program()
565 if (cppi41_channel->hw_ep->ep_in.type != USB_ENDPOINT_XFER_BULK) in cppi41_is_compatible()
578 void __iomem *epio = cppi41_channel->hw_ep->regs; in cppi41_dma_channel_abort()