Searched refs:src_pfns (Results 1 – 4 of 4) sorted by relevance
/Linux-v6.1/mm/ |
D | migrate_device.c | 363 static unsigned long migrate_device_unmap(unsigned long *src_pfns, in migrate_device_unmap() argument 374 struct page *page = migrate_pfn_to_page(src_pfns[i]); in migrate_device_unmap() 378 if (src_pfns[i] & MIGRATE_PFN_MIGRATE) in migrate_device_unmap() 392 src_pfns[i] &= ~MIGRATE_PFN_MIGRATE; in migrate_device_unmap() 412 src_pfns[i] &= ~MIGRATE_PFN_MIGRATE; in migrate_device_unmap() 421 struct page *page = migrate_pfn_to_page(src_pfns[i]); in migrate_device_unmap() 424 if (!page || (src_pfns[i] & MIGRATE_PFN_MIGRATE)) in migrate_device_unmap() 430 src_pfns[i] = 0; in migrate_device_unmap() 700 static void __migrate_device_pages(unsigned long *src_pfns, in __migrate_device_pages() argument 710 struct page *page = migrate_pfn_to_page(src_pfns[i]); in __migrate_device_pages() [all …]
|
/Linux-v6.1/lib/ |
D | test_hmm.c | 913 unsigned long src_pfns[64] = { 0 }; in dmirror_migrate_to_system() local 936 next = min(end, addr + (ARRAY_SIZE(src_pfns) << PAGE_SHIFT)); in dmirror_migrate_to_system() 941 args.src = src_pfns; in dmirror_migrate_to_system() 973 unsigned long src_pfns[64] = { 0 }; in dmirror_migrate_to_device() local 996 next = min(end, addr + (ARRAY_SIZE(src_pfns) << PAGE_SHIFT)); in dmirror_migrate_to_device() 1001 args.src = src_pfns; in dmirror_migrate_to_device() 1232 unsigned long *src_pfns; in dmirror_device_evict_chunk() local 1235 src_pfns = kcalloc(npages, sizeof(*src_pfns), GFP_KERNEL); in dmirror_device_evict_chunk() 1238 migrate_device_range(src_pfns, start_pfn, npages); in dmirror_device_evict_chunk() 1242 spage = migrate_pfn_to_page(src_pfns[i]); in dmirror_device_evict_chunk() [all …]
|
/Linux-v6.1/include/linux/ |
D | migrate.h | 213 int migrate_device_range(unsigned long *src_pfns, unsigned long start, 215 void migrate_device_pages(unsigned long *src_pfns, unsigned long *dst_pfns, 217 void migrate_device_finalize(unsigned long *src_pfns,
|
/Linux-v6.1/drivers/gpu/drm/nouveau/ |
D | nouveau_dmem.c | 378 unsigned long *src_pfns, *dst_pfns; in nouveau_dmem_evict_chunk() local 382 src_pfns = kcalloc(npages, sizeof(*src_pfns), GFP_KERNEL); in nouveau_dmem_evict_chunk() 386 migrate_device_range(src_pfns, chunk->pagemap.range.start >> PAGE_SHIFT, in nouveau_dmem_evict_chunk() 390 if (src_pfns[i] & MIGRATE_PFN_MIGRATE) { in nouveau_dmem_evict_chunk() 401 migrate_pfn_to_page(src_pfns[i]), dpage, in nouveau_dmem_evict_chunk() 407 migrate_device_pages(src_pfns, dst_pfns, npages); in nouveau_dmem_evict_chunk() 409 migrate_device_finalize(src_pfns, dst_pfns, npages); in nouveau_dmem_evict_chunk() 410 kfree(src_pfns); in nouveau_dmem_evict_chunk()
|