Lines Matching refs:zi
1642 static int zoneinfo_parse(struct zoneinfo *zi) { in zoneinfo_parse() argument
1655 memset(zi, 0, sizeof(struct zoneinfo)); in zoneinfo_parse()
1676 node = &zi->nodes[node_idx]; in zoneinfo_parse()
1698 zi->node_count = node_idx + 1; in zoneinfo_parse()
1701 for (node_idx = 0; node_idx < zi->node_count; node_idx++) { in zoneinfo_parse()
1702 node = &zi->nodes[node_idx]; in zoneinfo_parse()
1704 struct zoneinfo_zone *zone = &zi->nodes[node_idx].zones[zone_idx]; in zoneinfo_parse()
1705 zi->totalreserve_pages += zone->max_protection + zone->fields.field.high; in zoneinfo_parse()
1707 zi->total_inactive_file += node->fields.field.nr_inactive_file; in zoneinfo_parse()
1708 zi->total_active_file += node->fields.field.nr_active_file; in zoneinfo_parse()
1709 zi->total_workingset_refault += node->fields.field.workingset_refault; in zoneinfo_parse()
2259 void calc_zone_watermarks(struct zoneinfo *zi, struct zone_watermarks *watermarks) { in calc_zone_watermarks() argument
2262 for (int node_idx = 0; node_idx < zi->node_count; node_idx++) { in calc_zone_watermarks()
2263 struct zoneinfo_node *node = &zi->nodes[node_idx]; in calc_zone_watermarks()
2407 struct zoneinfo zi; in mp_event_psi() local
2409 if (zoneinfo_parse(&zi) < 0) { in mp_event_psi()
2414 calc_zone_watermarks(&zi, &watermarks); in mp_event_psi()
2538 struct zoneinfo zi; in mp_event_common() local
2621 if (meminfo_parse(&mi) < 0 || zoneinfo_parse(&zi) < 0) { in mp_event_common()
2629 other_free = mi.field.nr_free_pages - zi.totalreserve_pages; in mp_event_common()
2750 zi.totalreserve_pages * page_k, in mp_event_common()