Home
last modified time | relevance | path

Searched refs:top_range (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/iommu/generic_pt/
H A Dkunit_iommu_pt.h120 struct pt_range top_range = pt_top_range(common); in test_increase_level() local
122 if (top_range.va == 0) in test_increase_level()
123 do_map(test, top_range.last_va + 1, 0, in test_increase_level()
126 do_map(test, top_range.va - priv->smallest_pgsz, 0, in test_increase_level()
130 top_range.top_level + 1); in test_increase_level()
243 struct pt_range top_range = pt_top_range(priv->common); in test_unmap_split() local
258 pt_vaddr_t vaddr = top_range.va; in test_unmap_split()
332 struct pt_range top_range = pt_top_range(priv->common); in test_random_map() local
342 clamp_range(test, &top_range); in test_random_map()
346 struct pt_range *range = &top_range; in test_random_map()
[all …]
H A Diommu_pt.h682 struct pt_range top_range = in increase_top() local
684 struct pt_state pts = pt_init_top(&top_range); in increase_top()
686 top_range.va = range->va; in increase_top()
687 top_range.last_va = range->last_va; in increase_top()
689 if (!pt_check_range(&top_range) && in increase_top()
712 top_range.va = 0; in increase_top()
713 top_range.top_level = pts.level; in increase_top()
1115 struct pt_range top_range = pt_top_range(common); in pt_init_common() local
1117 if (PT_WARN_ON(top_range.top_level > PT_MAX_TOP_LEVEL)) in pt_init_common()
1120 if (top_range.top_level == PT_MAX_TOP_LEVEL || in pt_init_common()
[all …]
H A Dkunit_generic_pt.h413 struct pt_range top_range = pt_top_range(pts->range->common); in safe_pt_num_items_lg2() local
414 struct pt_state top_pts = pt_init_top(&top_range); in safe_pt_num_items_lg2()
420 if (pts->level == top_range.top_level) in safe_pt_num_items_lg2()
/linux/drivers/iommu/generic_pt/fmt/
H A Dx86_64.h257 const struct pt_range *top_range, in x86_64_pt_iommu_fmt_hw_info() argument
260 info->gcr3_pt = virt_to_phys(top_range->top_table); in x86_64_pt_iommu_fmt_hw_info()
262 info->levels = top_range->top_level + 1; in x86_64_pt_iommu_fmt_hw_info()
H A Dvtdss.h262 const struct pt_range *top_range, in vtdss_pt_iommu_fmt_hw_info() argument
265 info->ssptptr = virt_to_phys(top_range->top_table); in vtdss_pt_iommu_fmt_hw_info()
272 info->aw = top_range->top_level - 1; in vtdss_pt_iommu_fmt_hw_info()
H A Damdv1.h392 const struct pt_range *top_range, in amdv1pt_iommu_fmt_hw_info() argument
395 info->host_pt_root = virt_to_phys(top_range->top_table); in amdv1pt_iommu_fmt_hw_info()
397 info->mode = top_range->top_level + 1; in amdv1pt_iommu_fmt_hw_info()