Lines Matching refs:has
610 struct hv_hotadd_state *has) in hv_mem_hot_add() argument
620 has->ha_end_pfn += HA_CHUNK; in hv_mem_hot_add()
630 has->covered_end_pfn += processed_pfn; in hv_mem_hot_add()
652 has->ha_end_pfn -= HA_CHUNK; in hv_mem_hot_add()
653 has->covered_end_pfn -= processed_pfn; in hv_mem_hot_add()
675 struct hv_hotadd_state *has; in hv_online_page() local
680 has = list_entry(cur, struct hv_hotadd_state, list); in hv_online_page()
681 cur_start_pgp = (unsigned long)pfn_to_page(has->start_pfn); in hv_online_page()
682 cur_end_pgp = (unsigned long)pfn_to_page(has->covered_end_pfn); in hv_online_page()
700 struct hv_hotadd_state *has; in pfn_covered() local
707 has = list_entry(cur, struct hv_hotadd_state, list); in pfn_covered()
713 if ((start_pfn >= has->end_pfn)) in pfn_covered()
719 if ((start_pfn + pfn_cnt) > has->end_pfn) { in pfn_covered()
720 residual = (start_pfn + pfn_cnt - has->end_pfn); in pfn_covered()
728 has->end_pfn += new_inc; in pfn_covered()
736 if (has->covered_end_pfn != start_pfn) in pfn_covered()
737 has->covered_end_pfn = start_pfn; in pfn_covered()
753 struct hv_hotadd_state *has; in handle_pg_range() local
761 has = list_entry(cur, struct hv_hotadd_state, list); in handle_pg_range()
767 if ((start_pfn >= has->end_pfn)) in handle_pg_range()
770 old_covered_state = has->covered_end_pfn; in handle_pg_range()
772 if (start_pfn < has->ha_end_pfn) { in handle_pg_range()
778 pgs_ol = has->ha_end_pfn - start_pfn; in handle_pg_range()
788 if (start_pfn > has->start_pfn && in handle_pg_range()
792 has->covered_end_pfn += pgs_ol; in handle_pg_range()
796 if ((has->ha_end_pfn < has->end_pfn) && (pfn_cnt > 0)) { in handle_pg_range()
804 size = (has->end_pfn - has->ha_end_pfn); in handle_pg_range()
812 hv_mem_hot_add(has->ha_end_pfn, size, pfn_cnt, has); in handle_pg_range()
818 return has->covered_end_pfn - old_covered_state; in handle_pg_range()
1567 struct hv_hotadd_state *has; in balloon_remove() local
1583 has = list_entry(cur, struct hv_hotadd_state, list); in balloon_remove()
1584 list_del(&has->list); in balloon_remove()
1585 kfree(has); in balloon_remove()