Lines Matching refs:root_entry
185 #define ROOT_ENTRY_NR (VTD_PAGE_SIZE/sizeof(struct root_entry))
191 static phys_addr_t root_entry_lctp(struct root_entry *re) in root_entry_lctp()
203 static phys_addr_t root_entry_uctp(struct root_entry *re) in root_entry_uctp()
699 struct root_entry *root = &iommu->root_entry[bus]; in iommu_context_addr()
859 if (!iommu->root_entry) { in free_context_table()
875 free_pgtable_page(iommu->root_entry); in free_context_table()
876 iommu->root_entry = NULL; in free_context_table()
1192 struct root_entry *root; in iommu_alloc_root_entry()
1195 root = (struct root_entry *)alloc_pgtable_page(iommu->node); in iommu_alloc_root_entry()
1205 iommu->root_entry = root; in iommu_alloc_root_entry()
1217 addr = virt_to_phys(iommu->root_entry); in iommu_set_root_entry()
3002 struct root_entry *old_re, in copy_context_table()
3009 struct root_entry re; in copy_context_table()
3106 struct root_entry *old_rt; in copy_translation_tables()
3161 iommu->root_entry[bus].lo = val; in copy_translation_tables()
3168 iommu->root_entry[bus].hi = val; in copy_translation_tables()
3175 __iommu_flush_cache(iommu, iommu->root_entry, PAGE_SIZE); in copy_translation_tables()