Searched refs:MAP_NR (Results 1 – 14 of 14) sorted by relevance
171 ClearPageReserved(mem_map + MAP_NR(addr)); in free_initmem()172 set_page_count(mem_map+MAP_NR(addr), 1); in free_initmem()184 ClearPageReserved(mem_map + MAP_NR(p)); in free_initrd_mem()185 set_page_count(mem_map+MAP_NR(p), 1); in free_initrd_mem()
84 #define MAP_NR(addr) ((__pa(addr)-__MEMORY_START) >> PAGE_SHIFT) macro88 #define virt_to_page(kaddr) (mem_map + MAP_NR(kaddr))
277 #define get_task_struct(tsk) atomic_inc(&mem_map[MAP_NR(tsk)].count)
83 #define ZERO_PAGE(vaddr) (mem_map + MAP_NR(empty_zero_page))
413 clear_bit(PG_reserved, &mem_map[MAP_NR(a)].flags); \ in free_initmem()414 set_page_count(mem_map+MAP_NR(a), 1); \ in free_initmem()431 ClearPageReserved(mem_map + MAP_NR(start)); in free_initrd_mem()432 set_page_count(mem_map+MAP_NR(start), 1); in free_initrd_mem()577 SetPageReserved(mem_map + MAP_NR(addr)); in mem_init()581 if (!PageReserved(mem_map + MAP_NR(addr))) in mem_init()
254 mem_map_reserve(MAP_NR(addr)); in drm_alloc_pages()280 mem_map_unreserve(MAP_NR(addr)); in drm_free_pages()
166 #define MAP_NR(addr) (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT) macro
132 max_mapnr = num_physpages = MAP_NR(high_memory); in mem_init()
233 #define MAP_NR(addr) (__pa(addr) >> PAGE_SHIFT) macro
160 #define ZERO_PAGE(vaddr) (mem_map + MAP_NR(empty_zero_page))
68 #define MAP_NR(x) virt_to_page(x) macro307 mem_map_reserve(MAP_NR(mem + off)); in v4l_fbuffer_alloc()370 mem_map_unreserve(MAP_NR(mem + off)); in v4l_fbuffer_free()449 mem_map_reserve(MAP_NR(mem + off)); in jpg_fbuffer_alloc()467 mem_map_reserve(MAP_NR(mem)); in jpg_fbuffer_alloc()507 mem_map_unreserve(MAP_NR in jpg_fbuffer_free()517 mem_map_unreserve(MAP_NR in jpg_fbuffer_free()
34 #if defined(MAP_NR)35 #define virt_to_page(v) MAP_NR(v) /* Kernels 2.2.x */
64 #define virt_to_page(x) MAP_NR(x)
127 #define virt_to_page(x) MAP_NR(x)