Lines Matching refs:pmd
111 pmd_t *pmd; in remove_migration_pte() local
121 pmd = mm_find_pmd(mm, addr); in remove_migration_pte()
122 if (!pmd) in remove_migration_pte()
125 ptep = pte_offset_map(pmd, addr); in remove_migration_pte()
132 ptl = pte_lockptr(mm, pmd); in remove_migration_pte()
268 void migration_entry_wait(struct mm_struct *mm, pmd_t *pmd, in migration_entry_wait() argument
271 spinlock_t *ptl = pte_lockptr(mm, pmd); in migration_entry_wait()
272 pte_t *ptep = pte_offset_map(pmd, address); in migration_entry_wait()
1693 bool pmd_trans_migrating(pmd_t pmd) in pmd_trans_migrating() argument
1695 struct page *page = pmd_page(pmd); in pmd_trans_migrating()
1699 void wait_migrate_huge_page(struct anon_vma *anon_vma, pmd_t *pmd) in wait_migrate_huge_page() argument
1701 struct page *page = pmd_page(*pmd); in wait_migrate_huge_page()
1768 pmd_t *pmd, pmd_t entry, in migrate_misplaced_transhuge_page() argument
1816 ptl = pmd_lock(mm, pmd); in migrate_misplaced_transhuge_page()
1817 if (unlikely(!pmd_same(*pmd, entry) || page_count(page) != 2)) { in migrate_misplaced_transhuge_page()
1841 orig_entry = *pmd; in migrate_misplaced_transhuge_page()
1855 pmdp_clear_flush(vma, mmun_start, pmd); in migrate_misplaced_transhuge_page()
1856 set_pmd_at(mm, mmun_start, pmd, entry); in migrate_misplaced_transhuge_page()
1861 set_pmd_at(mm, mmun_start, pmd, orig_entry); in migrate_misplaced_transhuge_page()
1895 ptl = pmd_lock(mm, pmd); in migrate_misplaced_transhuge_page()
1896 if (pmd_same(*pmd, entry)) { in migrate_misplaced_transhuge_page()
1898 set_pmd_at(mm, mmun_start, pmd, entry); in migrate_misplaced_transhuge_page()