Home
last modified time | relevance | path

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

12

/arch/x86/include/asm/
Dset_memory.h37 int __set_memory_prot(unsigned long addr, int numpages, pgprot_t prot);
38 int _set_memory_uc(unsigned long addr, int numpages);
39 int _set_memory_wc(unsigned long addr, int numpages);
40 int _set_memory_wt(unsigned long addr, int numpages);
41 int _set_memory_wb(unsigned long addr, int numpages);
42 int set_memory_uc(unsigned long addr, int numpages);
43 int set_memory_wc(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.h571 unsigned numpages,
574 unsigned long numpages);
/arch/powerpc/include/asm/
Dset_memory.h12 int change_memory_attr(unsigned long addr, int numpages, long action);
14 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()
34 static inline int set_memory_np(unsigned long addr, int numpages) in set_memory_np() argument
[all …]
Dmem_encrypt.h23 int set_memory_encrypted(unsigned long addr, int numpages);
24 int set_memory_decrypted(unsigned long addr, int numpages);
/arch/s390/include/asm/
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 …]
Dmem_encrypt.h9 int set_memory_encrypted(unsigned long addr, int numpages);
10 int set_memory_decrypted(unsigned long addr, int numpages);
Dkfence.h11 void __kernel_map_pages(struct page *page, int numpages, int enable);
/arch/arm/include/asm/
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);
15 static inline int set_memory_ro(unsigned long addr, int numpages) { return 0; } in set_memory_ro() argument
16 static inline int set_memory_rw(unsigned long addr, int numpages) { return 0; } in set_memory_rw() argument
17 static inline int set_memory_x(unsigned long addr, int numpages) { return 0; } in set_memory_x() argument
18 static inline int set_memory_nx(unsigned long addr, int numpages) { return 0; } in set_memory_nx() argument
/arch/riscv/include/asm/
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
/arch/x86/mm/pat/
Dset_memory.c43 unsigned long numpages; member
356 for (i = 0; i < cpa->numpages; i++) in __cpa_flush_tlb()
372 if (cpa->force_flush_all || cpa->numpages > tlb_single_page_flush_ceiling) in cpa_flush()
381 for (i = 0; i < cpa->numpages; i++) { in cpa_flush()
776 unsigned long numpages, pmask, psize, lpaddr, pfn, old_pfn; in __should_split_large_page() local
812 numpages = (lpaddr - address) >> PAGE_SHIFT; in __should_split_large_page()
813 if (numpages < cpa->numpages) in __should_split_large_page()
814 cpa->numpages = numpages; in __should_split_large_page()
850 numpages = psize >> PAGE_SHIFT; in __should_split_large_page()
857 chk_prot = static_protections(old_prot, lpaddr, old_pfn, numpages, in __should_split_large_page()
[all …]
/arch/arm64/mm/
Dpageattr.c67 static int change_memory_common(unsigned long addr, int numpages, in change_memory_common() argument
71 unsigned long size = PAGE_SIZE * numpages; in change_memory_common()
101 if (!numpages) in change_memory_common()
125 int set_memory_ro(unsigned long addr, int numpages) in set_memory_ro() argument
127 return change_memory_common(addr, numpages, in set_memory_ro()
132 int set_memory_rw(unsigned long addr, int numpages) in set_memory_rw() argument
134 return change_memory_common(addr, numpages, in set_memory_rw()
139 int set_memory_nx(unsigned long addr, int numpages) in set_memory_nx() argument
141 return change_memory_common(addr, numpages, in set_memory_nx()
146 int set_memory_x(unsigned long addr, int numpages) in set_memory_x() argument
[all …]
Dmem_encrypt.c99 static int set_memory_xcrypted(u32 func_id, unsigned long start, int numpages) in set_memory_xcrypted() argument
101 void *addr = (void *)start, *end = addr + numpages * PAGE_SIZE; in set_memory_xcrypted()
116 int set_memory_encrypted(unsigned long addr, int numpages) in set_memory_encrypted() argument
122 addr, numpages); in set_memory_encrypted()
125 int set_memory_decrypted(unsigned long addr, int numpages) in set_memory_decrypted() argument
131 addr, numpages); in set_memory_decrypted()
/arch/arm/mm/
Dpageattr.c35 static int change_memory_common(unsigned long addr, int numpages, in change_memory_common() argument
39 unsigned long end = PAGE_ALIGN(addr) + numpages * PAGE_SIZE; in change_memory_common()
63 int set_memory_ro(unsigned long addr, int numpages) in set_memory_ro() argument
65 return change_memory_common(addr, numpages, in set_memory_ro()
70 int set_memory_rw(unsigned long addr, int numpages) in set_memory_rw() argument
72 return change_memory_common(addr, numpages, in set_memory_rw()
77 int set_memory_nx(unsigned long addr, int numpages) in set_memory_nx() argument
79 return change_memory_common(addr, numpages, in set_memory_nx()
84 int set_memory_x(unsigned long addr, int numpages) in set_memory_x() argument
86 return change_memory_common(addr, numpages, in set_memory_x()
/arch/riscv/mm/
Dpageattr.c107 static int __set_memory(unsigned long addr, int numpages, pgprot_t set_mask, in __set_memory() argument
112 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
133 return __set_memory(addr, numpages, __pgprot(_PAGE_READ | _PAGE_WRITE), in set_memory_rw_nx()
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
145 return __set_memory(addr, numpages, __pgprot(_PAGE_READ | _PAGE_WRITE), in set_memory_rw()
149 int set_memory_x(unsigned long addr, int numpages) in set_memory_x() argument
[all …]
/arch/powerpc/mm/
Dpgtable_32.c138 unsigned long numpages = PFN_UP((unsigned long)_einittext) - in mark_initmem_nx() local
144 set_memory_nx((unsigned long)_sinittext, numpages); in mark_initmem_nx()
145 set_memory_rw((unsigned long)_sinittext, numpages); in mark_initmem_nx()
152 unsigned long numpages; in mark_rodata_ro() local
164 numpages = PFN_UP((unsigned long)__init_begin) - in mark_rodata_ro()
167 set_memory_ro((unsigned long)_stext, numpages); in mark_rodata_ro()
175 void __kernel_map_pages(struct page *page, int numpages, int enable) in __kernel_map_pages() argument
183 set_memory_p(addr, numpages); in __kernel_map_pages()
185 set_memory_np(addr, numpages); in __kernel_map_pages()
Dpageattr.c69 int change_memory_attr(unsigned long addr, int numpages, long action) in change_memory_attr() argument
72 unsigned long size = numpages * PAGE_SIZE; in change_memory_attr()
74 if (!numpages) in change_memory_attr()
/arch/powerpc/platforms/pseries/
Dsvm.c64 int set_memory_encrypted(unsigned long addr, int numpages) in set_memory_encrypted() argument
72 uv_unshare_page(PHYS_PFN(__pa(addr)), numpages); in set_memory_encrypted()
77 int set_memory_decrypted(unsigned long addr, int numpages) in set_memory_decrypted() argument
85 uv_share_page(PHYS_PFN(__pa(addr)), numpages); in set_memory_decrypted()
/arch/arm64/include/asm/
Dmem_encrypt.h6 int set_memory_encrypted(unsigned long addr, int numpages);
7 int set_memory_decrypted(unsigned long addr, int numpages);
Dset_memory.h11 int set_memory_valid(unsigned long addr, int numpages, int enable);
/arch/s390/mm/
Dinit.c144 int set_memory_encrypted(unsigned long addr, int numpages) in set_memory_encrypted() argument
149 for (i = 0; i < numpages; ++i) { in set_memory_encrypted()
156 int set_memory_decrypted(unsigned long addr, int numpages) in set_memory_decrypted() argument
160 for (i = 0; i < numpages; ++i) { in set_memory_decrypted()
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()
/arch/s390/kernel/
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()
/arch/alpha/include/asm/
Dhwrpb.h143 unsigned long numpages; member
/arch/alpha/kernel/
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()
399 pfn < cluster->start_pfn + cluster->numpages) { in page_is_ram()
/arch/powerpc/mm/book3s64/
Dhash_utils.c1953 void __kernel_map_pages(struct page *page, int numpages, int enable) in __kernel_map_pages() argument
1959 for (i = 0; i < numpages; i++, page++) { in __kernel_map_pages()

12