Lines Matching refs:dma_addrs
379 dma_addr_t *dma_addrs; in nouveau_dmem_evict_chunk() local
384 dma_addrs = kcalloc(npages, sizeof(*dma_addrs), GFP_KERNEL); in nouveau_dmem_evict_chunk()
402 &dma_addrs[i]); in nouveau_dmem_evict_chunk()
413 dma_unmap_page(chunk->drm->dev->dev, dma_addrs[i], PAGE_SIZE, DMA_BIDIRECTIONAL); in nouveau_dmem_evict_chunk()
414 kfree(dma_addrs); in nouveau_dmem_evict_chunk()
666 dma_addr_t *dma_addrs, u64 *pfns) in nouveau_dmem_migrate_chunk() argument
673 args->src[i], dma_addrs + nr_dma, pfns + i); in nouveau_dmem_migrate_chunk()
674 if (!dma_mapping_error(drm->dev->dev, dma_addrs[nr_dma])) in nouveau_dmem_migrate_chunk()
685 dma_unmap_page(drm->dev->dev, dma_addrs[nr_dma], PAGE_SIZE, in nouveau_dmem_migrate_chunk()
700 dma_addr_t *dma_addrs; in nouveau_dmem_migrate_vma() local
721 dma_addrs = kmalloc_array(max, sizeof(*dma_addrs), GFP_KERNEL); in nouveau_dmem_migrate_vma()
722 if (!dma_addrs) in nouveau_dmem_migrate_vma()
740 nouveau_dmem_migrate_chunk(drm, svmm, &args, dma_addrs, in nouveau_dmem_migrate_vma()
749 kfree(dma_addrs); in nouveau_dmem_migrate_vma()