Home
last modified time | relevance | path

Searched refs:virt_to_page (Results 1 – 25 of 153) sorted by relevance

1234567

/arch/cris/mm/
Dinit.c43 ClearPageReserved(virt_to_page(addr)); in free_init_pages()
44 init_page_count(virt_to_page(addr)); in free_init_pages()
/arch/s390/include/asm/
Dpgalloc.h76 if (!pgtable_pmd_page_ctor(virt_to_page(table))) { in pmd_alloc_one()
85 pgtable_pmd_page_dtor(virt_to_page(pmd)); in pmd_free()
107 if (!pgtable_pmd_page_ctor(virt_to_page(table))) { in pgd_alloc()
118 pgtable_pmd_page_dtor(virt_to_page(pgd)); in pgd_free()
/arch/s390/kernel/
Dvdso.c279 struct page *pg = virt_to_page(vdso32_kbase + i*PAGE_SIZE); in vdso_init()
284 vdso32_pagelist[vdso32_pages - 1] = virt_to_page(vdso_data); in vdso_init()
297 struct page *pg = virt_to_page(vdso64_kbase + i*PAGE_SIZE); in vdso_init()
302 vdso64_pagelist[vdso64_pages - 1] = virt_to_page(vdso_data); in vdso_init()
308 get_page(virt_to_page(vdso_data)); in vdso_init()
/arch/arm64/include/asm/
Dtlb.h70 tlb_remove_entry(tlb, virt_to_page(pmdp)); in __pmd_free_tlb()
79 tlb_remove_entry(tlb, virt_to_page(pudp)); in __pud_free_tlb()
Dmemory.h209 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT) macro
216 #define virt_to_page(vaddr) ((struct page *)((__virt_to_pgoff(vaddr)) | VMEMMAP_START)) macro
/arch/m68k/include/asm/
Dpage_no.h25 #define virt_to_page(addr) (mem_map + (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT)) macro
28 #define pfn_to_page(pfn) virt_to_page(pfn_to_virt(pfn))
Dpgtable_no.h44 #define ZERO_PAGE(vaddr) (virt_to_page(0))
/arch/x86/mm/
Dpgtable.c65 struct page *page = virt_to_page(pmd); in ___pmd_free_tlb()
82 tlb_remove_page(tlb, virt_to_page(pud)); in ___pud_free_tlb()
89 struct page *page = virt_to_page(pgd); in pgd_list_add()
96 struct page *page = virt_to_page(pgd); in pgd_list_del()
107 BUILD_BUG_ON(sizeof(virt_to_page(pgd)->index) < sizeof(mm)); in pgd_set_mm()
108 virt_to_page(pgd)->index = (pgoff_t)mm; in pgd_set_mm()
200 pgtable_pmd_page_dtor(virt_to_page(pmds[i])); in free_pmds()
219 if (pmd && !pgtable_pmd_page_ctor(virt_to_page(pmd))) { in preallocate_pmds()
Dinit_32.c883 set_pages_rw(virt_to_page(start), size >> PAGE_SHIFT); in set_kernel_text_rw()
897 set_pages_ro(virt_to_page(start), size >> PAGE_SHIFT); in set_kernel_text_ro()
914 set_pages_nx(virt_to_page(start), size >> PAGE_SHIFT); in mark_nxdata_nx()
922 set_pages_ro(virt_to_page(start), size >> PAGE_SHIFT); in mark_rodata_ro()
931 set_pages_rw(virt_to_page(start), size>>PAGE_SHIFT); in mark_rodata_ro()
934 set_pages_ro(virt_to_page(start), size>>PAGE_SHIFT); in mark_rodata_ro()
939 set_pages_ro(virt_to_page(start), size >> PAGE_SHIFT); in mark_rodata_ro()
946 set_pages_rw(virt_to_page(start), size >> PAGE_SHIFT); in mark_rodata_ro()
949 set_pages_ro(virt_to_page(start), size >> PAGE_SHIFT); in mark_rodata_ro()
/arch/m32r/mm/
Dioremap.c72 for(page = virt_to_page(t_addr); page <= virt_to_page(t_end); page++) in __ioremap()
/arch/parisc/mm/
Dioremap.c59 for (page = virt_to_page(t_addr); in __ioremap()
60 page <= virt_to_page(t_end); page++) { in __ioremap()
/arch/tile/include/asm/
Dpgalloc.h97 pte_free(mm, virt_to_page(pte)); in pte_free_kernel()
152 pgtable_free(mm, virt_to_page(pmdp), L1_USER_PGTABLE_ORDER); in pmd_free()
158 __pgtable_free_tlb(tlb, virt_to_page(pmdp), address, in __pmd_free_tlb()
/arch/um/kernel/skas/
Dmmu.c38 *pte = mk_pte(virt_to_page(kernel), __pgprot(_PAGE_PRESENT)); in init_stub_pte()
106 mm->context.stub_pages[0] = virt_to_page(__syscall_stub_start); in uml_setup_stubs()
107 mm->context.stub_pages[1] = virt_to_page(mm->context.id.stack); in uml_setup_stubs()
/arch/arm/kernel/
Dvdso.c197 vdso_data_page = virt_to_page(vdso_data); in vdso_init()
203 page = virt_to_page(&vdso_start + i * PAGE_SIZE); in vdso_init()
329 flush_dcache_page(virt_to_page(vdso_data)); in update_vsyscall()
336 flush_dcache_page(virt_to_page(vdso_data)); in update_vsyscall_tz()
/arch/alpha/include/asm/
Dmmzone.h72 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT) macro
95 __xx = virt_to_page(kvirt); \
/arch/arc/include/asm/
Dpgalloc.h114 page = virt_to_page(pte_pg); in pte_alloc_one()
130 pgtable_page_dtor(virt_to_page(ptep)); in pte_free()
/arch/arm64/mm/
Dcopypage.c27 struct page *page = virt_to_page(kto); in __cpu_copy_user_page()
/arch/arm/kvm/
Dmmu.c112 put_page(virt_to_page(pmd)); in stage2_dissolve_pmd()
153 put_page(virt_to_page(pgd)); in clear_stage2_pgd_entry()
163 put_page(virt_to_page(pud)); in clear_stage2_pud_entry()
173 put_page(virt_to_page(pmd)); in clear_stage2_pmd_entry()
214 put_page(virt_to_page(pte)); in unmap_stage2_ptes()
240 put_page(virt_to_page(pmd)); in unmap_stage2_pmds()
267 put_page(virt_to_page(pud)); in unmap_stage2_puds()
402 put_page(virt_to_page(pgd)); in clear_hyp_pgd_entry()
411 put_page(virt_to_page(pud)); in clear_hyp_pud_entry()
420 put_page(virt_to_page(pmd)); in clear_hyp_pmd_entry()
[all …]
/arch/frv/mm/
Dpgalloc.c91 struct page *page = virt_to_page(pgd); in pgd_list_add()
101 struct page *next, **pprev, *page = virt_to_page(pgd); in pgd_list_del()
/arch/mn10300/mm/
Dpgtable.c110 struct page *page = virt_to_page(pgd); in pgd_list_add()
120 struct page *next, **pprev, *page = virt_to_page(pgd); in pgd_list_del()
/arch/powerpc/mm/
Dpgtable_64.c308 return virt_to_page(pgd_page_vaddr(pgd)); in pgd_page()
316 return virt_to_page(pud_page_vaddr(pud)); in pud_page()
327 return virt_to_page(pmd_page_vaddr(pmd)); in pmd_page()
391 struct page *page = virt_to_page(table); in pte_fragment_free()
/arch/tile/kernel/
Dvdso.c60 struct page *pg = virt_to_page(vdso_kbase + i*PAGE_SIZE); in vdso_setup()
64 pagelist[pages - 1] = virt_to_page(vdso_data); in vdso_setup()
/arch/h8300/include/asm/
Dpgtable.h27 #define ZERO_PAGE(vaddr) (virt_to_page(0))
/arch/nios2/mm/
Dioremap.c136 for (page = virt_to_page(t_addr); in __ioremap()
137 page <= virt_to_page(t_end); page++) in __ioremap()
/arch/microblaze/mm/
Dconsistent.c129 page = virt_to_page(vaddr); in consistent_alloc()
195 page = virt_to_page(vaddr); in consistent_free()

1234567