Lines Matching refs:pgd
93 spin_lock_irqsave(pgd_spinlock((mm)->pgd), flags);\
97 spin_unlock_irqrestore(pgd_spinlock((mm)->pgd), flags);\
346 #define pgd_page_vaddr(pgd) ((unsigned long) __va(pgd_address(pgd))) argument
347 #define pgd_page(pgd) virt_to_page((void *)pgd_page_vaddr(pgd)) argument
354 static inline void pgd_clear(pgd_t *pgd) { in pgd_clear() argument
356 if(pgd_flag(*pgd) & PxD_FLAG_ATTACHED) in pgd_clear()
361 __pgd_val_set(*pgd, 0); in pgd_clear()
369 static inline int pgd_none(pgd_t pgd) { return 0; } in pgd_none() argument
370 static inline int pgd_bad(pgd_t pgd) { return 0; } in pgd_bad() argument
371 static inline int pgd_present(pgd_t pgd) { return 1; } in pgd_present() argument
445 ((mm)->pgd + ((address) >> PGDIR_SHIFT))
490 static inline spinlock_t *pgd_spinlock(pgd_t *pgd) in pgd_spinlock() argument
492 if (unlikely(pgd == swapper_pg_dir)) in pgd_spinlock()
494 return (spinlock_t *)((char *)pgd + (PAGE_SIZE << (PGD_ALLOC_ORDER - 1))); in pgd_spinlock()
506 spin_lock_irqsave(pgd_spinlock(vma->vm_mm->pgd), flags); in ptep_test_and_clear_young()
509 spin_unlock_irqrestore(pgd_spinlock(vma->vm_mm->pgd), flags); in ptep_test_and_clear_young()
514 spin_unlock_irqrestore(pgd_spinlock(vma->vm_mm->pgd), flags); in ptep_test_and_clear_young()
524 spin_lock_irqsave(pgd_spinlock(mm->pgd), flags); in ptep_get_and_clear()
528 spin_unlock_irqrestore(pgd_spinlock(mm->pgd), flags); in ptep_get_and_clear()
536 spin_lock_irqsave(pgd_spinlock(mm->pgd), flags); in ptep_set_wrprotect()
539 spin_unlock_irqrestore(pgd_spinlock(mm->pgd), flags); in ptep_set_wrprotect()