Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/usb/musb/
Dmusb_cppi41.c59 static void save_rx_toggle(struct cppi41_dma_channel *cppi41_channel) in save_rx_toggle() argument
64 if (cppi41_channel->is_tx) in save_rx_toggle()
66 if (!is_host_active(cppi41_channel->controller->musb)) in save_rx_toggle()
69 csr = musb_readw(cppi41_channel->hw_ep->regs, MUSB_RXCSR); in save_rx_toggle()
72 cppi41_channel->usb_toggle = toggle; in save_rx_toggle()
75 static void update_rx_toggle(struct cppi41_dma_channel *cppi41_channel) in update_rx_toggle() argument
77 struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; in update_rx_toggle()
82 if (cppi41_channel->is_tx) in update_rx_toggle()
96 if (!toggle && toggle == cppi41_channel->usb_toggle) { in update_rx_toggle()
98 musb_writew(cppi41_channel->hw_ep->regs, MUSB_RXCSR, csr); in update_rx_toggle()
[all …]
/linux-4.4.14/drivers/dma/
Dcppi41.c93 struct cppi41_channel { struct
138 struct cppi41_channel *chan_busy[ALLOC_DECS_NUM];
233 static struct cppi41_channel *to_cpp41_chan(struct dma_chan *c) in to_cpp41_chan()
235 return container_of(c, struct cppi41_channel, chan); in to_cpp41_chan()
238 static struct cppi41_channel *desc_to_chan(struct cppi41_dd *cdd, u32 desc) in desc_to_chan()
240 struct cppi41_channel *c; in desc_to_chan()
285 struct cppi41_channel *c; in cppi41_irq()
351 struct cppi41_channel *c = to_cpp41_chan(chan); in cppi41_dma_alloc_chan_resources()
370 struct cppi41_channel *c = to_cpp41_chan(chan); in cppi41_dma_tx_status()
382 static void push_desc_queue(struct cppi41_channel *c) in push_desc_queue()
[all …]