Lines Matching refs:bchannel

18 #define musb_read_hsdma_addr(mbase, bchannel)	\  argument
20 MUSB_HSDMA_CHANNEL_OFFSET(bchannel, MUSB_HSDMA_ADDRESS))
22 #define musb_write_hsdma_addr(mbase, bchannel, addr) \ argument
24 MUSB_HSDMA_CHANNEL_OFFSET(bchannel, MUSB_HSDMA_ADDRESS), \
27 #define musb_read_hsdma_count(mbase, bchannel) \ argument
29 MUSB_HSDMA_CHANNEL_OFFSET(bchannel, MUSB_HSDMA_COUNT))
31 #define musb_write_hsdma_count(mbase, bchannel, len) \ argument
33 MUSB_HSDMA_CHANNEL_OFFSET(bchannel, MUSB_HSDMA_COUNT), \
151 u8 bchannel = musb_channel->idx; in configure_channel() local
172 musb_write_hsdma_addr(mbase, bchannel, dma_addr); in configure_channel()
173 musb_write_hsdma_count(mbase, bchannel, len); in configure_channel()
177 MUSB_HSDMA_CHANNEL_OFFSET(bchannel, MUSB_HSDMA_CONTROL), in configure_channel()
226 u8 bchannel = musb_channel->idx; in dma_channel_abort() local
256 MUSB_HSDMA_CHANNEL_OFFSET(bchannel, MUSB_HSDMA_CONTROL), in dma_channel_abort()
258 musb_write_hsdma_addr(mbase, bchannel, 0); in dma_channel_abort()
259 musb_write_hsdma_count(mbase, bchannel, 0); in dma_channel_abort()
279 u8 bchannel; in dma_controller_irq() local
292 for (bchannel = 0; bchannel < MUSB_HSDMA_CHANNELS; bchannel++) { in dma_controller_irq()
294 &(controller->channel[bchannel]); in dma_controller_irq()
297 count = musb_read_hsdma_count(mbase, bchannel); in dma_controller_irq()
300 int_hsdma |= (1 << bchannel); in dma_controller_irq()
310 for (bchannel = 0; bchannel < MUSB_HSDMA_CHANNELS; bchannel++) { in dma_controller_irq()
311 if (int_hsdma & (1 << bchannel)) { in dma_controller_irq()
313 &(controller->channel[bchannel]); in dma_controller_irq()
317 MUSB_HSDMA_CHANNEL_OFFSET(bchannel, in dma_controller_irq()
325 bchannel); in dma_controller_irq()