Home
last modified time | relevance | path

Searched refs:mem_map (Results 1 – 25 of 53) sorted by relevance

123

/linux-3.4.99/arch/cris/include/asm/
Dpage.h53 #define virt_to_page(kaddr) (mem_map + (((unsigned long)(kaddr) - PAGE_OFFSET) >> PAGE_SHIFT))
54 #define VALID_PAGE(page) (((page) - mem_map) < max_mapnr)
61 #define page_to_phys(page) __pa((((page) - mem_map) << PAGE_SHIFT) + PAGE_OFFSET)
Dpgtable.h218 #define __page_address(page) (PAGE_OFFSET + (((page) - mem_map) << PAGE_SHIFT))
219 #define pte_page(pte) (mem_map+pte_pagenr(pte))
/linux-3.4.99/arch/cris/mm/
Dinit.c27 BUG_ON(!mem_map); in mem_init()
45 if (PageReserved(mem_map + tmp)) in mem_init()
/linux-3.4.99/include/asm-generic/
Dmemory_model.h30 #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET))
31 #define __page_to_pfn(page) ((unsigned long)((page) - mem_map) + \
/linux-3.4.99/arch/m68k/include/asm/
Dpage_no.h28 #define virt_to_page(addr) (mem_map + (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT))
29 #define page_to_virt(page) ((((page) - mem_map) << PAGE_SHIFT) + PAGE_OFFSET)
Dvirtconvert.h37 #define page_to_phys(page) (((page) - mem_map) << PAGE_SHIFT)
/linux-3.4.99/arch/openrisc/include/asm/
Dpage.h86 (mem_map + (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT))
88 ((((page) - mem_map) << PAGE_SHIFT) + PAGE_OFFSET)
Dpgtable.h360 #define __page_address(page) (PAGE_OFFSET + (((page) - mem_map) << PAGE_SHIFT))
361 #define pte_page(pte) (mem_map+pte_pagenr(pte))
/linux-3.4.99/arch/avr32/include/asm/
Dpage.h88 #define pfn_to_page(pfn) (mem_map + ((pfn) - PHYS_PFN_OFFSET))
89 #define page_to_pfn(page) ((unsigned long)((page) - mem_map) + PHYS_PFN_OFFSET)
/linux-3.4.99/arch/h8300/include/asm/
Dpage.h64 #define virt_to_page(addr) (mem_map + (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT))
65 #define page_to_virt(page) ((((page) - mem_map) << PAGE_SHIFT) + PAGE_OFFSET)
Dio.h333 #define page_to_phys(page) ((page - mem_map) << PAGE_SHIFT)
334 #define page_to_bus(page) ((page - mem_map) << PAGE_SHIFT)
/linux-3.4.99/arch/mn10300/include/asm/
Dpage.h108 #define pfn_to_page(pfn) (mem_map + ((pfn) - __pfn_disp))
109 #define page_to_pfn(page) ((unsigned long)((page) - mem_map) + __pfn_disp)
/linux-3.4.99/arch/x86/boot/compressed/
Deboot.c706 efi_memory_desc_t *mem_map; in make_boot_params() local
768 size = sizeof(*mem_map) * 32; in make_boot_params()
771 size += sizeof(*mem_map); in make_boot_params()
773 status = low_alloc(size, 1, (unsigned long *)&mem_map); in make_boot_params()
778 mem_map, &key, &desc_size, &desc_version); in make_boot_params()
780 low_free(_size, (unsigned long)mem_map); in make_boot_params()
790 efi->efi_memmap = (unsigned long)mem_map; in make_boot_params()
795 efi->efi_memmap_hi = (unsigned long)mem_map >> 32; in make_boot_params()
814 unsigned long m = (unsigned long)mem_map; in make_boot_params()
869 low_free(_size, (unsigned long)mem_map); in make_boot_params()
/linux-3.4.99/arch/mn10300/mm/
Dinit.c105 BUG_ON(!mem_map); in mem_init()
121 if (PageReserved(&mem_map[tmp])) in mem_init()
/linux-3.4.99/arch/frv/mm/
Dinit.c130 if (PageReserved(&mem_map[loop])) in mem_init()
135 struct page *page = &mem_map[pfn]; in mem_init()
/linux-3.4.99/arch/frv/include/asm/
Dvirtconvert.h37 #define __page_address(page) (PAGE_OFFSET + (((page) - mem_map) << PAGE_SHIFT))
/linux-3.4.99/arch/openrisc/mm/
Dinit.c208 if (PageReserved(mem_map + pfn)) in free_pages_init()
224 BUG_ON(!mem_map); in mem_init()
/linux-3.4.99/arch/alpha/include/asm/
Dpgtable.h207 #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))
Dmmzone.h74 #define VALID_PAGE(page) (((page) - mem_map) < max_mapnr)
/linux-3.4.99/mm/
Dsparse.c228 static unsigned long sparse_encode_mem_map(struct page *mem_map, unsigned long pnum) in sparse_encode_mem_map() argument
230 return (unsigned long)(mem_map - (section_nr_to_pfn(pnum))); in sparse_encode_mem_map()
244 unsigned long pnum, struct page *mem_map, in sparse_init_one_section() argument
251 ms->section_mem_map |= sparse_encode_mem_map(mem_map, pnum) | in sparse_init_one_section()
/linux-3.4.99/arch/m32r/include/asm/
Dpgtable-2level.h57 #define pgd_page(pgd) (mem_map + ((pgd_val(pgd) >> PAGE_SHIFT) - PFN_BASE))
/linux-3.4.99/arch/powerpc/platforms/embedded6xx/
Dmpc10x.h173 unsigned long mpc10x_get_mem_size(uint mem_map);
/linux-3.4.99/arch/sh/include/asm/
Dpgtable_64.h253 #define pte_page(x) (mem_map + pte_pagenr(x))
288 set_pte(&__pte, __pte((((page)-mem_map) << PAGE_SHIFT) | \
/linux-3.4.99/arch/parisc/mm/
Dinit.c694 if (PageReserved(mem_map+i)) in show_mem()
696 else if (PageSwapCache(mem_map+i)) in show_mem()
698 else if (!page_count(&mem_map[i])) in show_mem()
701 shared += page_count(&mem_map[i]) - 1; in show_mem()
/linux-3.4.99/arch/avr32/mm/
Dinit.c95 mem_map = NODE_DATA(0)->node_mem_map; in paging_init()

123