Home
last modified time | relevance | path

Searched refs:MAP_NR (Results 1 – 14 of 14) sorted by relevance

/linux-2.4.37.9/arch/sh64/mm/
Dinit.c171 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()
/linux-2.4.37.9/include/asm-sh64/
Dpage.h84 #define MAP_NR(addr) ((__pa(addr)-__MEMORY_START) >> PAGE_SHIFT) macro
88 #define virt_to_page(kaddr) (mem_map + MAP_NR(kaddr))
Dprocessor.h277 #define get_task_struct(tsk) atomic_inc(&mem_map[MAP_NR(tsk)].count)
Dpgtable.h83 #define ZERO_PAGE(vaddr) (mem_map + MAP_NR(empty_zero_page))
/linux-2.4.37.9/arch/ppc64/mm/
Dinit.c413 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()
/linux-2.4.37.9/drivers/char/drm-4.0/
Dmemory.c254 mem_map_reserve(MAP_NR(addr)); in drm_alloc_pages()
280 mem_map_unreserve(MAP_NR(addr)); in drm_free_pages()
/linux-2.4.37.9/include/asm-m68k/
Dpage.h166 #define MAP_NR(addr) (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT) macro
/linux-2.4.37.9/arch/m68k/mm/
Dinit.c132 max_mapnr = num_physpages = MAP_NR(high_memory); in mem_init()
/linux-2.4.37.9/include/asm-ppc64/
Dpage.h233 #define MAP_NR(addr) (__pa(addr) >> PAGE_SHIFT) macro
Dpgtable.h160 #define ZERO_PAGE(vaddr) (mem_map + MAP_NR(empty_zero_page))
/linux-2.4.37.9/drivers/media/video/
Dzr36067.c68 #define MAP_NR(x) virt_to_page(x) macro
307 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()
/linux-2.4.37.9/drivers/usb/
Dusbvideo.c34 #if defined(MAP_NR)
35 #define virt_to_page(v) MAP_NR(v) /* Kernels 2.2.x */
/linux-2.4.37.9/drivers/ieee1394/
Dvideo1394.c64 #define virt_to_page(x) MAP_NR(x)
Ddv1394.c127 #define virt_to_page(x) MAP_NR(x)