Lines Matching refs:dpage

541 	struct page *dpage = NULL;  in dmirror_devmem_alloc_page()  local
555 dpage = mdevice->free_pages; in dmirror_devmem_alloc_page()
556 mdevice->free_pages = dpage->zone_device_data; in dmirror_devmem_alloc_page()
561 if (!dmirror_allocate_chunk(mdevice, &dpage)) in dmirror_devmem_alloc_page()
565 dpage->zone_device_data = rpage; in dmirror_devmem_alloc_page()
566 get_page(dpage); in dmirror_devmem_alloc_page()
567 lock_page(dpage); in dmirror_devmem_alloc_page()
568 return dpage; in dmirror_devmem_alloc_page()
586 struct page *dpage; in dmirror_migrate_alloc_and_copy() local
598 dpage = dmirror_devmem_alloc_page(mdevice); in dmirror_migrate_alloc_and_copy()
599 if (!dpage) in dmirror_migrate_alloc_and_copy()
602 rpage = dpage->zone_device_data; in dmirror_migrate_alloc_and_copy()
616 *dst = migrate_pfn(page_to_pfn(dpage)); in dmirror_migrate_alloc_and_copy()
683 struct page *dpage; in dmirror_migrate_finalize_and_map() local
689 dpage = migrate_pfn_to_page(*dst); in dmirror_migrate_finalize_and_map()
690 if (!dpage) in dmirror_migrate_finalize_and_map()
697 entry = dpage->zone_device_data; in dmirror_migrate_finalize_and_map()
1125 struct page *dpage, *spage; in dmirror_devmem_fault_alloc_and_copy() local
1132 dpage = alloc_page_vma(GFP_HIGHUSER_MOVABLE, args->vma, addr); in dmirror_devmem_fault_alloc_and_copy()
1133 if (!dpage) in dmirror_devmem_fault_alloc_and_copy()
1136 lock_page(dpage); in dmirror_devmem_fault_alloc_and_copy()
1138 copy_highpage(dpage, spage); in dmirror_devmem_fault_alloc_and_copy()
1139 *dst = migrate_pfn(page_to_pfn(dpage)); in dmirror_devmem_fault_alloc_and_copy()