Lines Matching refs:unmap
709 struct dmaengine_unmap_data *unmap; in mv_xor_memcpy_self_test() local
732 unmap = dmaengine_get_unmap_data(dma_chan->device->dev, 2, GFP_KERNEL); in mv_xor_memcpy_self_test()
733 if (!unmap) { in mv_xor_memcpy_self_test()
740 unmap->addr[0] = src_dma; in mv_xor_memcpy_self_test()
747 unmap->to_cnt = 1; in mv_xor_memcpy_self_test()
751 unmap->addr[1] = dest_dma; in mv_xor_memcpy_self_test()
758 unmap->from_cnt = 1; in mv_xor_memcpy_self_test()
759 unmap->len = PAGE_SIZE; in mv_xor_memcpy_self_test()
800 dmaengine_unmap_put(unmap); in mv_xor_memcpy_self_test()
818 struct dmaengine_unmap_data *unmap; in mv_xor_xor_self_test() local
863 unmap = dmaengine_get_unmap_data(dma_chan->device->dev, src_count + 1, in mv_xor_xor_self_test()
865 if (!unmap) { in mv_xor_xor_self_test()
872 unmap->addr[i] = dma_map_page(dma_chan->device->dev, xor_srcs[i], in mv_xor_xor_self_test()
874 dma_srcs[i] = unmap->addr[i]; in mv_xor_xor_self_test()
875 ret = dma_mapping_error(dma_chan->device->dev, unmap->addr[i]); in mv_xor_xor_self_test()
880 unmap->to_cnt++; in mv_xor_xor_self_test()
883 unmap->addr[src_count] = dma_map_page(dma_chan->device->dev, dest, 0, PAGE_SIZE, in mv_xor_xor_self_test()
885 dest_dma = unmap->addr[src_count]; in mv_xor_xor_self_test()
886 ret = dma_mapping_error(dma_chan->device->dev, unmap->addr[src_count]); in mv_xor_xor_self_test()
891 unmap->from_cnt = 1; in mv_xor_xor_self_test()
892 unmap->len = PAGE_SIZE; in mv_xor_xor_self_test()
937 dmaengine_unmap_put(unmap); in mv_xor_xor_self_test()