Lines Matching refs:unmap
769 struct dmaengine_unmap_data *unmap; in mv_chan_memcpy_self_test() local
792 unmap = dmaengine_get_unmap_data(dma_chan->device->dev, 2, GFP_KERNEL); in mv_chan_memcpy_self_test()
793 if (!unmap) { in mv_chan_memcpy_self_test()
801 unmap->addr[0] = src_dma; in mv_chan_memcpy_self_test()
808 unmap->to_cnt = 1; in mv_chan_memcpy_self_test()
813 unmap->addr[1] = dest_dma; in mv_chan_memcpy_self_test()
820 unmap->from_cnt = 1; in mv_chan_memcpy_self_test()
821 unmap->len = PAGE_SIZE; in mv_chan_memcpy_self_test()
862 dmaengine_unmap_put(unmap); in mv_chan_memcpy_self_test()
880 struct dmaengine_unmap_data *unmap; in mv_chan_xor_self_test() local
925 unmap = dmaengine_get_unmap_data(dma_chan->device->dev, src_count + 1, in mv_chan_xor_self_test()
927 if (!unmap) { in mv_chan_xor_self_test()
934 unmap->addr[i] = dma_map_page(dma_chan->device->dev, xor_srcs[i], in mv_chan_xor_self_test()
936 dma_srcs[i] = unmap->addr[i]; in mv_chan_xor_self_test()
937 ret = dma_mapping_error(dma_chan->device->dev, unmap->addr[i]); in mv_chan_xor_self_test()
942 unmap->to_cnt++; in mv_chan_xor_self_test()
945 unmap->addr[src_count] = dma_map_page(dma_chan->device->dev, dest, 0, PAGE_SIZE, in mv_chan_xor_self_test()
947 dest_dma = unmap->addr[src_count]; in mv_chan_xor_self_test()
948 ret = dma_mapping_error(dma_chan->device->dev, unmap->addr[src_count]); in mv_chan_xor_self_test()
953 unmap->from_cnt = 1; in mv_chan_xor_self_test()
954 unmap->len = PAGE_SIZE; in mv_chan_xor_self_test()
999 dmaengine_unmap_put(unmap); in mv_chan_xor_self_test()