Lines Matching refs:dma_chan
33 static void mv_xor_issue_pending(struct dma_chan *chan);
600 static int mv_xor_alloc_chan_resources(struct dma_chan *chan) in mv_xor_alloc_chan_resources()
651 mv_xor_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dest, dma_addr_t src, in mv_xor_prep_dma_memcpy()
690 mv_xor_prep_dma_memset(struct dma_chan *chan, dma_addr_t dest, int value, in mv_xor_prep_dma_memset()
727 mv_xor_prep_dma_xor(struct dma_chan *chan, dma_addr_t dest, dma_addr_t *src, in mv_xor_prep_dma_xor()
766 static void mv_xor_free_chan_resources(struct dma_chan *chan) in mv_xor_free_chan_resources()
808 static enum dma_status mv_xor_status(struct dma_chan *chan, in mv_xor_status()
888 static void mv_xor_issue_pending(struct dma_chan *chan) in mv_xor_issue_pending()
908 struct dma_chan *dma_chan; in mv_xor_memcpy_self_test() local
929 dma_chan = container_of(device->common.channels.next, in mv_xor_memcpy_self_test()
930 struct dma_chan, in mv_xor_memcpy_self_test()
932 if (mv_xor_alloc_chan_resources(dma_chan) < 1) { in mv_xor_memcpy_self_test()
937 dest_dma = dma_map_single(dma_chan->device->dev, dest, in mv_xor_memcpy_self_test()
940 src_dma = dma_map_single(dma_chan->device->dev, src, in mv_xor_memcpy_self_test()
943 tx = mv_xor_prep_dma_memcpy(dma_chan, dest_dma, src_dma, in mv_xor_memcpy_self_test()
946 mv_xor_issue_pending(dma_chan); in mv_xor_memcpy_self_test()
950 if (mv_xor_status(dma_chan, cookie, NULL) != in mv_xor_memcpy_self_test()
952 dev_printk(KERN_ERR, dma_chan->device->dev, in mv_xor_memcpy_self_test()
958 mv_chan = to_mv_xor_chan(dma_chan); in mv_xor_memcpy_self_test()
962 dev_printk(KERN_ERR, dma_chan->device->dev, in mv_xor_memcpy_self_test()
969 mv_xor_free_chan_resources(dma_chan); in mv_xor_memcpy_self_test()
986 struct dma_chan *dma_chan; in mv_xor_xor_self_test() local
1024 dma_chan = container_of(device->common.channels.next, in mv_xor_xor_self_test()
1025 struct dma_chan, in mv_xor_xor_self_test()
1027 if (mv_xor_alloc_chan_resources(dma_chan) < 1) { in mv_xor_xor_self_test()
1033 dest_dma = dma_map_page(dma_chan->device->dev, dest, 0, PAGE_SIZE, in mv_xor_xor_self_test()
1037 dma_srcs[i] = dma_map_page(dma_chan->device->dev, xor_srcs[i], in mv_xor_xor_self_test()
1040 tx = mv_xor_prep_dma_xor(dma_chan, dest_dma, dma_srcs, in mv_xor_xor_self_test()
1044 mv_xor_issue_pending(dma_chan); in mv_xor_xor_self_test()
1048 if (mv_xor_status(dma_chan, cookie, NULL) != in mv_xor_xor_self_test()
1050 dev_printk(KERN_ERR, dma_chan->device->dev, in mv_xor_xor_self_test()
1056 mv_chan = to_mv_xor_chan(dma_chan); in mv_xor_xor_self_test()
1062 dev_printk(KERN_ERR, dma_chan->device->dev, in mv_xor_xor_self_test()
1072 mv_xor_free_chan_resources(dma_chan); in mv_xor_xor_self_test()
1084 struct dma_chan *chan, *_chan; in mv_xor_remove()