Lines Matching refs:iommu_ops
41 const struct iommu_ops *ops;
737 const struct iommu_ops *ops = cb->ops; in add_iommu_group()
753 const struct iommu_ops *ops = dev->bus->iommu_ops; in iommu_bus_notifier()
802 static int iommu_bus_init(struct bus_type *bus, const struct iommu_ops *ops) in iommu_bus_init()
845 int bus_set_iommu(struct bus_type *bus, const struct iommu_ops *ops) in bus_set_iommu()
849 if (bus->iommu_ops != NULL) in bus_set_iommu()
852 bus->iommu_ops = ops; in bus_set_iommu()
857 bus->iommu_ops = NULL; in bus_set_iommu()
865 return bus->iommu_ops != NULL; in iommu_present()
871 if (!bus->iommu_ops || !bus->iommu_ops->capable) in iommu_capable()
874 return bus->iommu_ops->capable(cap); in iommu_capable()
905 if (bus == NULL || bus->iommu_ops == NULL) in iommu_domain_alloc()
908 domain = bus->iommu_ops->domain_alloc(IOMMU_DOMAIN_UNMANAGED); in iommu_domain_alloc()
912 domain->ops = bus->iommu_ops; in iommu_domain_alloc()