Home
last modified time | relevance | path

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

/arch/x86/include/asm/
Dset_memory.h37 int _set_memory_uc(unsigned long addr, int numpages);
38 int _set_memory_wc(unsigned long addr, int numpages);
39 int _set_memory_wt(unsigned long addr, int numpages);
40 int _set_memory_wb(unsigned long addr, int numpages);
41 int set_memory_uc(unsigned long addr, int numpages);
42 int set_memory_wc(unsigned long addr, int numpages);
43 int set_memory_wt(unsigned long addr, int numpages);
44 int set_memory_wb(unsigned long addr, int numpages);
45 int set_memory_np(unsigned long addr, int numpages);
46 int set_memory_4k(unsigned long addr, int numpages);
[all …]
Dpgtable_types.h544 unsigned numpages, unsigned long page_flags);
/arch/s390/include/asm/
Dset_memory.h10 int __set_memory(unsigned long addr, int numpages, unsigned long flags);
12 static inline int set_memory_ro(unsigned long addr, int numpages) in set_memory_ro() argument
14 return __set_memory(addr, numpages, SET_MEMORY_RO); in set_memory_ro()
17 static inline int set_memory_rw(unsigned long addr, int numpages) in set_memory_rw() argument
19 return __set_memory(addr, numpages, SET_MEMORY_RW); in set_memory_rw()
22 static inline int set_memory_nx(unsigned long addr, int numpages) in set_memory_nx() argument
24 return __set_memory(addr, numpages, SET_MEMORY_NX); in set_memory_nx()
27 static inline int set_memory_x(unsigned long addr, int numpages) in set_memory_x() argument
29 return __set_memory(addr, numpages, SET_MEMORY_X); in set_memory_x()
/arch/arm/include/asm/
Dset_memory.h13 int set_memory_ro(unsigned long addr, int numpages);
14 int set_memory_rw(unsigned long addr, int numpages);
15 int set_memory_x(unsigned long addr, int numpages);
16 int set_memory_nx(unsigned long addr, int numpages);
18 static inline int set_memory_ro(unsigned long addr, int numpages) { return 0; } in set_memory_ro() argument
19 static inline int set_memory_rw(unsigned long addr, int numpages) { return 0; } in set_memory_rw() argument
20 static inline int set_memory_x(unsigned long addr, int numpages) { return 0; } in set_memory_x() argument
21 static inline int set_memory_nx(unsigned long addr, int numpages) { return 0; } in set_memory_nx() argument
/arch/arm64/mm/
Dpageattr.c60 static int change_memory_common(unsigned long addr, int numpages, in change_memory_common() argument
64 unsigned long size = PAGE_SIZE*numpages; in change_memory_common()
93 if (!numpages) in change_memory_common()
99 int set_memory_ro(unsigned long addr, int numpages) in set_memory_ro() argument
101 return change_memory_common(addr, numpages, in set_memory_ro()
106 int set_memory_rw(unsigned long addr, int numpages) in set_memory_rw() argument
108 return change_memory_common(addr, numpages, in set_memory_rw()
113 int set_memory_nx(unsigned long addr, int numpages) in set_memory_nx() argument
115 return change_memory_common(addr, numpages, in set_memory_nx()
121 int set_memory_x(unsigned long addr, int numpages) in set_memory_x() argument
[all …]
/arch/x86/mm/
Dpageattr.c37 unsigned long numpages; member
190 static void cpa_flush_range(unsigned long start, int numpages, int cache) in cpa_flush_range() argument
209 for (i = 0, addr = start; i < numpages; i++, addr += PAGE_SIZE) { in cpa_flush_range()
220 static void cpa_flush_array(unsigned long *start, int numpages, int cache, in cpa_flush_array() argument
236 unsigned long do_wbinvd = cache && numpages >= 1024; /* 4M threshold */ in cpa_flush_array()
252 for (i = 0; i < numpages; i++) { in cpa_flush_array()
521 unsigned long nextpage_addr, numpages, pmask, psize, addr, pfn, old_pfn; in try_preserve_large_page() local
561 numpages = (nextpage_addr - address) >> PAGE_SHIFT; in try_preserve_large_page()
562 if (numpages < cpa->numpages) in try_preserve_large_page()
563 cpa->numpages = numpages; in try_preserve_large_page()
[all …]
/arch/arm/mm/
Dpageattr.c45 static int change_memory_common(unsigned long addr, int numpages, in change_memory_common() argument
49 unsigned long end = PAGE_ALIGN(addr) + numpages * PAGE_SIZE; in change_memory_common()
73 int set_memory_ro(unsigned long addr, int numpages) in set_memory_ro() argument
75 return change_memory_common(addr, numpages, in set_memory_ro()
80 int set_memory_rw(unsigned long addr, int numpages) in set_memory_rw() argument
82 return change_memory_common(addr, numpages, in set_memory_rw()
87 int set_memory_nx(unsigned long addr, int numpages) in set_memory_nx() argument
89 return change_memory_common(addr, numpages, in set_memory_nx()
94 int set_memory_x(unsigned long addr, int numpages) in set_memory_x() argument
96 return change_memory_common(addr, numpages, in set_memory_x()
/arch/powerpc/mm/
Dpgtable_32.c351 static int change_page_attr(struct page *page, int numpages, pgprot_t prot) in change_page_attr() argument
358 for (i = 0; i < numpages; i++, page++) { in change_page_attr()
373 unsigned long numpages = PFN_UP((unsigned long)_einittext) - in mark_initmem_nx() local
376 change_page_attr(page, numpages, PAGE_KERNEL); in mark_initmem_nx()
383 unsigned long numpages; in mark_rodata_ro() local
386 numpages = PFN_UP((unsigned long)_etext) - in mark_rodata_ro()
389 change_page_attr(page, numpages, PAGE_KERNEL_ROX); in mark_rodata_ro()
395 numpages = PFN_UP((unsigned long)__init_begin) - in mark_rodata_ro()
398 change_page_attr(page, numpages, PAGE_KERNEL_RO); in mark_rodata_ro()
403 void __kernel_map_pages(struct page *page, int numpages, int enable) in __kernel_map_pages() argument
[all …]
Dhash_utils_64.c1814 void __kernel_map_pages(struct page *page, int numpages, int enable) in __kernel_map_pages() argument
1820 for (i = 0; i < numpages; i++, page++) { in __kernel_map_pages()
/arch/alpha/mm/
Dnuma.c51 cluster->start_pfn + cluster->numpages); in show_mem_layout()
89 end = start + cluster->numpages; in setup_memory_node()
100 cluster->start_pfn + cluster->numpages); in setup_memory_node()
174 end = start + cluster->numpages; in setup_memory_node()
214 end = cluster->start_pfn + cluster->numpages; in setup_memory_node()
/arch/s390/mm/
Dpageattr.c312 int __set_memory(unsigned long addr, int numpages, unsigned long flags) in __set_memory() argument
319 return change_page_attr(addr, addr + numpages * PAGE_SIZE, flags); in __set_memory()
339 void __kernel_map_pages(struct page *page, int numpages, int enable) in __kernel_map_pages() argument
349 for (i = 0; i < numpages;) { in __kernel_map_pages()
358 nr = min(numpages - i, nr); in __kernel_map_pages()
/arch/cris/include/asm/
Dcacheflush.h31 int change_page_attr(struct page *page, int numpages, pgprot_t prot);
/arch/arm64/include/asm/
Dcacheflush.h155 int set_memory_valid(unsigned long addr, int numpages, int enable);
/arch/alpha/include/asm/
Dhwrpb.h143 unsigned long numpages; member
/arch/alpha/kernel/
Dsetup.c327 cluster->start_pfn + cluster->numpages); in setup_memory()
335 end = cluster->start_pfn + cluster->numpages; in setup_memory()
385 end = start + cluster->numpages; in setup_memory()
419 end = cluster->start_pfn + cluster->numpages; in setup_memory()
484 pfn < cluster->start_pfn + cluster->numpages) { in page_is_ram()
/arch/x86/kernel/
Dpci-calgary_64.c667 unsigned int numpages; in calgary_reserve_mem_region() local
672 numpages = ((limit - start) >> PAGE_SHIFT); in calgary_reserve_mem_region()
673 iommu_range_reserve(pci_iommu(dev->bus), start, numpages); in calgary_reserve_mem_region()
/arch/sparc/mm/
Dinit_64.c1910 void __kernel_map_pages(struct page *page, int numpages, int enable) in __kernel_map_pages() argument
1913 unsigned long phys_end = phys_start + (numpages * PAGE_SIZE); in __kernel_map_pages()