Lines Matching refs:mm
46 pte_t *huge_pte_alloc(struct mm_struct *mm, in huge_pte_alloc() argument
61 pgd = pgd_offset(mm, addr); in huge_pte_alloc()
62 pud = pud_alloc(mm, pgd, addr); in huge_pte_alloc()
64 pmd = pmd_alloc(mm, pud, addr); in huge_pte_alloc()
66 pte = pte_alloc_map(mm, NULL, pmd, addr); in huge_pte_alloc()
71 pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long addr) in huge_pte_offset() argument
80 pgd = pgd_offset(mm, addr); in huge_pte_offset()
96 static inline void purge_tlb_entries_huge(struct mm_struct *mm, unsigned long addr) in purge_tlb_entries_huge() argument
108 purge_tlb_entries(mm, addr); in purge_tlb_entries_huge()
114 static void __set_huge_pte_at(struct mm_struct *mm, unsigned long addr, in __set_huge_pte_at() argument
131 purge_tlb_entries_huge(mm, addr_start); in __set_huge_pte_at()
134 void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, in set_huge_pte_at() argument
140 __set_huge_pte_at(mm, addr, ptep, entry); in set_huge_pte_at()
145 pte_t huge_ptep_get_and_clear(struct mm_struct *mm, unsigned long addr, in huge_ptep_get_and_clear() argument
153 __set_huge_pte_at(mm, addr, ptep, __pte(0)); in huge_ptep_get_and_clear()
160 void huge_ptep_set_wrprotect(struct mm_struct *mm, in huge_ptep_set_wrprotect() argument
168 __set_huge_pte_at(mm, addr, ptep, pte_wrprotect(old_pte)); in huge_ptep_set_wrprotect()