Lines Matching refs:musb_channel

108 	struct musb_dma_channel *musb_channel = NULL;  in dma_channel_allocate()  local
115 musb_channel = &(controller->channel[bit]); in dma_channel_allocate()
116 musb_channel->controller = controller; in dma_channel_allocate()
117 musb_channel->idx = bit; in dma_channel_allocate()
118 musb_channel->epnum = hw_ep->epnum; in dma_channel_allocate()
119 musb_channel->transmit = transmit; in dma_channel_allocate()
120 channel = &(musb_channel->channel); in dma_channel_allocate()
121 channel->private_data = musb_channel; in dma_channel_allocate()
136 struct musb_dma_channel *musb_channel = channel->private_data; in dma_channel_release() local
139 musb_channel->start_addr = 0; in dma_channel_release()
140 musb_channel->len = 0; in dma_channel_release()
142 musb_channel->controller->used_channels &= in dma_channel_release()
143 ~(1 << musb_channel->idx); in dma_channel_release()
152 struct musb_dma_channel *musb_channel = channel->private_data; in configure_channel() local
153 struct musb_dma_controller *controller = musb_channel->controller; in configure_channel()
156 u8 bchannel = musb_channel->idx; in configure_channel()
169 csr |= (musb_channel->epnum << MUSB_HSDMA_ENDPOINT_SHIFT) in configure_channel()
172 | (musb_channel->transmit in configure_channel()
190 struct musb_dma_channel *musb_channel = channel->private_data; in dma_channel_program() local
191 struct musb_dma_controller *controller = musb_channel->controller; in dma_channel_program()
195 musb_channel->epnum, in dma_channel_program()
196 musb_channel->transmit ? "Tx" : "Rx", in dma_channel_program()
215 musb_channel->start_addr = dma_addr; in dma_channel_program()
216 musb_channel->len = len; in dma_channel_program()
217 musb_channel->max_packet_sz = packet_sz; in dma_channel_program()
227 struct musb_dma_channel *musb_channel = channel->private_data; in dma_channel_abort() local
228 void __iomem *mbase = musb_channel->controller->base; in dma_channel_abort()
229 struct musb *musb = musb_channel->controller->private_data; in dma_channel_abort()
231 u8 bchannel = musb_channel->idx; in dma_channel_abort()
236 if (musb_channel->transmit) { in dma_channel_abort()
237 offset = musb->io.ep_offset(musb_channel->epnum, in dma_channel_abort()
250 offset = musb->io.ep_offset(musb_channel->epnum, in dma_channel_abort()
275 struct musb_dma_channel *musb_channel; in dma_controller_irq() local
298 musb_channel = (struct musb_dma_channel *) in dma_controller_irq()
300 channel = &musb_channel->channel; in dma_controller_irq()
317 musb_channel = (struct musb_dma_channel *) in dma_controller_irq()
319 channel = &musb_channel->channel; in dma_controller_irq()
326 musb_channel->channel.status = in dma_controller_irq()
334 - musb_channel->start_addr; in dma_controller_irq()
337 channel, musb_channel->start_addr, in dma_controller_irq()
339 musb_channel->len, in dma_controller_irq()
341 < musb_channel->len) ? in dma_controller_irq()
349 if (musb_channel->transmit && in dma_controller_irq()
352 musb_channel->max_packet_sz))) { in dma_controller_irq()
353 u8 epnum = musb_channel->epnum; in dma_controller_irq()
375 musb_dma_completion(musb, musb_channel->epnum, in dma_controller_irq()
376 musb_channel->transmit); in dma_controller_irq()