Lines Matching refs:schan
282 static void sh_dmae_start_xfer(struct shdma_chan *schan, in sh_dmae_start_xfer() argument
285 struct sh_dmae_chan *sh_chan = container_of(schan, struct sh_dmae_chan, in sh_dmae_start_xfer()
297 static bool sh_dmae_channel_busy(struct shdma_chan *schan) in sh_dmae_channel_busy() argument
299 struct sh_dmae_chan *sh_chan = container_of(schan, struct sh_dmae_chan, in sh_dmae_channel_busy()
304 static void sh_dmae_setup_xfer(struct shdma_chan *schan, in sh_dmae_setup_xfer() argument
307 struct sh_dmae_chan *sh_chan = container_of(schan, struct sh_dmae_chan, in sh_dmae_setup_xfer()
351 static int sh_dmae_set_slave(struct shdma_chan *schan, in sh_dmae_set_slave() argument
354 struct sh_dmae_chan *sh_chan = container_of(schan, struct sh_dmae_chan, in sh_dmae_set_slave()
377 static int sh_dmae_desc_setup(struct shdma_chan *schan, in sh_dmae_desc_setup() argument
384 if (*len > schan->max_xfer_len) in sh_dmae_desc_setup()
385 *len = schan->max_xfer_len; in sh_dmae_desc_setup()
394 static void sh_dmae_halt(struct shdma_chan *schan) in sh_dmae_halt() argument
396 struct sh_dmae_chan *sh_chan = container_of(schan, struct sh_dmae_chan, in sh_dmae_halt()
401 static bool sh_dmae_chan_irq(struct shdma_chan *schan, int irq) in sh_dmae_chan_irq() argument
403 struct sh_dmae_chan *sh_chan = container_of(schan, struct sh_dmae_chan, in sh_dmae_chan_irq()
415 static size_t sh_dmae_get_partial(struct shdma_chan *schan, in sh_dmae_get_partial() argument
418 struct sh_dmae_chan *sh_chan = container_of(schan, struct sh_dmae_chan, in sh_dmae_get_partial()
453 static bool sh_dmae_desc_completed(struct shdma_chan *schan, in sh_dmae_desc_completed() argument
456 struct sh_dmae_chan *sh_chan = container_of(schan, in sh_dmae_desc_completed()
524 struct shdma_chan *schan; in sh_dmae_chan_probe() local
532 schan = &sh_chan->shdma_chan; in sh_dmae_chan_probe()
533 schan->max_xfer_len = SH_DMA_TCR_MAX + 1; in sh_dmae_chan_probe()
535 shdma_chan_probe(sdev, schan, id); in sh_dmae_chan_probe()
547 err = shdma_request_irq(schan, irq, flags, sh_chan->dev_id); in sh_dmae_chan_probe()
560 shdma_chan_remove(schan); in sh_dmae_chan_probe()
566 struct shdma_chan *schan; in sh_dmae_chan_remove() local
569 shdma_for_each_chan(schan, &shdev->shdma_dev, i) { in sh_dmae_chan_remove()
570 BUG_ON(!schan); in sh_dmae_chan_remove()
572 shdma_chan_remove(schan); in sh_dmae_chan_remove()
636 static dma_addr_t sh_dmae_slave_addr(struct shdma_chan *schan) in sh_dmae_slave_addr() argument
638 struct sh_dmae_chan *sh_chan = container_of(schan, in sh_dmae_slave_addr()