Lines Matching refs:pamt_size
548 unsigned long pamt_size[TDX_PS_NR]; in tdmr_set_up_pamt() local
562 pamt_size[pgsz] = tdmr_get_pamt_sz(tdmr, pgsz, in tdmr_set_up_pamt()
564 tdmr_pamt_size += pamt_size[pgsz]; in tdmr_set_up_pamt()
584 tdmr_pamt_base += pamt_size[pgsz]; in tdmr_set_up_pamt()
588 tdmr->pamt_4k_size = pamt_size[TDX_PS_4K]; in tdmr_set_up_pamt()
590 tdmr->pamt_2m_size = pamt_size[TDX_PS_2M]; in tdmr_set_up_pamt()
592 tdmr->pamt_1g_size = pamt_size[TDX_PS_1G]; in tdmr_set_up_pamt()
598 unsigned long *pamt_size) in tdmr_get_pamt() argument
612 *pamt_size = pamt_sz; in tdmr_get_pamt()
618 unsigned long pamt_base, pamt_size; in tdmr_do_pamt_func() local
620 tdmr_get_pamt(tdmr, &pamt_base, &pamt_size); in tdmr_do_pamt_func()
623 if (!pamt_size) in tdmr_do_pamt_func()
629 pamt_func(pamt_base, pamt_size); in tdmr_do_pamt_func()
632 static void free_pamt(unsigned long pamt_base, unsigned long pamt_size) in free_pamt() argument
634 free_contig_range(pamt_base >> PAGE_SHIFT, pamt_size >> PAGE_SHIFT); in free_pamt()
707 unsigned long pamt_size = 0; in tdmrs_count_pamt_kb() local
714 pamt_size += size; in tdmrs_count_pamt_kb()
717 return pamt_size / 1024; in tdmrs_count_pamt_kb()
827 unsigned long pamt_base, pamt_size, pamt_end; in tdmr_populate_rsvd_pamts() local
829 tdmr_get_pamt(tmp, &pamt_base, &pamt_size); in tdmr_populate_rsvd_pamts()
831 WARN_ON_ONCE(!pamt_size || !pamt_base); in tdmr_populate_rsvd_pamts()
833 pamt_end = pamt_base + pamt_size; in tdmr_populate_rsvd_pamts()