Home
last modified time | relevance | path

Searched refs:numpages (Results 1 – 17 of 17) sorted by relevance

/arch/x86/include/asm/
Dcacheflush.h36 int _set_memory_uc(unsigned long addr, int numpages);
37 int _set_memory_wc(unsigned long addr, int numpages);
38 int _set_memory_wt(unsigned long addr, int numpages);
39 int _set_memory_wb(unsigned long addr, int numpages);
40 int set_memory_uc(unsigned long addr, int numpages);
41 int set_memory_wc(unsigned long addr, int numpages);
42 int set_memory_wt(unsigned long addr, int numpages);
43 int set_memory_wb(unsigned long addr, int numpages);
44 int set_memory_x(unsigned long addr, int numpages);
45 int set_memory_nx(unsigned long addr, int numpages);
[all …]
Dpgtable_types.h508 unsigned numpages, unsigned long page_flags);
/arch/arm/mm/
Dpageattr.c37 static int change_memory_common(unsigned long addr, int numpages, in change_memory_common() argument
41 unsigned long size = PAGE_SIZE*numpages; in change_memory_common()
52 if (!numpages) in change_memory_common()
71 int set_memory_ro(unsigned long addr, int numpages) in set_memory_ro() argument
73 return change_memory_common(addr, numpages, in set_memory_ro()
78 int set_memory_rw(unsigned long addr, int numpages) in set_memory_rw() argument
80 return change_memory_common(addr, numpages, in set_memory_rw()
85 int set_memory_nx(unsigned long addr, int numpages) in set_memory_nx() argument
87 return change_memory_common(addr, numpages, in set_memory_nx()
92 int set_memory_x(unsigned long addr, int numpages) in set_memory_x() argument
[all …]
/arch/arm64/mm/
Dpageattr.c59 static int change_memory_common(unsigned long addr, int numpages, in change_memory_common() argument
63 unsigned long size = PAGE_SIZE*numpages; in change_memory_common()
92 if (!numpages) in change_memory_common()
98 int set_memory_ro(unsigned long addr, int numpages) in set_memory_ro() argument
100 return change_memory_common(addr, numpages, in set_memory_ro()
105 int set_memory_rw(unsigned long addr, int numpages) in set_memory_rw() argument
107 return change_memory_common(addr, numpages, in set_memory_rw()
112 int set_memory_nx(unsigned long addr, int numpages) in set_memory_nx() argument
114 return change_memory_common(addr, numpages, in set_memory_nx()
120 int set_memory_x(unsigned long addr, int numpages) in set_memory_x() argument
[all …]
/arch/x86/mm/
Dpageattr.c36 unsigned long numpages; member
184 static void cpa_flush_range(unsigned long start, int numpages, int cache) in cpa_flush_range() argument
203 for (i = 0, addr = start; i < numpages; i++, addr += PAGE_SIZE) { in cpa_flush_range()
214 static void cpa_flush_array(unsigned long *start, int numpages, int cache, in cpa_flush_array() argument
218 unsigned long do_wbinvd = cache && numpages >= 1024; /* 4M threshold */ in cpa_flush_array()
233 for (i = 0; i < numpages; i++) { in cpa_flush_array()
484 unsigned long nextpage_addr, numpages, pmask, psize, addr, pfn, old_pfn; in try_preserve_large_page() local
524 numpages = (nextpage_addr - address) >> PAGE_SHIFT; in try_preserve_large_page()
525 if (numpages < cpa->numpages) in try_preserve_large_page()
526 cpa->numpages = numpages; in try_preserve_large_page()
[all …]
/arch/s390/include/asm/
Dcacheflush.h7 int set_memory_ro(unsigned long addr, int numpages);
8 int set_memory_rw(unsigned long addr, int numpages);
9 int set_memory_nx(unsigned long addr, int numpages);
10 int set_memory_x(unsigned long addr, int numpages);
/arch/arm64/include/asm/
Dcacheflush.h148 int set_memory_ro(unsigned long addr, int numpages);
149 int set_memory_rw(unsigned long addr, int numpages);
150 int set_memory_x(unsigned long addr, int numpages);
151 int set_memory_nx(unsigned long addr, int numpages);
/arch/arm/include/asm/
Dcacheflush.h482 int set_memory_ro(unsigned long addr, int numpages);
483 int set_memory_rw(unsigned long addr, int numpages);
484 int set_memory_x(unsigned long addr, int numpages);
485 int set_memory_nx(unsigned long addr, int numpages);
487 static inline int set_memory_ro(unsigned long addr, int numpages) { return 0; } in set_memory_ro() argument
488 static inline int set_memory_rw(unsigned long addr, int numpages) { return 0; } in set_memory_rw() argument
489 static inline int set_memory_x(unsigned long addr, int numpages) { return 0; } in set_memory_x() argument
490 static inline int set_memory_nx(unsigned long addr, int numpages) { return 0; } in set_memory_nx() argument
/arch/s390/mm/
Dpageattr.c274 int set_memory_ro(unsigned long addr, int numpages) in set_memory_ro() argument
281 return change_page_attr(addr, addr + numpages * PAGE_SIZE, cpa); in set_memory_ro()
284 int set_memory_rw(unsigned long addr, int numpages) in set_memory_rw() argument
291 return change_page_attr(addr, addr + numpages * PAGE_SIZE, cpa); in set_memory_rw()
295 int set_memory_nx(unsigned long addr, int numpages) in set_memory_nx() argument
300 int set_memory_x(unsigned long addr, int numpages) in set_memory_x() argument
322 void __kernel_map_pages(struct page *page, int numpages, int enable) in __kernel_map_pages() argument
331 for (i = 0; i < numpages;) { in __kernel_map_pages()
339 nr = min(numpages - i, nr); in __kernel_map_pages()
/arch/alpha/mm/
Dnuma.c50 cluster->start_pfn + cluster->numpages); in show_mem_layout()
88 end = start + cluster->numpages; in setup_memory_node()
99 cluster->start_pfn + cluster->numpages); in setup_memory_node()
173 end = start + cluster->numpages; in setup_memory_node()
213 end = cluster->start_pfn + cluster->numpages; in setup_memory_node()
/arch/powerpc/mm/
Dpgtable_32.c391 static int change_page_attr(struct page *page, int numpages, pgprot_t prot) in change_page_attr() argument
397 for (i = 0; i < numpages; i++, page++) { in change_page_attr()
407 void __kernel_map_pages(struct page *page, int numpages, int enable) in __kernel_map_pages() argument
412 change_page_attr(page, numpages, enable ? PAGE_KERNEL : __pgprot(0)); in __kernel_map_pages()
Dhash_utils_64.c1779 void __kernel_map_pages(struct page *page, int numpages, int enable) in __kernel_map_pages() argument
1785 for (i = 0; i < numpages; i++, page++) { in __kernel_map_pages()
/arch/cris/include/asm/
Dcacheflush.h30 int change_page_attr(struct page *page, int numpages, pgprot_t prot);
/arch/alpha/include/asm/
Dhwrpb.h142 unsigned long numpages; member
/arch/alpha/kernel/
Dsetup.c326 cluster->start_pfn + cluster->numpages); in setup_memory()
334 end = cluster->start_pfn + cluster->numpages; in setup_memory()
384 end = start + cluster->numpages; in setup_memory()
418 end = cluster->start_pfn + cluster->numpages; in setup_memory()
483 pfn < cluster->start_pfn + cluster->numpages) { in page_is_ram()
/arch/x86/kernel/
Dpci-calgary_64.c658 unsigned int numpages; in calgary_reserve_mem_region() local
663 numpages = ((limit - start) >> PAGE_SHIFT); in calgary_reserve_mem_region()
664 iommu_range_reserve(pci_iommu(dev->bus), start, numpages); in calgary_reserve_mem_region()
/arch/sparc/mm/
Dinit_64.c1772 void __kernel_map_pages(struct page *page, int numpages, int enable) in __kernel_map_pages() argument
1775 unsigned long phys_end = phys_start + (numpages * PAGE_SIZE); in __kernel_map_pages()