Lines Matching refs:dpage
608 struct page *dpage = NULL; in dmirror_devmem_alloc_page() local
625 dpage = mdevice->free_pages; in dmirror_devmem_alloc_page()
626 mdevice->free_pages = dpage->zone_device_data; in dmirror_devmem_alloc_page()
631 if (dmirror_allocate_chunk(mdevice, &dpage)) in dmirror_devmem_alloc_page()
635 zone_device_page_init(dpage); in dmirror_devmem_alloc_page()
636 dpage->zone_device_data = rpage; in dmirror_devmem_alloc_page()
637 return dpage; in dmirror_devmem_alloc_page()
656 struct page *dpage; in dmirror_migrate_alloc_and_copy() local
672 dpage = dmirror_devmem_alloc_page(mdevice); in dmirror_migrate_alloc_and_copy()
673 if (!dpage) in dmirror_migrate_alloc_and_copy()
676 rpage = BACKING_PAGE(dpage); in dmirror_migrate_alloc_and_copy()
691 page_to_pfn(spage), page_to_pfn(dpage)); in dmirror_migrate_alloc_and_copy()
692 *dst = migrate_pfn(page_to_pfn(dpage)); in dmirror_migrate_alloc_and_copy()
759 struct page *dpage; in dmirror_migrate_finalize_and_map() local
765 dpage = migrate_pfn_to_page(*dst); in dmirror_migrate_finalize_and_map()
766 if (!dpage) in dmirror_migrate_finalize_and_map()
769 entry = BACKING_PAGE(dpage); in dmirror_migrate_finalize_and_map()
866 struct page *dpage, *spage; in dmirror_devmem_fault_alloc_and_copy() local
876 dpage = alloc_page_vma(GFP_HIGHUSER_MOVABLE, args->vma, addr); in dmirror_devmem_fault_alloc_and_copy()
877 if (!dpage) in dmirror_devmem_fault_alloc_and_copy()
880 page_to_pfn(spage), page_to_pfn(dpage)); in dmirror_devmem_fault_alloc_and_copy()
882 lock_page(dpage); in dmirror_devmem_fault_alloc_and_copy()
884 copy_highpage(dpage, spage); in dmirror_devmem_fault_alloc_and_copy()
885 *dst = migrate_pfn(page_to_pfn(dpage)); in dmirror_devmem_fault_alloc_and_copy()
1240 struct page *dpage, *spage; in dmirror_device_evict_chunk() local
1250 dpage = alloc_page(GFP_HIGHUSER_MOVABLE | __GFP_NOFAIL); in dmirror_device_evict_chunk()
1251 lock_page(dpage); in dmirror_device_evict_chunk()
1252 copy_highpage(dpage, spage); in dmirror_device_evict_chunk()
1253 dst_pfns[i] = migrate_pfn(page_to_pfn(dpage)); in dmirror_device_evict_chunk()