Searched refs:PAGE_SHIFT (Results 1 – 8 of 8) sorted by relevance
27 #define PHYS_PFN_OFFSET (PHYS_OFFSET >> PAGE_SHIFT)75 #define virt_to_page(kaddr) (pfn_to_page(__pa(kaddr) >> PAGE_SHIFT))90 + (page_zone(page)->zone_start_paddr >> PAGE_SHIFT))93 (PFN_TO_MAPBASE(pfn) + LOCAL_MAP_NR((pfn) << PAGE_SHIFT))100 ((pfn - (nd->node_start_paddr >> PAGE_SHIFT)) < nd->node_size));\112 #define PHYS_TO_NID(addr) PFN_TO_NID((addr) >> PAGE_SHIFT)
13 #define PAGE_SHIFT 12 macro15 #define ROUND_PAGES(memsize) ((memsize >> (PAGE_SHIFT)) << PAGE_SHIFT)18 #define HALF_MEM(memsize) ((memsize >> (PAGE_SHIFT))<<(PAGE_SHIFT - 1))46 numpages = memsize >> PAGE_SHIFT; in main()
10 #define PAGE_SHIFT 12 macro12 #define ROUND_PAGES(memsize) ((memsize >> (PAGE_SHIFT)) << PAGE_SHIFT)34 numpages = memsize >> PAGE_SHIFT; in main()
19 #define PAGE_SHIFT 12 macro22 #define PAGE_SIZE (1 << PAGE_SHIFT)47 (uintptr_t)ptr >> (PAGE_SHIFT - 3)) != sizeof(ent)) in allocate_transhuge()52 !(PAGEMAP_PFN(ent[0]) & ((1 << (HPAGE_SHIFT - PAGE_SHIFT)) - 1))) in allocate_transhuge()82 len >> (20 + HPAGE_SHIFT - PAGE_SHIFT - 1)); in main()117 size_t idx = pfn >> (HPAGE_SHIFT - PAGE_SHIFT); in main()
64 #define _PFN_SHIFT (PAGE_SHIFT - 12 + _CACHE_SHIFT + 3)100 #define _PFN_SHIFT PAGE_SHIFT167 #define _PFN_SHIFT (PAGE_SHIFT - 12 + _CACHE_SHIFT + 3)
16 #define PAGE_SHIFT 12 macro17 #define PAGE_SIZE (1 << PAGE_SHIFT)
519 PAGE_SHIFT = 12 variable
46149 Use sysconf(_SC_PAGESIZE) instead of hardcoded PAGE_SHIFT.46150 PAGE_SHIFT couldn't be reliably obtained at compile time,