Lines Matching refs:hw_ep

28 	struct musb_hw_ep *hw_ep;  member
69 csr = musb_readw(cppi41_channel->hw_ep->regs, MUSB_RXCSR); in save_rx_toggle()
77 struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; in update_rx_toggle() local
78 struct musb *musb = hw_ep->musb; in update_rx_toggle()
87 musb_ep_select(musb->mregs, hw_ep->epnum); in update_rx_toggle()
88 csr = musb_readw(hw_ep->regs, MUSB_RXCSR); in update_rx_toggle()
98 musb_writew(cppi41_channel->hw_ep->regs, MUSB_RXCSR, csr); in update_rx_toggle()
106 static bool musb_is_tx_fifo_empty(struct musb_hw_ep *hw_ep) in musb_is_tx_fifo_empty() argument
108 u8 epnum = hw_ep->epnum; in musb_is_tx_fifo_empty()
109 struct musb *musb = hw_ep->musb; in musb_is_tx_fifo_empty()
113 musb_ep_select(musb->mregs, hw_ep->epnum); in musb_is_tx_fifo_empty()
124 struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; in cppi41_trans_done() local
125 struct musb *musb = hw_ep->musb; in cppi41_trans_done()
126 void __iomem *epio = hw_ep->regs; in cppi41_trans_done()
144 musb_ep_select(musb->mregs, hw_ep->epnum); in cppi41_trans_done()
148 musb_dma_completion(musb, hw_ep->epnum, cppi41_channel->is_tx); in cppi41_trans_done()
179 musb_ep_select(musb->mregs, hw_ep->epnum); in cppi41_trans_done()
203 struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; in cppi41_recheck_tx_req() local
205 empty = musb_is_tx_fifo_empty(hw_ep); in cppi41_recheck_tx_req()
227 struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; in cppi41_dma_callback() local
229 struct musb *musb = hw_ep->musb; in cppi41_dma_callback()
244 hw_ep->epnum, cppi41_channel->transferred, in cppi41_dma_callback()
254 empty = musb_is_tx_fifo_empty(hw_ep); in cppi41_dma_callback()
284 empty = musb_is_tx_fifo_empty(hw_ep); in cppi41_dma_callback()
440 struct musb_hw_ep *hw_ep, u8 is_tx) in cppi41_dma_channel_allocate() argument
445 u8 ch_num = hw_ep->epnum - 1; in cppi41_dma_channel_allocate()
461 cppi41_channel->hw_ep = hw_ep; in cppi41_dma_channel_allocate()
491 hb_mult = cppi41_channel->hw_ep->out_qh->hb_mult; in cppi41_dma_channel_program()
493 hb_mult = cppi41_channel->hw_ep->in_qh->hb_mult; in cppi41_dma_channel_program()
520 if (cppi41_channel->hw_ep->ep_in.type != USB_ENDPOINT_XFER_BULK) in cppi41_is_compatible()
533 void __iomem *epio = cppi41_channel->hw_ep->regs; in cppi41_dma_channel_abort()