Lines Matching refs:pgdat
432 static void update_pgdat_span(struct pglist_data *pgdat) in update_pgdat_span() argument
437 for (zone = pgdat->node_zones; in update_pgdat_span()
438 zone < pgdat->node_zones + MAX_NR_ZONES; zone++) { in update_pgdat_span()
456 pgdat->node_start_pfn = node_start_pfn; in update_pgdat_span()
457 pgdat->node_spanned_pages = node_end_pfn - node_start_pfn; in update_pgdat_span()
465 struct pglist_data *pgdat = zone->zone_pgdat; in remove_pfn_range_from_zone() local
490 update_pgdat_span(pgdat); in remove_pfn_range_from_zone()
653 static void __meminit resize_pgdat_range(struct pglist_data *pgdat, unsigned long start_pfn, in resize_pgdat_range() argument
656 unsigned long old_end_pfn = pgdat_end_pfn(pgdat); in resize_pgdat_range()
658 if (!pgdat->node_spanned_pages || start_pfn < pgdat->node_start_pfn) in resize_pgdat_range()
659 pgdat->node_start_pfn = start_pfn; in resize_pgdat_range()
661 pgdat->node_spanned_pages = max(start_pfn + nr_pages, old_end_pfn) - pgdat->node_start_pfn; in resize_pgdat_range()
691 struct pglist_data *pgdat = zone->zone_pgdat; in move_pfn_range_to_zone() local
692 int nid = pgdat->node_id; in move_pfn_range_to_zone()
699 resize_pgdat_range(pgdat, start_pfn, nr_pages); in move_pfn_range_to_zone()
786 pg_data_t *pgdat = NODE_DATA(nid); in auto_movable_can_online_movable() local
797 zone = pgdat->node_zones + i; in auto_movable_can_online_movable()
837 struct pglist_data *pgdat = NODE_DATA(nid); in default_kernel_zone_for_pfn() local
841 struct zone *zone = &pgdat->node_zones[zid]; in default_kernel_zone_for_pfn()
847 return &pgdat->node_zones[ZONE_NORMAL]; in default_kernel_zone_for_pfn()
1164 static void reset_node_present_pages(pg_data_t *pgdat) in reset_node_present_pages() argument
1168 for (z = pgdat->node_zones; z < pgdat->node_zones + MAX_NR_ZONES; z++) in reset_node_present_pages()
1171 pgdat->node_present_pages = 0; in reset_node_present_pages()
1177 struct pglist_data *pgdat; in hotadd_init_pgdat() local
1185 pgdat = NODE_DATA(nid); in hotadd_init_pgdat()
1188 free_area_init_core_hotplug(pgdat); in hotadd_init_pgdat()
1194 build_all_zonelists(pgdat); in hotadd_init_pgdat()
1202 reset_node_managed_pages(pgdat); in hotadd_init_pgdat()
1203 reset_node_present_pages(pgdat); in hotadd_init_pgdat()
1205 return pgdat; in hotadd_init_pgdat()
1221 pg_data_t *pgdat; in __try_online_node() local
1227 pgdat = hotadd_init_pgdat(nid); in __try_online_node()
1228 if (!pgdat) { in __try_online_node()
1737 struct pglist_data *pgdat = zone->zone_pgdat; in node_states_check_changes_offline() local
1753 present_pages += pgdat->node_zones[zt].present_pages; in node_states_check_changes_offline()
1766 present_pages += pgdat->node_zones[ZONE_MOVABLE].present_pages; in node_states_check_changes_offline()