Lines Matching refs:bln_stats
62 static bln_stats_t bln_stats;
216 totalpgs = bln_stats.bln_new_target - bln_stats.bln_current_pages;
274 meta_start = bln_stats.bln_max_pages;
281 reassign_pfn(bln_stats.bln_max_pages + i, framelist[i]);
290 hat_devload(kas.a_hat, va, metasz, bln_stats.bln_max_pages,
299 page_array[i].p_pagenum = bln_stats.bln_max_pages++;
311 page_array[i].p_pagenum = bln_stats.bln_max_pages++;
334 mem->memseg.pages_end = bln_stats.bln_max_pages - 1;
347 mem_node_add_slice(meta_start, bln_stats.bln_max_pages);
625 if (new_target_pages > bln_stats.bln_max_pages) {
627 new_target_pages, pgcnt_t, bln_stats.bln_max_pages);
633 new_target_pages, bln_stats.bln_max_pages);
636 bln_stats.bln_new_target = bln_stats.bln_max_pages;
638 bln_stats.bln_new_target = new_target_pages;
673 if (bln_stats.bln_new_target != bln_stats.bln_current_pages) {
685 if (bln_stats.bln_new_target != bln_stats.bln_current_pages) {
686 if (bln_stats.bln_new_target <
687 bln_stats.bln_current_pages) {
690 bln_stats.bln_current_pages -
691 bln_stats.bln_new_target);
692 } else if (bln_stats.bln_new_target >
693 bln_stats.bln_current_pages) {
696 bln_stats.bln_new_target -
697 bln_stats.bln_current_pages);
707 bln_stats.bln_current_pages += rv;
710 if (bln_stats.bln_current_pages < bln_stats.bln_low)
711 bln_stats.bln_low = bln_stats.bln_current_pages;
712 else if (bln_stats.bln_current_pages > bln_stats.bln_high)
713 bln_stats.bln_high = bln_stats.bln_current_pages;
750 bln_stats.bln_current_pages = bln_stats.bln_low = nr_pages;
751 bln_stats.bln_new_target = bln_stats.bln_high = nr_pages;
752 bln_stats.bln_max_pages = nr_pages;
755 bln_stats.bln_hard_limit = (spgcnt_t)HYPERVISOR_memory_op(
770 atomic_add_long((ulong_t *)&bln_stats.bln_hv_pages, -delta);
776 atomic_add_long((ulong_t *)&bln_stats.bln_hv_pages, delta);
799 atomic_add_long((ulong_t *)&bln_stats.bln_hv_pages, -rv);
922 atomic_add_long((ulong_t *)&bln_stats.bln_hv_pages, page_cnt);
1030 atomic_add_long((ulong_t *)&bln_stats.bln_hv_pages, -(long)page_cnt);
1048 return (ptokb(bln_stats.bln_current_pages));
1050 return (ptokb(bln_stats.bln_new_target));
1052 return (ptokb(bln_stats.bln_low));
1054 return (ptokb(bln_stats.bln_high));
1056 return (ptokb(bln_stats.bln_hard_limit));