Lines Matching defs:entry

111 		swp_entry_t entry;
127 * page table entry. Other special swap entries are not
130 entry = pte_to_swp_entry(pte);
131 if (!is_device_private_entry(entry))
134 page = pfn_swap_entry_to_page(entry);
142 if (is_writable_device_private_entry(entry))
187 * If we can lock the page it's safe to set up a migration entry
189 * single process setting up the migration entry now is an
219 /* Setup special migration page table entry */
221 entry = make_writable_migration_entry(
224 entry = make_readable_exclusive_migration_entry(
227 entry = make_readable_migration_entry(
231 entry = make_migration_entry_young(entry);
233 entry = make_migration_entry_dirty(entry);
235 swp_pte = swp_entry_to_pte(entry);
434 * migrate_vma_unmap() - replace page mapping with special migration pte entry
438 * special migration pte entry and check if it has been pinned. Pinned pages are
462 * corresponding src array entry. Then restores any pages that are pinned, by
468 * corresponding entry in the dst array with the pfn value of the destination
483 * properly set the destination entry like for regular migration. Note that
488 * After that, the callers must call migrate_vma_pages() to go over each entry
490 * set. If the corresponding entry in dst array has MIGRATE_PFN_VALID flag set,
496 * At this point all successfully migrated pages have an entry in the src
498 * array entry with MIGRATE_PFN_VALID flag set.
502 * have the MIGRATE_PFN_MIGRATE flag set for their src array entry.
571 pte_t entry;
618 entry = swp_entry_to_pte(swp_entry);
625 entry = mk_pte(page, vma->vm_page_prot);
627 entry = pte_mkwrite(pte_mkdirty(entry), vma);
663 set_pte_at_notify(mm, addr, ptep, entry);
667 set_pte_at(mm, addr, ptep, entry);
859 * migrate_vma_finalize() - restore CPU page table entry
862 * This replaces the special migration pte entry with either a mapping to the