Searched refs:PAGE_SHIFT (Results 1 – 10 of 10) 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)
18 #define PAGE_SHIFT 12 macro19 #define PAGE_SIZE (1 << PAGE_SHIFT)
115 #define PAGE_SHIFT 12 macro
223 u64 q_pfn = virtqueue_get_desc_addr(vq) >> PAGE_SHIFT; in virtio_mmio_setup_vq()232 0x1ULL << (32 + PAGE_SHIFT - 30)); in virtio_mmio_setup_vq()
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,