Lines Matching refs:intel_iommu

155 static struct intel_iommu **g_iommus;
307 struct intel_iommu *iommu; /* the corresponding iommu */
392 static bool translation_pre_enabled(struct intel_iommu *iommu) in translation_pre_enabled()
397 static void clear_translation_pre_enabled(struct intel_iommu *iommu) in clear_translation_pre_enabled()
402 static void init_translation_status(struct intel_iommu *iommu) in init_translation_status()
457 static struct dmar_domain* get_iommu_domain(struct intel_iommu *iommu, u16 did) in get_iommu_domain()
469 static void set_iommu_domain(struct intel_iommu *iommu, u16 did, in set_iommu_domain()
541 static int __iommu_calculate_agaw(struct intel_iommu *iommu, int max_gaw) in __iommu_calculate_agaw()
559 int iommu_calculate_max_sagaw(struct intel_iommu *iommu) in iommu_calculate_max_sagaw()
569 int iommu_calculate_agaw(struct intel_iommu *iommu) in iommu_calculate_agaw()
575 struct intel_iommu *domain_get_iommu(struct dmar_domain *domain) in domain_get_iommu()
592 static inline bool iommu_paging_structure_coherency(struct intel_iommu *iommu) in iommu_paging_structure_coherency()
601 struct intel_iommu *iommu; in domain_update_iommu_coherency()
628 static bool domain_update_iommu_snooping(struct intel_iommu *skip) in domain_update_iommu_snooping()
631 struct intel_iommu *iommu; in domain_update_iommu_snooping()
656 struct intel_iommu *skip) in domain_update_iommu_superpage()
659 struct intel_iommu *iommu; in domain_update_iommu_superpage()
762 struct context_entry *iommu_context_addr(struct intel_iommu *iommu, u8 bus, in iommu_context_addr()
858 static bool iommu_is_dummy(struct intel_iommu *iommu, struct device *dev) in iommu_is_dummy()
875 struct intel_iommu *device_to_iommu(struct device *dev, u8 *bus, u8 *devfn) in device_to_iommu()
879 struct intel_iommu *iommu; in device_to_iommu()
952 static int device_context_mapped(struct intel_iommu *iommu, u8 bus, u8 devfn) in device_context_mapped()
966 static void free_context_table(struct intel_iommu *iommu) in free_context_table()
1302 static int iommu_alloc_root_entry(struct intel_iommu *iommu) in iommu_alloc_root_entry()
1323 static void iommu_set_root_entry(struct intel_iommu *iommu) in iommu_set_root_entry()
1350 void iommu_flush_write_buffer(struct intel_iommu *iommu) in iommu_flush_write_buffer()
1369 static void __iommu_flush_context(struct intel_iommu *iommu, in __iommu_flush_context()
1403 static void __iommu_flush_iotlb(struct intel_iommu *iommu, u16 did, in __iommu_flush_iotlb()
1460 iommu_support_dev_iotlb (struct dmar_domain *domain, struct intel_iommu *iommu, in iommu_support_dev_iotlb()
1619 static void domain_flush_piotlb(struct intel_iommu *iommu, in domain_flush_piotlb()
1633 static void iommu_flush_iotlb_psi(struct intel_iommu *iommu, in iommu_flush_iotlb_psi()
1673 static inline void __mapping_notify_one(struct intel_iommu *iommu, in __mapping_notify_one()
1693 struct intel_iommu *iommu = g_iommus[idx]; in intel_flush_iotlb_all()
1708 static void iommu_disable_protect_mem_regions(struct intel_iommu *iommu) in iommu_disable_protect_mem_regions()
1728 static void iommu_enable_translation(struct intel_iommu *iommu) in iommu_enable_translation()
1744 static void iommu_disable_translation(struct intel_iommu *iommu) in iommu_disable_translation()
1764 static int iommu_init_domains(struct intel_iommu *iommu) in iommu_init_domains()
1819 static void disable_dmar_iommu(struct intel_iommu *iommu) in disable_dmar_iommu()
1843 static void free_dmar_iommu(struct intel_iommu *iommu) in free_dmar_iommu()
1904 struct intel_iommu *iommu) in domain_attach_iommu()
1936 struct intel_iommu *iommu) in domain_detach_iommu()
2035 struct intel_iommu *iommu, in domain_context_mapping_one()
2185 struct intel_iommu *iommu;
2204 struct intel_iommu *iommu; in domain_context_mapping()
2228 struct intel_iommu *iommu = opaque; in domain_context_mapped_cb()
2235 struct intel_iommu *iommu; in domain_context_mapped()
2419 struct intel_iommu *iommu = info->iommu; in domain_context_clear_one()
2515 static int domain_setup_first_level(struct intel_iommu *iommu, in domain_setup_first_level()
2557 static struct dmar_domain *dmar_insert_one_dev_info(struct intel_iommu *iommu, in dmar_insert_one_dev_info()
2764 struct intel_iommu *iommu; in domain_add_dev_info()
2885 static void intel_iommu_init_qi(struct intel_iommu *iommu) in intel_iommu_init_qi()
2920 static int copy_context_table(struct intel_iommu *iommu, in copy_context_table()
3022 static int copy_translation_tables(struct intel_iommu *iommu) in copy_translation_tables()
3107 struct intel_iommu *iommu = data; in intel_vcmd_ioasid_alloc()
3128 struct intel_iommu *iommu = data; in intel_vcmd_ioasid_free()
3143 static void register_pasid_allocator(struct intel_iommu *iommu) in register_pasid_allocator()
3186 struct intel_iommu *iommu; in init_dmars()
3212 g_iommus = kcalloc(g_num_of_iommus, sizeof(struct intel_iommu *), in init_dmars()
3478 struct intel_iommu *iommu = NULL; in init_iommu_hw()
3507 struct intel_iommu *iommu; in iommu_flush_all()
3520 struct intel_iommu *iommu = NULL; in iommu_suspend()
3560 struct intel_iommu *iommu = NULL; in iommu_resume()
3813 struct intel_iommu *iommu = dmaru->iommu; in intel_iommu_add()
3894 struct intel_iommu *iommu = dmaru->iommu; in dmar_iommu_hotplug()
4070 struct intel_iommu *iommu; in intel_iommu_memory_notifier()
4098 struct intel_iommu *iommu = NULL; in intel_disable_iommus()
4108 struct intel_iommu *iommu = NULL; in intel_iommu_shutdown()
4125 static inline struct intel_iommu *dev_to_intel_iommu(struct device *dev) in dev_to_intel_iommu()
4129 return container_of(iommu_dev, struct intel_iommu, iommu); in dev_to_intel_iommu()
4135 struct intel_iommu *iommu = dev_to_intel_iommu(dev); in version_show()
4145 struct intel_iommu *iommu = dev_to_intel_iommu(dev); in address_show()
4153 struct intel_iommu *iommu = dev_to_intel_iommu(dev); in cap_show()
4161 struct intel_iommu *iommu = dev_to_intel_iommu(dev); in ecap_show()
4169 struct intel_iommu *iommu = dev_to_intel_iommu(dev); in domains_supported_show()
4177 struct intel_iommu *iommu = dev_to_intel_iommu(dev); in domains_used_show()
4239 struct intel_iommu *iommu __maybe_unused; in probe_acpi_namespace_devices()
4282 struct intel_iommu *iommu; in intel_iommu_init()
4447 struct intel_iommu *iommu; in __dmar_remove_one_dev_info()
4630 struct intel_iommu *iommu; in aux_domain_add_dev()
4706 struct intel_iommu *iommu; in aux_domain_remove_dev()
4734 struct intel_iommu *iommu; in prepare_domain_attach_device()
4888 struct intel_iommu *iommu; in intel_iommu_sva_invalidate()
5161 struct intel_iommu *iommu; in intel_iommu_probe_device()
5175 struct intel_iommu *iommu; in intel_iommu_release_device()
5249 int intel_iommu_enable_pasid(struct intel_iommu *iommu, struct device *dev) in intel_iommu_enable_pasid()
5310 struct intel_iommu *iommu; in intel_iommu_enable_auxd()
5350 struct intel_iommu *iommu; in intel_iommu_enable_sva()
5379 struct intel_iommu *iommu = info->iommu; in intel_iommu_disable_sva()
5550 struct intel_iommu *iommu; in intel_iommu_iotlb_sync_map()