Home
last modified time | relevance | path

Searched refs:n_pages (Results 1 – 5 of 5) sorted by relevance

/arch/xtensa/mm/
Dmmu.c21 static void * __init init_pmd(unsigned long vaddr, unsigned long n_pages) in init_pmd() argument
28 n_pages = ALIGN(n_pages, PTRS_PER_PTE); in init_pmd()
31 __func__, vaddr, n_pages); in init_pmd()
33 pte = alloc_bootmem_low_pages(n_pages * sizeof(pte_t)); in init_pmd()
35 for (i = 0; i < n_pages; ++i) in init_pmd()
38 for (i = 0; i < n_pages; i += PTRS_PER_PTE, ++pmd) { in init_pmd()
/arch/ia64/include/asm/
Duncached.h11 extern unsigned long uncached_alloc_page(int starting_nid, int n_pages);
12 extern void uncached_free_page(unsigned long uc_addr, int n_pages);
/arch/ia64/kernel/
Duncached.c185 unsigned long uncached_alloc_page(int starting_nid, int n_pages) in uncached_alloc_page() argument
206 n_pages * PAGE_SIZE); in uncached_alloc_page()
226 void uncached_free_page(unsigned long uc_addr, int n_pages) in uncached_free_page() argument
237 gen_pool_free(pool, uc_addr, n_pages * PAGE_SIZE); in uncached_free_page()
/arch/arc/include/asm/
Darcregs.h199 #define PAGES_TO_KB(n_pages) ((n_pages) << (PAGE_SHIFT - 10)) argument
200 #define PAGES_TO_MB(n_pages) (PAGES_TO_KB(n_pages) >> 10) argument
/arch/sh/mm/
Dcache-sh5.c149 int n_pages; in sh64_icache_inv_user_page_range() local
154 n_pages = ((end - start) >> PAGE_SHIFT); in sh64_icache_inv_user_page_range()
155 if (n_pages >= 64) { in sh64_icache_inv_user_page_range()
470 int n_pages = ((end - start) >> PAGE_SHIFT); in sh64_dcache_purge_user_range() local
472 if (n_pages >= 64 || ((start ^ (end - 1)) & PMD_MASK)) { in sh64_dcache_purge_user_range()