Home
last modified time | relevance | path

Searched refs:old_pmd (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.4/arch/powerpc/mm/book3s64/
Dhash_hugepage.c28 unsigned long old_pmd, new_pmd; in __hash_page_thp() local
38 old_pmd = pmd_val(pmd); in __hash_page_thp()
40 if (unlikely(old_pmd & H_PAGE_BUSY)) in __hash_page_thp()
43 if (unlikely(!check_pte_access(access, old_pmd))) in __hash_page_thp()
49 new_pmd = old_pmd | H_PAGE_BUSY | _PAGE_ACCESSED; in __hash_page_thp()
52 } while (!pmd_xchg(pmdp, __pmd(old_pmd), __pmd(new_pmd))); in __hash_page_thp()
57 if (!(old_pmd & (H_PAGE_THP_HUGE | _PAGE_DEVMAP))) in __hash_page_thp()
87 if ((old_pmd & H_PAGE_HASHPTE) && !(old_pmd & H_PAGE_COMBO)) { in __hash_page_thp()
133 pa = pmd_pfn(__pmd(old_pmd)) << PAGE_SHIFT; in __hash_page_thp()
165 *pmdp = __pmd(old_pmd); in __hash_page_thp()
[all …]
Dhash_pgtable.c312 pmd_t *pmdp, unsigned long old_pmd) in hpte_do_hugepage_flush() argument
324 if (old_pmd & H_PAGE_COMBO) in hpte_do_hugepage_flush()
347 pmd_t old_pmd; in hash__pmdp_huge_get_and_clear() local
353 old_pmd = __pmd(old); in hash__pmdp_huge_get_and_clear()
377 return old_pmd; in hash__pmdp_huge_get_and_clear()
Dpgtable.c108 unsigned long old_pmd; in pmdp_invalidate() local
110 old_pmd = pmd_hugepage_update(vma->vm_mm, address, pmdp, _PAGE_PRESENT, _PAGE_INVALID); in pmdp_invalidate()
120 return __pmd(old_pmd); in pmdp_invalidate()
Dradix_pgtable.c1011 pmd_t old_pmd; in radix__pmdp_huge_get_and_clear() local
1015 old_pmd = __pmd(old); in radix__pmdp_huge_get_and_clear()
1027 return old_pmd; in radix__pmdp_huge_get_and_clear()
/Linux-v5.4/mm/
Dmremap.c115 static void move_ptes(struct vm_area_struct *vma, pmd_t *old_pmd, in move_ptes() argument
151 old_pte = pte_offset_map_lock(mm, old_pmd, old_addr, &old_ptl); in move_ptes()
197 pmd_t *old_pmd, pmd_t *new_pmd) in move_normal_pmd() argument
218 old_ptl = pmd_lock(vma->vm_mm, old_pmd); in move_normal_pmd()
224 pmd = *old_pmd; in move_normal_pmd()
225 pmd_clear(old_pmd); in move_normal_pmd()
247 pmd_t *old_pmd, *new_pmd; in move_page_tables() local
263 old_pmd = get_old_pmd(vma->vm_mm, old_addr); in move_page_tables()
264 if (!old_pmd) in move_page_tables()
269 if (is_swap_pmd(*old_pmd) || pmd_trans_huge(*old_pmd)) { in move_page_tables()
[all …]
Dhuge_memory.c1865 pmd_t *old_pmd, pmd_t *new_pmd) in move_huge_pmd() argument
1890 old_ptl = __pmd_trans_huge_lock(old_pmd, vma); in move_huge_pmd()
1895 pmd = pmdp_huge_get_and_clear(mm, old_addr, old_pmd); in move_huge_pmd()
1902 pgtable = pgtable_trans_huge_withdraw(mm, old_pmd); in move_huge_pmd()
2144 pmd_t old_pmd, _pmd; in __split_huge_pmd_locked() local
2209 old_pmd = pmdp_invalidate(vma, haddr, pmd); in __split_huge_pmd_locked()
2211 pmd_migration = is_pmd_migration_entry(old_pmd); in __split_huge_pmd_locked()
2215 entry = pmd_to_swp_entry(old_pmd); in __split_huge_pmd_locked()
2219 soft_dirty = pmd_swp_soft_dirty(old_pmd); in __split_huge_pmd_locked()
2221 page = pmd_page(old_pmd); in __split_huge_pmd_locked()
[all …]
/Linux-v5.4/arch/powerpc/include/asm/book3s/64/
Dhash.h236 pmd_t *pmdp, unsigned long old_pmd);
240 unsigned long old_pmd) in hpte_do_hugepage_flush() argument
/Linux-v5.4/include/asm-generic/
Dpgtable.h258 pmd_t old_pmd = *pmdp; in pmdp_set_wrprotect() local
259 set_pmd_at(mm, address, pmdp, pmd_wrprotect(old_pmd)); in pmdp_set_wrprotect()
321 pmd_t old_pmd = *pmdp; in generic_pmdp_establish() local
323 return old_pmd; in generic_pmdp_establish()
/Linux-v5.4/arch/arm64/mm/
Dmmu.c208 pmd_t old_pmd = READ_ONCE(*pmdp); in init_pmd() local
221 BUG_ON(!pgattr_change_is_safe(pmd_val(old_pmd), in init_pmd()
227 BUG_ON(pmd_val(old_pmd) != 0 && in init_pmd()
228 pmd_val(old_pmd) != READ_ONCE(pmd_val(*pmdp))); in init_pmd()
/Linux-v5.4/virt/kvm/arm/
Dmmu.c274 pmd_t old_pmd = *pmd; in unmap_stage2_pmds() local
279 kvm_flush_dcache_pmd(old_pmd); in unmap_stage2_pmds()
1053 pmd_t *pmd, old_pmd; in stage2_set_pmd_huge() local
1059 old_pmd = *pmd; in stage2_set_pmd_huge()
1071 if (pmd_val(old_pmd) == pmd_val(*new_pmd)) in stage2_set_pmd_huge()
1074 if (pmd_present(old_pmd)) { in stage2_set_pmd_huge()
1088 if (!pmd_thp_or_huge(old_pmd)) { in stage2_set_pmd_huge()
1103 WARN_ON_ONCE(pmd_pfn(old_pmd) != pmd_pfn(*new_pmd)); in stage2_set_pmd_huge()
/Linux-v5.4/include/linux/
Dhuge_mm.h46 pmd_t *old_pmd, pmd_t *new_pmd);