Lines Matching refs:pgdat

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()
585 pages += pgdat->node_zones[ZONE_DMA].nr_inactive_pages; in freeable_lowmem()
586 pages += pgdat->node_zones[ZONE_NORMAL].free_pages; in freeable_lowmem()
587 pages += pgdat->node_zones[ZONE_NORMAL].nr_active_pages; in freeable_lowmem()
588 pages += pgdat->node_zones[ZONE_NORMAL].nr_inactive_pages; in freeable_lowmem()
602 void show_free_areas_core(pg_data_t *pgdat) in show_free_areas_core() argument
606 pg_data_t *tmpdat = pgdat; in show_free_areas_core()
630 zone_t *zone = pgdat->node_zones + type; in show_free_areas_core()
666 static inline void build_zonelists(pg_data_t *pgdat) in build_zonelists() argument
674 zonelist = pgdat->node_zonelists + i; in build_zonelists()
691 zone = pgdat->node_zones + ZONE_HIGHMEM; in build_zonelists()
699 zone = pgdat->node_zones + ZONE_NORMAL; in build_zonelists()
703 zone = pgdat->node_zones + ZONE_DMA; in build_zonelists()
761 void __init free_area_init_core(int nid, pg_data_t *pgdat, struct page **gmap, in free_area_init_core() argument
794 lmem_map = (struct page *) alloc_bootmem_node(pgdat, map_size); in free_area_init_core()
798 *gmap = pgdat->node_mem_map = lmem_map; in free_area_init_core()
799 pgdat->node_size = totalpages; in free_area_init_core()
800 pgdat->node_start_paddr = zone_start_paddr; in free_area_init_core()
801 pgdat->node_start_mapnr = (lmem_map - mem_map); in free_area_init_core()
802 pgdat->nr_zones = 0; in free_area_init_core()
806 zone_t *zone = pgdat->node_zones + j; in free_area_init_core()
821 zone->zone_pgdat = pgdat; in free_area_init_core()
838 alloc_bootmem_node(pgdat, zone->wait_table_size in free_area_init_core()
844 pgdat->nr_zones = j+1; in free_area_init_core()
856 zone_t * lower_zone = pgdat->node_zones + idx; in free_area_init_core()
934 (unsigned long *) alloc_bootmem_node(pgdat, bitmap_size); in free_area_init_core()
937 build_zonelists(pgdat); in free_area_init_core()