/arch/x86/include/asm/ |
D | set_memory.h | 37 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 …]
|
D | pgtable_types.h | 571 unsigned numpages, 574 unsigned long numpages);
|
/arch/powerpc/include/asm/ |
D | set_memory.h | 12 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 …]
|
D | mem_encrypt.h | 23 int set_memory_encrypted(unsigned long addr, int numpages); 24 int set_memory_decrypted(unsigned long addr, int numpages);
|
/arch/s390/include/asm/ |
D | set_memory.h | 15 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 …]
|
D | mem_encrypt.h | 9 int set_memory_encrypted(unsigned long addr, int numpages); 10 int set_memory_decrypted(unsigned long addr, int numpages);
|
D | kfence.h | 11 void __kernel_map_pages(struct page *page, int numpages, int enable);
|
/arch/arm/include/asm/ |
D | set_memory.h | 10 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/ |
D | set_memory.h | 14 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/ |
D | set_memory.c | 43 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/ |
D | pageattr.c | 67 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 …]
|
D | mem_encrypt.c | 99 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/ |
D | pageattr.c | 35 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/ |
D | pageattr.c | 107 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/ |
D | pgtable_32.c | 138 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()
|
D | pageattr.c | 69 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/ |
D | svm.c | 64 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/ |
D | mem_encrypt.h | 6 int set_memory_encrypted(unsigned long addr, int numpages); 7 int set_memory_decrypted(unsigned long addr, int numpages);
|
D | set_memory.h | 11 int set_memory_valid(unsigned long addr, int numpages, int enable);
|
/arch/s390/mm/ |
D | init.c | 144 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()
|
D | pageattr.c | 320 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/ |
D | module.c | 484 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/ |
D | hwrpb.h | 143 unsigned long numpages; member
|
/arch/alpha/kernel/ |
D | setup.c | 320 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/ |
D | hash_utils.c | 1953 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()
|