Lines Matching refs:group
815 static int auto_movable_stats_account_group(struct memory_group *group, in auto_movable_stats_account_group() argument
833 pages = group->present_movable_pages * 100 / ratio; in auto_movable_stats_account_group()
834 pages -= group->present_kernel_pages; in auto_movable_stats_account_group()
838 stats->movable_pages += group->present_movable_pages; in auto_movable_stats_account_group()
842 static bool auto_movable_can_online_movable(int nid, struct memory_group *group, in auto_movable_can_online_movable() argument
874 group, &group_stats); in auto_movable_can_online_movable()
880 if (group && group->is_dynamic) in auto_movable_can_online_movable()
881 kernel_early_pages += group->present_kernel_pages; in auto_movable_can_online_movable()
963 struct memory_group *group, in auto_movable_zone_for_pfn() argument
973 if (group && !group->is_dynamic) { in auto_movable_zone_for_pfn()
974 max_pages = group->s.max_pages; in auto_movable_zone_for_pfn()
975 online_pages = group->present_movable_pages; in auto_movable_zone_for_pfn()
978 if (group->present_kernel_pages) in auto_movable_zone_for_pfn()
980 } else if (!group || group->d.unit_pages == nr_pages) { in auto_movable_zone_for_pfn()
983 max_pages = group->d.unit_pages; in auto_movable_zone_for_pfn()
990 pfn = ALIGN_DOWN(pfn, group->d.unit_pages); in auto_movable_zone_for_pfn()
991 end_pfn = pfn + group->d.unit_pages; in auto_movable_zone_for_pfn()
1009 if (!auto_movable_can_online_movable(NUMA_NO_NODE, group, nr_pages)) in auto_movable_zone_for_pfn()
1014 !auto_movable_can_online_movable(nid, group, nr_pages)) in auto_movable_zone_for_pfn()
1048 struct memory_group *group, unsigned long start_pfn, in zone_for_pfn_range() argument
1058 return auto_movable_zone_for_pfn(nid, group, start_pfn, nr_pages); in zone_for_pfn_range()
1067 void adjust_present_page_count(struct page *page, struct memory_group *group, in adjust_present_page_count() argument
1082 if (group && movable) in adjust_present_page_count()
1083 group->present_movable_pages += nr_pages; in adjust_present_page_count()
1084 else if (group && !movable) in adjust_present_page_count()
1085 group->present_kernel_pages += nr_pages; in adjust_present_page_count()
1138 struct zone *zone, struct memory_group *group) in online_pages() argument
1189 adjust_present_page_count(pfn_to_page(pfn), group, nr_pages); in online_pages()
1399 struct memory_group *group = NULL; in add_memory_resource() local
1412 group = memory_group_find_by_id(nid); in add_memory_resource()
1413 if (!group) in add_memory_resource()
1415 nid = group->nid; in add_memory_resource()
1461 ret = create_memory_block_devices(start, size, params.altmap, group); in add_memory_resource()
1872 struct zone *zone, struct memory_group *group) in offline_pages() argument
2013 adjust_present_page_count(pfn_to_page(start_pfn), group, -nr_pages); in offline_pages()