Lines Matching refs:mm

26 struct page *page_table_alloc_pgste(struct mm_struct *mm);
37 int crst_table_upgrade(struct mm_struct *mm, unsigned long limit);
39 static inline unsigned long check_asce_limit(struct mm_struct *mm, unsigned long addr, in check_asce_limit() argument
44 if (addr + len > mm->context.asce_limit && in check_asce_limit()
46 rc = crst_table_upgrade(mm, addr + len); in check_asce_limit()
53 static inline p4d_t *p4d_alloc_one(struct mm_struct *mm, unsigned long address) in p4d_alloc_one() argument
55 unsigned long *table = crst_table_alloc(mm); in p4d_alloc_one()
62 static inline void p4d_free(struct mm_struct *mm, p4d_t *p4d) in p4d_free() argument
64 if (!mm_p4d_folded(mm)) in p4d_free()
65 crst_table_free(mm, (unsigned long *) p4d); in p4d_free()
68 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long address) in pud_alloc_one() argument
70 unsigned long *table = crst_table_alloc(mm); in pud_alloc_one()
76 static inline void pud_free(struct mm_struct *mm, pud_t *pud) in pud_free() argument
78 if (!mm_pud_folded(mm)) in pud_free()
79 crst_table_free(mm, (unsigned long *) pud); in pud_free()
82 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long vmaddr) in pmd_alloc_one() argument
84 unsigned long *table = crst_table_alloc(mm); in pmd_alloc_one()
90 crst_table_free(mm, table); in pmd_alloc_one()
96 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free() argument
98 if (mm_pmd_folded(mm)) in pmd_free()
101 crst_table_free(mm, (unsigned long *) pmd); in pmd_free()
104 static inline void pgd_populate(struct mm_struct *mm, pgd_t *pgd, p4d_t *p4d) in pgd_populate() argument
109 static inline void p4d_populate(struct mm_struct *mm, p4d_t *p4d, pud_t *pud) in p4d_populate() argument
114 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate() argument
119 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc() argument
121 return (pgd_t *) crst_table_alloc(mm); in pgd_alloc()
124 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free() argument
126 crst_table_free(mm, (unsigned long *) pgd); in pgd_free()
129 static inline void pmd_populate(struct mm_struct *mm, in pmd_populate() argument
135 #define pmd_populate_kernel(mm, pmd, pte) pmd_populate(mm, pmd, pte) argument
140 #define pte_alloc_one_kernel(mm) ((pte_t *)page_table_alloc(mm)) argument
141 #define pte_alloc_one(mm) ((pte_t *)page_table_alloc(mm)) argument
143 #define pte_free_kernel(mm, pte) page_table_free(mm, (unsigned long *) pte) argument
144 #define pte_free(mm, pte) page_table_free(mm, (unsigned long *) pte) argument