Lines Matching refs:iommu_group
46 struct iommu_group { struct
72 ssize_t (*show)(struct iommu_group *group, char *buf); argument
73 ssize_t (*store)(struct iommu_group *group,
90 static int iommu_alloc_default_domain(struct iommu_group *group,
97 struct iommu_group *group);
98 static int __iommu_group_set_domain(struct iommu_group *group,
100 static int iommu_create_device_direct_mappings(struct iommu_group *group,
102 static struct iommu_group *iommu_group_get_for_dev(struct device *dev);
103 static ssize_t iommu_group_store_type(struct iommu_group *group,
113 container_of(_kobj, struct iommu_group, kobj)
309 struct iommu_group *group; in __iommu_probe_device()
389 lockdep_assert_held(&dev->iommu_group->mutex); in iommu_group_do_dma_first_attach()
402 struct iommu_group *group; in iommu_probe_device()
513 struct iommu_group *group = to_iommu_group(kobj); in iommu_group_attr_show()
526 struct iommu_group *group = to_iommu_group(kobj); in iommu_group_attr_store()
539 static int iommu_group_create_file(struct iommu_group *group, in iommu_group_create_file()
545 static void iommu_group_remove_file(struct iommu_group *group, in iommu_group_remove_file()
551 static ssize_t iommu_group_show_name(struct iommu_group *group, char *buf) in iommu_group_show_name()
632 int iommu_get_group_resv_regions(struct iommu_group *group, in iommu_get_group_resv_regions()
661 static ssize_t iommu_group_show_resv_regions(struct iommu_group *group, in iommu_group_show_resv_regions()
683 static ssize_t iommu_group_show_type(struct iommu_group *group, in iommu_group_show_type()
724 struct iommu_group *group = to_iommu_group(kobj); in iommu_group_release()
758 struct iommu_group *iommu_group_alloc(void) in iommu_group_alloc()
760 struct iommu_group *group; in iommu_group_alloc()
819 struct iommu_group *iommu_group_get_by_id(int id) in iommu_group_get_by_id()
822 struct iommu_group *group; in iommu_group_get_by_id()
838 group = container_of(group_kobj, struct iommu_group, kobj); in iommu_group_get_by_id()
856 void *iommu_group_get_iommudata(struct iommu_group *group) in iommu_group_get_iommudata()
872 void iommu_group_set_iommudata(struct iommu_group *group, void *iommu_data, in iommu_group_set_iommudata()
888 int iommu_group_set_name(struct iommu_group *group, const char *name) in iommu_group_set_name()
915 static int iommu_create_device_direct_mappings(struct iommu_group *group, in iommu_create_device_direct_mappings()
987 int iommu_group_add_device(struct iommu_group *group, struct device *dev) in iommu_group_add_device()
1027 dev->iommu_group = group; in iommu_group_add_device()
1047 dev->iommu_group = NULL; in iommu_group_add_device()
1070 struct iommu_group *group = dev->iommu_group; in iommu_group_remove_device()
1098 dev->iommu_group = NULL; in iommu_group_remove_device()
1103 static int iommu_group_device_count(struct iommu_group *group) in iommu_group_device_count()
1114 static int __iommu_group_for_each_dev(struct iommu_group *group, void *data, in __iommu_group_for_each_dev()
1139 int iommu_group_for_each_dev(struct iommu_group *group, void *data, in iommu_group_for_each_dev()
1160 struct iommu_group *iommu_group_get(struct device *dev) in iommu_group_get()
1162 struct iommu_group *group = dev->iommu_group; in iommu_group_get()
1178 struct iommu_group *iommu_group_ref_get(struct iommu_group *group) in iommu_group_ref_get()
1192 void iommu_group_put(struct iommu_group *group) in iommu_group_put()
1416 int iommu_group_id(struct iommu_group *group) in iommu_group_id()
1422 static struct iommu_group *get_pci_alias_group(struct pci_dev *pdev,
1441 static struct iommu_group *get_pci_function_alias_group(struct pci_dev *pdev, in get_pci_function_alias_group()
1445 struct iommu_group *group; in get_pci_function_alias_group()
1475 static struct iommu_group *get_pci_alias_group(struct pci_dev *pdev, in get_pci_alias_group()
1479 struct iommu_group *group; in get_pci_alias_group()
1513 struct iommu_group *group;
1534 struct iommu_group *generic_device_group(struct device *dev) in generic_device_group()
1544 struct iommu_group *pci_device_group(struct device *dev) in pci_device_group()
1549 struct iommu_group *group = NULL; in pci_device_group()
1609 struct iommu_group *fsl_mc_device_group(struct device *dev) in fsl_mc_device_group()
1612 struct iommu_group *group; in fsl_mc_device_group()
1635 struct iommu_group *group, in iommu_group_alloc_default_domain()
1657 static int iommu_alloc_default_domain(struct iommu_group *group, in iommu_alloc_default_domain()
1680 static struct iommu_group *iommu_group_get_for_dev(struct device *dev) in iommu_group_get_for_dev()
1683 struct iommu_group *group; in iommu_group_get_for_dev()
1709 struct iommu_domain *iommu_group_default_domain(struct iommu_group *group) in iommu_group_default_domain()
1717 struct iommu_group *group; in probe_iommu_group()
1781 struct iommu_group *group) in probe_alloc_default_domain()
1798 static int __iommu_group_dma_first_attach(struct iommu_group *group) in __iommu_group_dma_first_attach()
1814 static void __iommu_group_dma_finalize(struct iommu_group *group) in __iommu_group_dma_finalize()
1822 struct iommu_group *group = data; in iommu_do_create_direct_mappings()
1829 static int iommu_group_create_direct_mappings(struct iommu_group *group) in iommu_group_create_direct_mappings()
1837 struct iommu_group *group, *next; in bus_iommu_probe()
1918 bool iommu_group_has_isolated_msi(struct iommu_group *group) in iommu_group_has_isolated_msi()
1998 static void __iommu_group_set_core_domain(struct iommu_group *group) in __iommu_group_set_core_domain()
2042 struct iommu_group *group; in iommu_attach_device()
2078 struct iommu_group *group; in iommu_detach_device()
2099 struct iommu_group *group; in iommu_get_domain_for_dev()
2119 return dev->iommu_group->default_domain; in iommu_get_dma_domain()
2140 struct iommu_group *group) in __iommu_attach_group()
2182 int iommu_attach_group(struct iommu_domain *domain, struct iommu_group *group) in iommu_attach_group()
2204 static int __iommu_group_set_domain(struct iommu_group *group, in __iommu_group_set_domain()
2241 void iommu_detach_group(struct iommu_domain *domain, struct iommu_group *group) in iommu_detach_group()
2834 static int iommu_change_dev_def_domain(struct iommu_group *group, in iommu_change_dev_def_domain()
2965 static ssize_t iommu_group_store_type(struct iommu_group *group, in iommu_group_store_type()
3052 static bool iommu_is_default_domain(struct iommu_group *group) in iommu_is_default_domain()
3080 struct iommu_group *group = iommu_group_get(dev); in iommu_device_use_default_domain()
3114 struct iommu_group *group = iommu_group_get(dev); in iommu_device_unuse_default_domain()
3127 static int __iommu_group_alloc_blocking_domain(struct iommu_group *group) in __iommu_group_alloc_blocking_domain()
3150 static int __iommu_take_dma_ownership(struct iommu_group *group, void *owner) in __iommu_take_dma_ownership()
3179 int iommu_group_claim_dma_owner(struct iommu_group *group, void *owner) in iommu_group_claim_dma_owner()
3211 struct iommu_group *group; in iommu_device_claim_dma_owner()
3240 static void __iommu_release_dma_ownership(struct iommu_group *group) in __iommu_release_dma_ownership()
3260 void iommu_group_release_dma_owner(struct iommu_group *group) in iommu_group_release_dma_owner()
3276 struct iommu_group *group = iommu_group_get(dev); in iommu_device_release_dma_owner()
3295 bool iommu_group_dma_owner_claimed(struct iommu_group *group) in iommu_group_dma_owner_claimed()
3308 struct iommu_group *group, ioasid_t pasid) in __iommu_set_group_pasid()
3322 static void __iommu_remove_group_pasid(struct iommu_group *group, in __iommu_remove_group_pasid()
3345 struct iommu_group *group; in iommu_attach_device_pasid()
3388 struct iommu_group *group = iommu_group_get(dev); in iommu_detach_device_pasid()
3418 struct iommu_group *group; in iommu_get_domain_for_dev_pasid()