Home
last modified time | relevance | path

Searched refs:PAGE_SHIFT (Results 1 – 25 of 29) sorted by relevance

12

/external/kernel-headers/original/asm-mips/
Dpage.h4 #ifndef PAGE_SHIFT
5 #define PAGE_SHIFT 12 macro
7 #define PAGE_SIZE (1UL << PAGE_SHIFT)
8 #define PAGE_MASK (~((1 << PAGE_SHIFT) - 1))
Dfixmap.h75 #define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT)
78 #define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT))
79 #define __virt_to_fix(x) ((FIXADDR_TOP - ((x)&PAGE_MASK)) >> PAGE_SHIFT)
Dmmzone.h13 #define pfn_to_nid(pfn) pa_to_nid((pfn) << PAGE_SHIFT)
Dpgtable.h86 #define pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT))
362 phys_t phys_addr_high = fixup_bigphys_addr(pfn << PAGE_SHIFT, size); in io_remap_pfn_range()
363 return remap_pfn_range(vma, vaddr, phys_addr_high >> PAGE_SHIFT, size, prot); in io_remap_pfn_range()
Ddma.h94 #define MAX_DMA32_PFN (1UL << (32 - PAGE_SHIFT))
/external/kernel-headers/original/asm-arm/
Dmemory.h133 #define __phys_to_pfn(paddr) ((paddr) >> PAGE_SHIFT)
134 #define __pfn_to_phys(pfn) ((pfn) << PAGE_SHIFT)
160 #define PHYS_PFN_OFFSET (PHYS_OFFSET >> PAGE_SHIFT)
183 #define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
221 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
234 #define arch_local_page_offset(pfn, nid) LOCAL_MAP_NR((pfn) << PAGE_SHIFT)
257 #define PHYS_TO_NID(addr) PFN_TO_NID((addr) >> PAGE_SHIFT)
264 #define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
Dpgtable.h221 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT)
222 #define pfn_pte(pfn,prot) (__pte(((pfn) << PAGE_SHIFT) | pgprot_val(prot)))
309 #define pages_to_mb(x) ((x) >> (20 - PAGE_SHIFT))
340 #define __pte_index(addr) (((addr) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))
Dpage.h15 #define PAGE_SHIFT 12 macro
16 #define PAGE_SIZE (1UL << PAGE_SHIFT)
Dpgalloc.h128 __pmd_populate(pmdp, page_to_pfn(ptep) << PAGE_SHIFT | _PAGE_USER_TABLE); in pmd_populate()
Dcacheflush.h19 #define CACHE_COLOUR(vaddr) ((vaddr & (SHMLBA - 1)) >> PAGE_SHIFT)
/external/kernel-headers/original/asm-x86/
Dpage_32.h5 #define PAGE_SHIFT 12 macro
6 #define PAGE_SIZE (1UL << PAGE_SHIFT)
124 #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT)
187 #define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
191 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
193 #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
Dfixmap_32.h118 #define __FIXADDR_SIZE (__end_of_permanent_fixed_addresses << PAGE_SHIFT)
119 #define __FIXADDR_BOOT_SIZE (__end_of_fixed_addresses << PAGE_SHIFT)
123 #define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT))
124 #define __virt_to_fix(x) ((FIXADDR_TOP - ((x)&PAGE_MASK)) >> PAGE_SHIFT)
Dpgtable-2level.h55 #define pte_pfn(x) (pte_val(x) >> PAGE_SHIFT)
56 #define pfn_pte(pfn, prot) __pte(((pfn) << PAGE_SHIFT) | pgprot_val(prot))
57 #define pfn_pmd(pfn, prot) __pmd(((pfn) << PAGE_SHIFT) | pgprot_val(prot))
Dhighmem.h63 #define PKMAP_NR(virt) ((virt-PKMAP_BASE) >> PAGE_SHIFT)
64 #define PKMAP_ADDR(nr) (PKMAP_BASE + ((nr) << PAGE_SHIFT))
Dpgalloc_32.h20 paravirt_alloc_pt(mm, __pa(pte) >> PAGE_SHIFT); \
29 (unsigned long long) PAGE_SHIFT))); \
Dpgtable_32.h212 #define pages_to_mb(x) ((x) >> (20-PAGE_SHIFT))
426 (((address) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))
430 #define pmd_page(pmd) (pfn_to_page(pmd_val(pmd) >> PAGE_SHIFT))
Dio_32.h101 #define page_to_phys(page) ((dma_addr_t)page_to_pfn(page) << PAGE_SHIFT)
/external/kernel-headers/original/linux/
Dpagemap.h45 #define PAGE_CACHE_SHIFT PAGE_SHIFT
127 pgoff_t pgoff = (address - vma->vm_start) >> PAGE_SHIFT; in linear_page_index()
129 return pgoff >> (PAGE_CACHE_SHIFT - PAGE_SHIFT); in linear_page_index()
Dnfsacl.h38 >> PAGE_SHIFT)
Dvmalloc.h22 #define IOREMAP_MAX_ORDER (7 + PAGE_SHIFT) /* 128 pages */
Dmmzone.h513 #define PFN_SECTION_SHIFT (SECTION_SIZE_BITS - PAGE_SHIFT)
520 #if (MAX_ORDER - 1 + PAGE_SHIFT) > SECTION_SIZE_BITS
Dmm.h531 return __va(page_to_pfn(page) << PAGE_SHIFT); in lowmem_page_address()
947 ret = do_mmap_pgoff(file, addr, len, prot, flag, offset >> PAGE_SHIFT); in do_mmap()
1013 return (vma->vm_end - vma->vm_start) >> PAGE_SHIFT; in vma_pages()
Dblkdev.h568 #define BLK_BOUNCE_HIGH ((u64)blk_max_low_pfn << PAGE_SHIFT)
569 #define BLK_BOUNCE_ANY ((u64)blk_max_pfn << PAGE_SHIFT)
/external/oprofile/module/
Dcompat24.h31 #define GET_VM_OFFSET(v) ((v)->vm_pgoff << PAGE_SHIFT)
/external/oprofile/module/x86/
Dop_syscalls.c176 out_mmap(ret, len, prot, flags, fd, pgoff << PAGE_SHIFT); in my_sys_mmap2()

12