Searched refs:mem_map (Results 1 – 22 of 22) sorted by relevance
30 enum mem_map { enum71 enum mem_map map) in gen_fdt_mem_array()137 enum mem_map mem_map; in append_memory() local195 mem_map = config & ROCIT_CONFIG_GEN1_MEMMAP_MASK; in append_memory()196 mem_map >>= ROCIT_CONFIG_GEN1_MEMMAP_SHIFT; in append_memory()199 mem_map = MEM_MAP_V1; in append_memory()201 if (mem_map > MEM_MAP_V2) in append_memory()203 (unsigned int)mem_map); in append_memory()214 mem_entries = gen_fdt_mem_array(mem_array, physical_memsize, mem_map); in append_memory()220 mem_entries = gen_fdt_mem_array(mem_array, memsize, mem_map); in append_memory()
26 #define virt_to_page(addr) (mem_map + (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT))27 #define page_to_virt(page) __va(((((page) - mem_map) << PAGE_SHIFT) + PAGE_OFFSET))
154 #define pgd_page(pgd) (mem_map + ((unsigned long)(__va(pgd_val(pgd)) - PAGE_OFFSET) >> PAGE_SHIFT))
77 extern struct page *mem_map;85 ((void *)(((page) - mem_map) << PAGE_SHIFT) + PAGE_OFFSET)
207 #define page_to_pa(page) (((page) - mem_map) << PAGE_SHIFT)240 #define pmd_page(pmd) (mem_map + ((pmd_val(pmd) & _PFN_MASK) >> 32))241 #define pgd_page(pgd) (mem_map + ((pgd_val(pgd) & _PFN_MASK) >> 32))
152 unsigned long mpc10x_get_mem_size(uint mem_map);
79 (mem_map + (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT))
355 #define __page_address(page) (PAGE_OFFSET + (((page) - mem_map) << PAGE_SHIFT))356 #define pte_page(pte) (mem_map+pte_pagenr(pte))
86 #define virt_to_page(x) (mem_map + MAP_NR(x))
246 #define pte_page(x) (mem_map + pte_pagenr(x))280 set_pte(&__pte, __pte((((page)-mem_map) << PAGE_SHIFT) | \
204 BUG_ON(!mem_map); in mem_init()
210 printk("Virtual mem_map starts at 0x%p\n", mem_map); in paging_init()
648 BUG_ON(!mem_map); in mem_init()
266 max_mapnr = pfn_to_page(max_pfn + PHYS_PFN_OFFSET) - mem_map; in mem_init()
22 struct mem_map { struct
306 #define pte_page(x) (mem_map + (unsigned long) \378 pte_val(pte) = (((page - mem_map) << PAGE_SHIFT) + memory_start) | \
194 BUG_ON(!mem_map); in mem_init()
699 efi_memory_desc_t *mem_map; in exit_boot() local707 map.map = &mem_map; in exit_boot()
51 BUG_ON(!mem_map); in mem_init()
492 set_max_mapnr(pfn_to_page(max_pfn) - mem_map); in mem_init()
770 BUG_ON(!mem_map); in mem_init()
1579 BUG_ON(mem_map); /* should only be used early */ in xen_alloc_pte_init()1589 BUG_ON(mem_map); /* should only be used early */ in xen_alloc_pmd_init()