Lines Matching refs:pte
39 pte_t *pte; in pte_alloc_one_kernel() local
41 pte = (pte_t *)__get_free_page(PGALLOC_GFP); in pte_alloc_one_kernel()
42 if (pte) in pte_alloc_one_kernel()
43 clean_dcache_area(pte, PTRS_PER_PTE * sizeof(pte_t)); in pte_alloc_one_kernel()
45 return pte; in pte_alloc_one_kernel()
51 struct page *pte; in pte_alloc_one() local
53 pte = alloc_pages(PGALLOC_GFP, 0); in pte_alloc_one()
54 if (!pte) in pte_alloc_one()
56 if (!PageHighMem(pte)) { in pte_alloc_one()
57 void *page = page_address(pte); in pte_alloc_one()
60 if (!pgtable_page_ctor(pte)) { in pte_alloc_one()
61 __free_page(pte); in pte_alloc_one()
64 return pte; in pte_alloc_one()
70 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel() argument
72 if (pte) in pte_free_kernel()
73 free_page((unsigned long)pte); in pte_free_kernel()
76 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free() argument
78 pgtable_page_dtor(pte); in pte_free()
79 __free_page(pte); in pte_free()