Lines Matching refs:ptl
51 pvmw->ptl = pte_lockptr(pvmw->vma->vm_mm, pvmw->pmd); in map_pte()
52 spin_lock(pvmw->ptl); in map_pte()
177 pvmw->ptl = huge_pte_lock(hstate, mm, pvmw->pte); in page_vma_mapped_walk()
214 pvmw->ptl = pmd_lock(mm, pvmw->pmd); in page_vma_mapped_walk()
236 spin_unlock(pvmw->ptl); in page_vma_mapped_walk()
237 pvmw->ptl = NULL; in page_vma_mapped_walk()
247 spinlock_t *ptl = pmd_lock(mm, pvmw->pmd); in page_vma_mapped_walk() local
249 spin_unlock(ptl); in page_vma_mapped_walk()
266 if (pvmw->ptl) { in page_vma_mapped_walk()
267 spin_unlock(pvmw->ptl); in page_vma_mapped_walk()
268 pvmw->ptl = NULL; in page_vma_mapped_walk()
275 if ((pvmw->flags & PVMW_SYNC) && !pvmw->ptl) { in page_vma_mapped_walk()
276 pvmw->ptl = pte_lockptr(mm, pvmw->pmd); in page_vma_mapped_walk()
277 spin_lock(pvmw->ptl); in page_vma_mapped_walk()
281 if (!pvmw->ptl) { in page_vma_mapped_walk()
282 pvmw->ptl = pte_lockptr(mm, pvmw->pmd); in page_vma_mapped_walk()
283 spin_lock(pvmw->ptl); in page_vma_mapped_walk()