• Home
  • Raw
  • Download

Lines Matching refs:dma_chan

30 static void mv_xor_issue_pending(struct dma_chan *chan);
609 static int mv_xor_alloc_chan_resources(struct dma_chan *chan) in mv_xor_alloc_chan_resources()
660 mv_xor_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dest, dma_addr_t src, in mv_xor_prep_dma_memcpy()
699 mv_xor_prep_dma_memset(struct dma_chan *chan, dma_addr_t dest, int value, in mv_xor_prep_dma_memset()
736 mv_xor_prep_dma_xor(struct dma_chan *chan, dma_addr_t dest, dma_addr_t *src, in mv_xor_prep_dma_xor()
775 static void mv_xor_free_chan_resources(struct dma_chan *chan) in mv_xor_free_chan_resources()
816 static enum dma_status mv_xor_is_complete(struct dma_chan *chan, in mv_xor_is_complete()
915 static void mv_xor_issue_pending(struct dma_chan *chan) in mv_xor_issue_pending()
935 struct dma_chan *dma_chan; in mv_xor_memcpy_self_test() local
956 dma_chan = container_of(device->common.channels.next, in mv_xor_memcpy_self_test()
957 struct dma_chan, in mv_xor_memcpy_self_test()
959 if (mv_xor_alloc_chan_resources(dma_chan) < 1) { in mv_xor_memcpy_self_test()
964 dest_dma = dma_map_single(dma_chan->device->dev, dest, in mv_xor_memcpy_self_test()
967 src_dma = dma_map_single(dma_chan->device->dev, src, in mv_xor_memcpy_self_test()
970 tx = mv_xor_prep_dma_memcpy(dma_chan, dest_dma, src_dma, in mv_xor_memcpy_self_test()
973 mv_xor_issue_pending(dma_chan); in mv_xor_memcpy_self_test()
977 if (mv_xor_is_complete(dma_chan, cookie, NULL, NULL) != in mv_xor_memcpy_self_test()
979 dev_printk(KERN_ERR, dma_chan->device->dev, in mv_xor_memcpy_self_test()
985 mv_chan = to_mv_xor_chan(dma_chan); in mv_xor_memcpy_self_test()
989 dev_printk(KERN_ERR, dma_chan->device->dev, in mv_xor_memcpy_self_test()
996 mv_xor_free_chan_resources(dma_chan); in mv_xor_memcpy_self_test()
1013 struct dma_chan *dma_chan; in mv_xor_xor_self_test() local
1051 dma_chan = container_of(device->common.channels.next, in mv_xor_xor_self_test()
1052 struct dma_chan, in mv_xor_xor_self_test()
1054 if (mv_xor_alloc_chan_resources(dma_chan) < 1) { in mv_xor_xor_self_test()
1060 dest_dma = dma_map_page(dma_chan->device->dev, dest, 0, PAGE_SIZE, in mv_xor_xor_self_test()
1064 dma_srcs[i] = dma_map_page(dma_chan->device->dev, xor_srcs[i], in mv_xor_xor_self_test()
1067 tx = mv_xor_prep_dma_xor(dma_chan, dest_dma, dma_srcs, in mv_xor_xor_self_test()
1071 mv_xor_issue_pending(dma_chan); in mv_xor_xor_self_test()
1075 if (mv_xor_is_complete(dma_chan, cookie, NULL, NULL) != in mv_xor_xor_self_test()
1077 dev_printk(KERN_ERR, dma_chan->device->dev, in mv_xor_xor_self_test()
1083 mv_chan = to_mv_xor_chan(dma_chan); in mv_xor_xor_self_test()
1089 dev_printk(KERN_ERR, dma_chan->device->dev, in mv_xor_xor_self_test()
1099 mv_xor_free_chan_resources(dma_chan); in mv_xor_xor_self_test()
1111 struct dma_chan *chan, *_chan; in mv_xor_remove()