Lines Matching defs:iommu
412 static bool translation_pre_enabled(struct intel_iommu *iommu) in translation_pre_enabled()
417 static void clear_translation_pre_enabled(struct intel_iommu *iommu) in clear_translation_pre_enabled()
422 static void init_translation_status(struct intel_iommu *iommu) in init_translation_status()
484 static struct dmar_domain* get_iommu_domain(struct intel_iommu *iommu, u16 did) in get_iommu_domain()
496 static void set_iommu_domain(struct intel_iommu *iommu, u16 did, in set_iommu_domain()
563 static int __iommu_calculate_agaw(struct intel_iommu *iommu, int max_gaw) in __iommu_calculate_agaw()
581 int iommu_calculate_max_sagaw(struct intel_iommu *iommu) in iommu_calculate_max_sagaw()
591 int iommu_calculate_agaw(struct intel_iommu *iommu) in iommu_calculate_agaw()
617 struct intel_iommu *iommu; in domain_update_iommu_coherency() local
647 struct intel_iommu *iommu; in domain_update_iommu_snooping() local
667 struct intel_iommu *iommu; in domain_update_iommu_superpage() local
696 struct context_entry *iommu_context_addr(struct intel_iommu *iommu, u8 bus, in iommu_context_addr()
765 struct intel_iommu *iommu; in device_to_iommu() local
838 static int device_context_mapped(struct intel_iommu *iommu, u8 bus, u8 devfn) in device_context_mapped()
852 static void free_context_table(struct intel_iommu *iommu) in free_context_table()
1190 static int iommu_alloc_root_entry(struct intel_iommu *iommu) in iommu_alloc_root_entry()
1211 static void iommu_set_root_entry(struct intel_iommu *iommu) in iommu_set_root_entry()
1233 void iommu_flush_write_buffer(struct intel_iommu *iommu) in iommu_flush_write_buffer()
1252 static void __iommu_flush_context(struct intel_iommu *iommu, in __iommu_flush_context()
1286 static void __iommu_flush_iotlb(struct intel_iommu *iommu, u16 did, in __iommu_flush_iotlb()
1343 iommu_support_dev_iotlb (struct dmar_domain *domain, struct intel_iommu *iommu, in iommu_support_dev_iotlb()
1486 static void iommu_flush_iotlb_psi(struct intel_iommu *iommu, in iommu_flush_iotlb_psi()
1521 static inline void __mapping_notify_one(struct intel_iommu *iommu, in __mapping_notify_one()
1540 struct intel_iommu *iommu = g_iommus[idx]; in iommu_flush_iova() local
1551 static void iommu_disable_protect_mem_regions(struct intel_iommu *iommu) in iommu_disable_protect_mem_regions()
1571 static void iommu_enable_translation(struct intel_iommu *iommu) in iommu_enable_translation()
1587 static void iommu_disable_translation(struct intel_iommu *iommu) in iommu_disable_translation()
1603 static int iommu_init_domains(struct intel_iommu *iommu) in iommu_init_domains()
1661 static void disable_dmar_iommu(struct intel_iommu *iommu) in disable_dmar_iommu()
1685 static void free_dmar_iommu(struct intel_iommu *iommu) in free_dmar_iommu()
1731 struct intel_iommu *iommu) in domain_attach_iommu()
1765 struct intel_iommu *iommu) in domain_detach_iommu()
1847 static int domain_init(struct dmar_domain *domain, struct intel_iommu *iommu, in domain_init()
1974 struct intel_iommu *iommu, in domain_context_mapping_one()
2123 struct intel_iommu *iommu; member
2142 struct intel_iommu *iommu; in domain_context_mapping() local
2166 struct intel_iommu *iommu = opaque; in domain_context_mapped_cb() local
2173 struct intel_iommu *iommu; in domain_context_mapped() local
2343 struct intel_iommu *iommu; in domain_mapping() local
2372 static void domain_context_clear_one(struct intel_iommu *iommu, u8 bus, u8 devfn) in domain_context_clear_one()
2461 static struct dmar_domain *dmar_insert_one_dev_info(struct intel_iommu *iommu, in dmar_insert_one_dev_info()
2590 struct intel_iommu *iommu; in find_or_alloc_domain() local
2635 struct intel_iommu *iommu; in set_domain_for_dev() local
2806 struct intel_iommu *iommu; in domain_add_dev_info() local
2966 static void intel_iommu_init_qi(struct intel_iommu *iommu) in intel_iommu_init_qi()
3001 static int copy_context_table(struct intel_iommu *iommu, in copy_context_table()
3103 static int copy_translation_tables(struct intel_iommu *iommu) in copy_translation_tables()
3188 struct intel_iommu *iommu; in init_dmars() local
3510 struct intel_iommu *iommu; in __intel_map_single() local
3588 struct intel_iommu *iommu; in intel_unmap() local
3729 struct intel_iommu *iommu; in intel_map_sg() local
3823 struct intel_iommu *iommu; in bounce_map_single() local
4181 struct intel_iommu *iommu = NULL; in init_iommu_hw() local
4215 struct intel_iommu *iommu; in iommu_flush_all() local
4228 struct intel_iommu *iommu = NULL; in iommu_suspend() local
4268 struct intel_iommu *iommu = NULL; in iommu_resume() local
4446 struct intel_iommu *iommu = dmaru->iommu; in intel_iommu_add() local
4528 struct intel_iommu *iommu = dmaru->iommu; in dmar_iommu_hotplug() local
4682 struct intel_iommu *iommu; in intel_iommu_memory_notifier() local
4730 struct intel_iommu *iommu = g_iommus[i]; in free_all_cpu_cached_iovas() local
4755 struct intel_iommu *iommu = NULL; in intel_disable_iommus() local
4773 struct intel_iommu *iommu = dev_to_intel_iommu(dev); in intel_iommu_show_version() local
4784 struct intel_iommu *iommu = dev_to_intel_iommu(dev); in intel_iommu_show_address() local
4793 struct intel_iommu *iommu = dev_to_intel_iommu(dev); in intel_iommu_show_cap() local
4802 struct intel_iommu *iommu = dev_to_intel_iommu(dev); in intel_iommu_show_ecap() local
4811 struct intel_iommu *iommu = dev_to_intel_iommu(dev); in intel_iommu_show_ndoms() local
4820 struct intel_iommu *iommu = dev_to_intel_iommu(dev); in intel_iommu_show_ndoms_used() local
4925 struct intel_iommu *iommu; in intel_iommu_init() local
5069 struct intel_iommu *iommu = opaque; in domain_context_clear_one_cb() local
5081 static void domain_context_clear(struct intel_iommu *iommu, struct device *dev) in domain_context_clear()
5092 struct intel_iommu *iommu; in __dmar_remove_one_dev_info() local
5264 struct intel_iommu *iommu; in aux_domain_add_dev() local
5321 struct intel_iommu *iommu; in aux_domain_remove_dev() local
5345 struct intel_iommu *iommu; in prepare_domain_attach_device() local
5541 struct intel_iommu *iommu; in scalable_mode_support() local
5559 struct intel_iommu *iommu; in iommu_pasid_support() local
5588 struct intel_iommu *iommu; in intel_iommu_add_device() local
5650 struct intel_iommu *iommu; in intel_iommu_remove_device() local
5733 int intel_iommu_enable_pasid(struct intel_iommu *iommu, struct device *dev) in intel_iommu_enable_pasid()
5800 struct intel_iommu *iommu; in intel_svm_device_to_iommu() local
5822 struct intel_iommu *iommu; in intel_iommu_enable_auxd() local