Lines Matching refs:mm

26 struct page *page_table_alloc_pgste(struct mm_struct *mm);
37 static inline unsigned long pgd_entry_type(struct mm_struct *mm) in pgd_entry_type() argument
39 if (mm->context.asce_limit <= _REGION3_SIZE) in pgd_entry_type()
41 if (mm->context.asce_limit <= _REGION2_SIZE) in pgd_entry_type()
43 if (mm->context.asce_limit <= _REGION1_SIZE) in pgd_entry_type()
48 int crst_table_upgrade(struct mm_struct *mm, unsigned long limit);
51 static inline p4d_t *p4d_alloc_one(struct mm_struct *mm, unsigned long address) in p4d_alloc_one() argument
53 unsigned long *table = crst_table_alloc(mm); in p4d_alloc_one()
59 #define p4d_free(mm, p4d) crst_table_free(mm, (unsigned long *) p4d) argument
61 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long address) in pud_alloc_one() argument
63 unsigned long *table = crst_table_alloc(mm); in pud_alloc_one()
68 #define pud_free(mm, pud) crst_table_free(mm, (unsigned long *) pud) argument
70 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long vmaddr) in pmd_alloc_one() argument
72 unsigned long *table = crst_table_alloc(mm); in pmd_alloc_one()
78 crst_table_free(mm, table); in pmd_alloc_one()
84 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free() argument
87 crst_table_free(mm, (unsigned long *) pmd); in pmd_free()
90 static inline void pgd_populate(struct mm_struct *mm, pgd_t *pgd, p4d_t *p4d) in pgd_populate() argument
95 static inline void p4d_populate(struct mm_struct *mm, p4d_t *p4d, pud_t *pud) in p4d_populate() argument
100 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate() argument
105 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc() argument
107 unsigned long *table = crst_table_alloc(mm); in pgd_alloc()
111 if (mm->context.asce_limit == _REGION3_SIZE) { in pgd_alloc()
114 crst_table_free(mm, table); in pgd_alloc()
121 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free() argument
123 if (mm->context.asce_limit == _REGION3_SIZE) in pgd_free()
125 crst_table_free(mm, (unsigned long *) pgd); in pgd_free()
128 static inline void pmd_populate(struct mm_struct *mm, in pmd_populate() argument
134 #define pmd_populate_kernel(mm, pmd, pte) pmd_populate(mm, pmd, pte) argument
142 #define pte_alloc_one_kernel(mm, vmaddr) ((pte_t *) page_table_alloc(mm)) argument
143 #define pte_alloc_one(mm, vmaddr) ((pte_t *) page_table_alloc(mm)) argument
145 #define pte_free_kernel(mm, pte) page_table_free(mm, (unsigned long *) pte) argument
146 #define pte_free(mm, pte) page_table_free(mm, (unsigned long *) pte) argument