Lines Matching refs:root_entry
185 struct root_entry { struct
189 #define ROOT_ENTRY_NR (VTD_PAGE_SIZE/sizeof(struct root_entry)) argument
190 static inline bool root_present(struct root_entry *root) in root_present()
194 static inline void set_root_present(struct root_entry *root) in set_root_present()
198 static inline void set_root_value(struct root_entry *root, unsigned long value) in set_root_value()
204 get_context_addr_from_root(struct root_entry *root) in get_context_addr_from_root()
691 struct root_entry *root; in device_to_context_entry()
697 root = &iommu->root_entry[bus]; in device_to_context_entry()
718 struct root_entry *root; in device_context_mapped()
724 root = &iommu->root_entry[bus]; in device_context_mapped()
738 struct root_entry *root; in clear_context_table()
743 root = &iommu->root_entry[bus]; in clear_context_table()
755 struct root_entry *root; in free_context_table()
761 if (!iommu->root_entry) { in free_context_table()
765 root = &iommu->root_entry[i]; in free_context_table()
770 free_pgtable_page(iommu->root_entry); in free_context_table()
771 iommu->root_entry = NULL; in free_context_table()
953 struct root_entry *root; in iommu_alloc_root_entry()
956 root = (struct root_entry *)alloc_pgtable_page(iommu->node); in iommu_alloc_root_entry()
963 iommu->root_entry = root; in iommu_alloc_root_entry()
975 addr = iommu->root_entry; in iommu_set_root_entry()