Lines Matching defs:channel
59 * Allocate dmareq0 to the current channel unless it's already taken
99 struct dma_channel *channel = (struct dma_channel *)data;
100 struct tusb_omap_dma_ch *chdat = to_chdat(channel);
128 channel->actual_len = chdat->transfer_len - remaining;
129 pio = chdat->len - channel->actual_len;
150 channel->actual_len += pio;
156 channel->status = MUSB_DMA_STATUS_FREE;
181 static int tusb_omap_dma_program(struct dma_channel *channel, u16 packet_sz,
184 struct tusb_omap_dma_ch *chdat = to_chdat(channel);
217 * using the channel for DMA.
255 channel->actual_len = 0;
257 channel->status = MUSB_DMA_STATUS_BUSY;
312 dma_desc->callback_param = channel;
367 static int tusb_omap_dma_abort(struct dma_channel *channel)
369 struct tusb_omap_dma_ch *chdat = to_chdat(channel);
374 channel->status = MUSB_DMA_STATUS_FREE;
429 struct dma_channel *channel = NULL;
446 channel = ch;
452 if (!channel)
466 channel->max_len = 0x7fffffff;
467 channel->desired_mode = 0;
468 channel->actual_len = 0;
488 return channel;
493 dev_dbg(musb->controller, "ep%i: Could not get a DMA channel\n", chdat->epnum);
494 channel->status = MUSB_DMA_STATUS_UNKNOWN;
499 static void tusb_omap_dma_release(struct dma_channel *channel)
501 struct tusb_omap_dma_ch *chdat = to_chdat(channel);
506 channel->status = MUSB_DMA_STATUS_UNKNOWN;
511 channel = NULL;
547 * - one channel in case of non multichannel mode