Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/arch/x86/include/asm/
A Dset_memory.h10 int set_memory_rox(unsigned long addr, int numpages);
42 int _set_memory_uc(unsigned long addr, int numpages);
46 int set_memory_uc(unsigned long addr, int numpages);
47 int set_memory_wc(unsigned long addr, int numpages);
48 int set_memory_wb(unsigned long addr, int numpages);
49 int set_memory_np(unsigned long addr, int numpages);
50 int set_memory_4k(unsigned long addr, int numpages);
81 int set_pages_uc(struct page *page, int numpages);
82 int set_pages_wb(struct page *page, int numpages);
83 int set_pages_ro(struct page *page, int numpages);
[all …]
A Dmshyperv.h209 int hv_set_mem_host_visibility(unsigned long addr, int numpages, bool visible);
262 static inline int hv_set_mem_host_visibility(unsigned long addr, int numpages, in hv_set_mem_host_visibility() argument
/linux-6.3-rc2/arch/powerpc/include/asm/
A Dset_memory.h14 static inline int set_memory_ro(unsigned long addr, int numpages) in set_memory_ro() argument
16 return change_memory_attr(addr, numpages, SET_MEMORY_RO); in set_memory_ro()
19 static inline int set_memory_rw(unsigned long addr, int numpages) in set_memory_rw() argument
21 return change_memory_attr(addr, numpages, SET_MEMORY_RW); in set_memory_rw()
24 static inline int set_memory_nx(unsigned long addr, int numpages) in set_memory_nx() argument
26 return change_memory_attr(addr, numpages, SET_MEMORY_NX); in set_memory_nx()
29 static inline int set_memory_x(unsigned long addr, int numpages) in set_memory_x() argument
31 return change_memory_attr(addr, numpages, SET_MEMORY_X); in set_memory_x()
36 return change_memory_attr(addr, numpages, SET_MEMORY_NP); in set_memory_np()
39 static inline int set_memory_p(unsigned long addr, int numpages) in set_memory_p() argument
[all …]
A Dmem_encrypt.h18 int set_memory_encrypted(unsigned long addr, int numpages);
19 int set_memory_decrypted(unsigned long addr, int numpages);
/linux-6.3-rc2/arch/x86/mm/pat/
A Dset_memory.c880 if (numpages < cpa->numpages) in __should_split_large_page()
881 cpa->numpages = numpages; in __should_split_large_page()
953 if (address != lpaddr || cpa->numpages != numpages) in __should_split_large_page()
1741 unsigned long numpages = cpa->numpages; in __change_page_attr_set_clr() local
1788 cpa->numpages = numpages; in __change_page_attr_set_clr()
1841 cpa.numpages = numpages; in change_page_attr_set_clr()
2140 cpa.numpages = numpages; in __set_memory_enc_pgtable()
2317 .numpages = numpages, in __set_pages_p()
2336 .numpages = numpages, in __set_pages_np()
2415 .numpages = numpages, in kernel_map_pages_in_pgd()
[all …]
/linux-6.3-rc2/arch/s390/include/asm/
A Dset_memory.h15 int __set_memory(unsigned long addr, int numpages, unsigned long flags);
17 static inline int set_memory_ro(unsigned long addr, int numpages) in set_memory_ro() argument
19 return __set_memory(addr, numpages, SET_MEMORY_RO); in set_memory_ro()
22 static inline int set_memory_rw(unsigned long addr, int numpages) in set_memory_rw() argument
24 return __set_memory(addr, numpages, SET_MEMORY_RW); in set_memory_rw()
27 static inline int set_memory_nx(unsigned long addr, int numpages) in set_memory_nx() argument
29 return __set_memory(addr, numpages, SET_MEMORY_NX); in set_memory_nx()
32 static inline int set_memory_x(unsigned long addr, int numpages) in set_memory_x() argument
34 return __set_memory(addr, numpages, SET_MEMORY_X); in set_memory_x()
37 static inline int set_memory_4k(unsigned long addr, int numpages) in set_memory_4k() argument
[all …]
A Dmem_encrypt.h7 int set_memory_encrypted(unsigned long vaddr, int numpages);
8 int set_memory_decrypted(unsigned long vaddr, int numpages);
A Dkfence.h11 void __kernel_map_pages(struct page *page, int numpages, int enable);
/linux-6.3-rc2/arch/arm/include/asm/
A Dset_memory.h10 int set_memory_ro(unsigned long addr, int numpages);
11 int set_memory_rw(unsigned long addr, int numpages);
12 int set_memory_x(unsigned long addr, int numpages);
13 int set_memory_nx(unsigned long addr, int numpages);
14 int set_memory_valid(unsigned long addr, int numpages, int enable);
16 static inline int set_memory_ro(unsigned long addr, int numpages) { return 0; } in set_memory_ro() argument
17 static inline int set_memory_rw(unsigned long addr, int numpages) { return 0; } in set_memory_rw() argument
18 static inline int set_memory_x(unsigned long addr, int numpages) { return 0; } in set_memory_x() argument
19 static inline int set_memory_nx(unsigned long addr, int numpages) { return 0; } in set_memory_nx() argument
/linux-6.3-rc2/arch/arm/mm/
A Dpageattr.c58 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()
104 return __change_memory_common(addr, PAGE_SIZE * numpages, in set_memory_valid()
[all …]
/linux-6.3-rc2/arch/riscv/include/asm/
A Dset_memory.h14 int set_memory_ro(unsigned long addr, int numpages);
15 int set_memory_rw(unsigned long addr, int numpages);
16 int set_memory_x(unsigned long addr, int numpages);
17 int set_memory_nx(unsigned long addr, int numpages);
18 int set_memory_rw_nx(unsigned long addr, int numpages);
30 static inline int set_memory_ro(unsigned long addr, int numpages) { return 0; } in set_memory_ro() argument
31 static inline int set_memory_rw(unsigned long addr, int numpages) { return 0; } in set_memory_rw() argument
32 static inline int set_memory_x(unsigned long addr, int numpages) { return 0; } in set_memory_x() argument
33 static inline int set_memory_nx(unsigned long addr, int numpages) { return 0; } in set_memory_nx() argument
34 static inline int set_memory_rw_nx(unsigned long addr, int numpages) { return 0; } in set_memory_rw_nx() argument
/linux-6.3-rc2/include/linux/
A Dset_memory.h11 static inline int set_memory_ro(unsigned long addr, int numpages) { return 0; } in set_memory_ro() argument
12 static inline int set_memory_rw(unsigned long addr, int numpages) { return 0; } in set_memory_rw() argument
13 static inline int set_memory_x(unsigned long addr, int numpages) { return 0; } in set_memory_x() argument
14 static inline int set_memory_nx(unsigned long addr, int numpages) { return 0; } in set_memory_nx() argument
18 static inline int set_memory_rox(unsigned long addr, int numpages) in set_memory_rox() argument
20 int ret = set_memory_ro(addr, numpages); in set_memory_rox()
23 return set_memory_x(addr, numpages); in set_memory_rox()
70 static inline int set_memory_encrypted(unsigned long addr, int numpages) in set_memory_encrypted() argument
75 static inline int set_memory_decrypted(unsigned long addr, int numpages) in set_memory_decrypted() argument
A Dmm.h3261 extern void __kernel_poison_pages(struct page *page, int numpages);
3262 extern void __kernel_unpoison_pages(struct page *page, int numpages);
3277 static inline void kernel_poison_pages(struct page *page, int numpages) in kernel_poison_pages() argument
3280 __kernel_poison_pages(page, numpages); in kernel_poison_pages()
3282 static inline void kernel_unpoison_pages(struct page *page, int numpages) in kernel_unpoison_pages() argument
3285 __kernel_unpoison_pages(page, numpages); in kernel_unpoison_pages()
3291 static inline void kernel_poison_pages(struct page *page, int numpages) { } in kernel_poison_pages() argument
3292 static inline void kernel_unpoison_pages(struct page *page, int numpages) { } in kernel_unpoison_pages() argument
3337 extern void __kernel_map_pages(struct page *page, int numpages, int enable);
3342 __kernel_map_pages(page, numpages, 1); in debug_pagealloc_map_pages()
[all …]
/linux-6.3-rc2/arch/arm64/mm/
A Dpageattr.c68 unsigned long size = PAGE_SIZE * numpages; in change_memory_common()
98 if (!numpages) in change_memory_common()
123 int set_memory_ro(unsigned long addr, int numpages) in set_memory_ro() argument
125 return change_memory_common(addr, numpages, in set_memory_ro()
130 int set_memory_rw(unsigned long addr, int numpages) in set_memory_rw() argument
132 return change_memory_common(addr, numpages, in set_memory_rw()
137 int set_memory_nx(unsigned long addr, int numpages) in set_memory_nx() argument
139 return change_memory_common(addr, numpages, in set_memory_nx()
144 int set_memory_x(unsigned long addr, int numpages) in set_memory_x() argument
146 return change_memory_common(addr, numpages, in set_memory_x()
[all …]
/linux-6.3-rc2/arch/riscv/mm/
A Dpageattr.c112 unsigned long end = start + PAGE_SIZE * numpages; in __set_memory()
118 if (!numpages) in __set_memory()
131 int set_memory_rw_nx(unsigned long addr, int numpages) in set_memory_rw_nx() argument
137 int set_memory_ro(unsigned long addr, int numpages) in set_memory_ro() argument
139 return __set_memory(addr, numpages, __pgprot(_PAGE_READ), in set_memory_ro()
143 int set_memory_rw(unsigned long addr, int numpages) in set_memory_rw() argument
149 int set_memory_x(unsigned long addr, int numpages) in set_memory_x() argument
154 int set_memory_nx(unsigned long addr, int numpages) in set_memory_nx() argument
194 void __kernel_map_pages(struct page *page, int numpages, int enable) in __kernel_map_pages() argument
200 __set_memory((unsigned long)page_address(page), numpages, in __kernel_map_pages()
[all …]
/linux-6.3-rc2/arch/powerpc/mm/
A Dpgtable_32.c135 unsigned long numpages = PFN_UP((unsigned long)_einittext) - in mark_initmem_nx() local
141 set_memory_nx((unsigned long)_sinittext, numpages); in mark_initmem_nx()
142 set_memory_rw((unsigned long)_sinittext, numpages); in mark_initmem_nx()
149 unsigned long numpages; in mark_rodata_ro() local
165 numpages = PFN_UP((unsigned long)__end_rodata) - in mark_rodata_ro()
168 set_memory_ro((unsigned long)_stext, numpages); in mark_rodata_ro()
176 void __kernel_map_pages(struct page *page, int numpages, int enable) in __kernel_map_pages() argument
184 set_memory_p(addr, numpages); in __kernel_map_pages()
186 set_memory_np(addr, numpages); in __kernel_map_pages()
A Dpageattr.c70 int change_memory_attr(unsigned long addr, int numpages, long action) in change_memory_attr() argument
73 unsigned long size = numpages * PAGE_SIZE; in change_memory_attr()
75 if (!numpages) in change_memory_attr()
/linux-6.3-rc2/include/asm-generic/
A Dset_memory.h8 int set_memory_ro(unsigned long addr, int numpages);
9 int set_memory_rw(unsigned long addr, int numpages);
10 int set_memory_x(unsigned long addr, int numpages);
11 int set_memory_nx(unsigned long addr, int numpages);
/linux-6.3-rc2/arch/powerpc/platforms/pseries/
A Dsvm.c40 int set_memory_encrypted(unsigned long addr, int numpages) in set_memory_encrypted() argument
48 uv_unshare_page(PHYS_PFN(__pa(addr)), numpages); in set_memory_encrypted()
53 int set_memory_decrypted(unsigned long addr, int numpages) in set_memory_decrypted() argument
61 uv_share_page(PHYS_PFN(__pa(addr)), numpages); in set_memory_decrypted()
/linux-6.3-rc2/arch/s390/mm/
A Dinit.c115 int set_memory_encrypted(unsigned long vaddr, int numpages) in set_memory_encrypted() argument
120 for (i = 0; i < numpages; ++i) { in set_memory_encrypted()
127 int set_memory_decrypted(unsigned long vaddr, int numpages) in set_memory_decrypted() argument
131 for (i = 0; i < numpages; ++i) { in set_memory_decrypted()
A Dpageattr.c320 int __set_memory(unsigned long addr, int numpages, unsigned long flags) in __set_memory() argument
327 return change_page_attr(addr, addr + numpages * PAGE_SIZE, flags); in __set_memory()
347 void __kernel_map_pages(struct page *page, int numpages, int enable) in __kernel_map_pages() argument
353 for (i = 0; i < numpages;) { in __kernel_map_pages()
358 nr = min(numpages - i, nr); in __kernel_map_pages()
/linux-6.3-rc2/arch/arm64/include/asm/
A Dset_memory.h11 int set_memory_valid(unsigned long addr, int numpages, int enable);
/linux-6.3-rc2/arch/s390/kernel/
A Dmodule.c484 int numpages; in module_alloc_ftrace_hotpatch_trampolines() local
488 numpages = DIV_ROUND_UP(size, PAGE_SIZE); in module_alloc_ftrace_hotpatch_trampolines()
489 start = module_alloc(numpages * PAGE_SIZE); in module_alloc_ftrace_hotpatch_trampolines()
492 set_memory_ro((unsigned long)start, numpages); in module_alloc_ftrace_hotpatch_trampolines()
/linux-6.3-rc2/arch/alpha/kernel/
A Dsetup.c320 cluster->start_pfn + cluster->numpages); in setup_memory()
322 end = cluster->start_pfn + cluster->numpages; in setup_memory()
327 cluster->numpages << PAGE_SHIFT); in setup_memory()
334 cluster->numpages << PAGE_SHIFT); in setup_memory()
400 pfn < cluster->start_pfn + cluster->numpages) { in page_is_ram()
/linux-6.3-rc2/mm/
A Dpage_poison.c102 void __kernel_map_pages(struct page *page, int numpages, int enable) in __kernel_map_pages() argument

Completed in 44 milliseconds

12