/linux-2.4.37.9/include/linux/ |
D | mmzone.h | 179 extern void show_free_areas_core(pg_data_t *pgdat); 180 extern void free_area_init_core(int nid, pg_data_t *pgdat, struct page **gmap, 197 #define for_each_pgdat(pgdat) \ argument 198 for (pgdat = pgdat_list; pgdat; pgdat = pgdat->node_next) 207 pg_data_t *pgdat = zone->zone_pgdat; in next_zone() local 209 if (zone - pgdat->node_zones < MAX_NR_ZONES - 1) in next_zone() 212 else if (pgdat->node_next) { in next_zone() 213 pgdat = pgdat->node_next; in next_zone() 214 zone = pgdat->node_zones; in next_zone()
|
D | bootmem.h | 48 extern unsigned long __init init_bootmem_node (pg_data_t *pgdat, unsigned long freepfn, unsigned lo… 49 extern void __init reserve_bootmem_node (pg_data_t *pgdat, unsigned long physaddr, unsigned long si… 50 extern void __init free_bootmem_node (pg_data_t *pgdat, unsigned long addr, unsigned long size); 51 extern unsigned long __init free_all_bootmem_node (pg_data_t *pgdat); 52 extern void * __init __alloc_bootmem_node (pg_data_t *pgdat, unsigned long size, unsigned long alig… 53 #define alloc_bootmem_node(pgdat, x) \ argument 54 __alloc_bootmem_node((pgdat), (x), SMP_CACHE_BYTES, __pa(MAX_DMA_ADDRESS)) 55 #define alloc_bootmem_pages_node(pgdat, x) \ argument 56 __alloc_bootmem_node((pgdat), (x), PAGE_SIZE, __pa(MAX_DMA_ADDRESS)) 57 #define alloc_bootmem_low_pages_node(pgdat, x) \ argument [all …]
|
D | mm.h | 481 extern void show_free_areas_node(pg_data_t *pgdat); 528 extern void free_area_init_node(int nid, pg_data_t *pgdat, struct page *pmap,
|
/linux-2.4.37.9/mm/ |
D | swap.c | 107 pg_data_t *pgdat; in delta_nr_active_pages() local 111 pgdat = classzone->zone_pgdat; in delta_nr_active_pages() 112 overflow = pgdat->node_zones + pgdat->nr_zones; in delta_nr_active_pages() 131 pg_data_t *pgdat; in delta_nr_inactive_pages() local 135 pgdat = classzone->zone_pgdat; in delta_nr_inactive_pages() 136 overflow = pgdat->node_zones + pgdat->nr_zones; in delta_nr_inactive_pages() 155 pg_data_t *pgdat; in delta_nr_cache_pages() local 159 pgdat = classzone->zone_pgdat; in delta_nr_cache_pages() 160 overflow = pgdat->node_zones + pgdat->nr_zones; in delta_nr_cache_pages()
|
D | numa.c | 24 void __init free_area_init_node(int nid, pg_data_t *pgdat, struct page *pmap, in free_area_init_node() argument 49 void show_free_areas_node(pg_data_t *pgdat) in show_free_areas_node() argument 54 show_free_areas_core(pgdat); in show_free_areas_node() 61 void __init free_area_init_node(int nid, pg_data_t *pgdat, struct page *pmap, in free_area_init_node() argument 71 free_area_init_core(nid, pgdat, &discard, zones_size, zone_start_paddr, in free_area_init_node() 73 pgdat->node_id = nid; in free_area_init_node() 81 pgdat->valid_addr_bitmap = (unsigned long *)alloc_bootmem_node(pgdat, size); in free_area_init_node() 82 memset(pgdat->valid_addr_bitmap, 0, size); in free_area_init_node() 85 static struct page * alloc_pages_pgdat(pg_data_t *pgdat, unsigned int gfp_mask, in alloc_pages_pgdat() argument 88 return __alloc_pages(gfp_mask, order, pgdat->node_zonelists + (gfp_mask & GFP_ZONEMASK)); in alloc_pages_pgdat()
|
D | bootmem.c | 46 static unsigned long __init init_bootmem_core (pg_data_t *pgdat, in init_bootmem_core() argument 49 bootmem_data_t *bdata = pgdat->bdata; in init_bootmem_core() 52 pgdat->node_next = pgdat_list; in init_bootmem_core() 53 pgdat_list = pgdat; in init_bootmem_core() 245 static unsigned long __init free_all_bootmem_core(pg_data_t *pgdat) in free_all_bootmem_core() argument 247 struct page *page = pgdat->node_mem_map; in free_all_bootmem_core() 248 bootmem_data_t *bdata = pgdat->bdata; in free_all_bootmem_core() 284 unsigned long __init init_bootmem_node (pg_data_t *pgdat, unsigned long freepfn, unsigned long star… in init_bootmem_node() argument 286 return(init_bootmem_core(pgdat, freepfn, startpfn, endpfn)); in init_bootmem_node() 289 void __init reserve_bootmem_node (pg_data_t *pgdat, unsigned long physaddr, unsigned long size) in reserve_bootmem_node() argument [all …]
|
D | page_alloc.c | 541 pg_data_t *pgdat; in nr_free_buffer_pages() local 546 for_each_pgdat(pgdat) { in nr_free_buffer_pages() 548 zonelist = pgdat->node_zonelists + (GFP_USER & GFP_ZONEMASK); in nr_free_buffer_pages() 568 pg_data_t *pgdat; in nr_free_highpages() local 571 for_each_pgdat(pgdat) in nr_free_highpages() 572 pages += pgdat->node_zones[ZONE_HIGHMEM].free_pages; in nr_free_highpages() 580 pg_data_t *pgdat; in freeable_lowmem() local 582 for_each_pgdat(pgdat) { in freeable_lowmem() 583 pages += pgdat->node_zones[ZONE_DMA].free_pages; in freeable_lowmem() 584 pages += pgdat->node_zones[ZONE_DMA].nr_active_pages; in freeable_lowmem() [all …]
|
D | vmscan.c | 692 pg_data_t *pgdat; in try_to_free_pages() local 700 for_each_pgdat(pgdat) { in try_to_free_pages() 701 zonelist = pgdat->node_zonelists + (gfp_mask & GFP_ZONEMASK); in try_to_free_pages() 725 static int kswapd_balance_pgdat(pg_data_t * pgdat) in kswapd_balance_pgdat() argument 730 for (i = pgdat->nr_zones-1; i >= 0; i--) { in kswapd_balance_pgdat() 731 zone = pgdat->node_zones + i; in kswapd_balance_pgdat() 754 pg_data_t * pgdat; in kswapd_balance() local 759 for_each_pgdat(pgdat) in kswapd_balance() 760 need_more_balance |= kswapd_balance_pgdat(pgdat); in kswapd_balance() 764 static int kswapd_can_sleep_pgdat(pg_data_t * pgdat) in kswapd_can_sleep_pgdat() argument [all …]
|
/linux-2.4.37.9/arch/arm/mm/ |
D | init.c | 346 pg_data_t *pgdat = NODE_DATA(0); in reserve_node_zero() local 352 reserve_bootmem_node(pgdat, __pa(&_stext), &_end - &_stext); in reserve_node_zero() 359 reserve_bootmem_node(pgdat, __pa(swapper_pg_dir), in reserve_node_zero() 366 reserve_bootmem_node(pgdat, bootmap_pfn << PAGE_SHIFT, in reserve_node_zero() 376 reserve_bootmem_node(pgdat, 0, __pa(swapper_pg_dir)); in reserve_node_zero() 383 reserve_bootmem_node(pgdat, 0x02000000, 0x00080000); in reserve_node_zero() 385 reserve_bootmem_node(pgdat, 0xc0000000, 0x00020000); in reserve_node_zero() 387 reserve_bootmem_node(pgdat, PHYS_OFFSET, 0x00014000); in reserve_node_zero() 393 reserve_bootmem_node(pgdat, PHYS_OFFSET, __pa(swapper_pg_dir)-PHYS_OFFSET); in reserve_node_zero() 402 pg_data_t *pgdat = NODE_DATA(node); in free_bootmem_node_bank() local [all …]
|
/linux-2.4.37.9/arch/ia64/mm/ |
D | init.c | 222 pg_data_t *pgdat; in show_mem() local 229 for_each_pgdat(pgdat) { in show_mem() 234 printk("Node ID: %d\n", pgdat->node_id); in show_mem() 235 for(i = 0; i < pgdat->node_size; i++) { in show_mem() 236 if (!VALID_PAGE(pgdat->node_mem_map+i)) in show_mem() 238 if (PageReserved(pgdat->node_mem_map+i)) in show_mem() 240 else if (PageSwapCache(pgdat->node_mem_map+i)) in show_mem() 242 else if (page_count(pgdat->node_mem_map + i)) in show_mem() 243 shared += page_count(pgdat->node_mem_map + i) - 1; in show_mem() 245 printk("%s%ld pages of RAM\n", tchar, pgdat->node_size); in show_mem() [all …]
|
/linux-2.4.37.9/include/asm-x86_64/ |
D | e820.h | 55 extern void e820_bootmem_free(pg_data_t *pgdat, unsigned long start,unsigned long end);
|
/linux-2.4.37.9/arch/x86_64/kernel/ |
D | e820.c | 108 void __init e820_bootmem_free(pg_data_t *pgdat, unsigned long start,unsigned long end) in e820_bootmem_free() argument 129 free_bootmem_node(pgdat, addr, last-addr); in e820_bootmem_free()
|