Lines Matching refs:pgdat
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()
648 pg_data_t *pgdat; in mem_init() local
666 for_each_pgdat(pgdat) in mem_init()
667 totalram_pages += free_all_bootmem_node(pgdat); in mem_init()