Lines Matching refs:iommu_ops
200 const struct iommu_ops *ops = dev->bus->iommu_ops; in __iommu_probe_device()
252 const struct iommu_ops *ops = dev->bus->iommu_ops; in iommu_probe_device()
299 const struct iommu_ops *ops = dev->bus->iommu_ops; in iommu_release_device()
1472 const struct iommu_ops *ops = dev->bus->iommu_ops; in iommu_get_def_domain_type()
1537 const struct iommu_ops *ops = dev->bus->iommu_ops; in iommu_group_get_for_dev()
1658 const struct iommu_ops *ops = dev->bus->iommu_ops; in probe_get_default_domain_type()
1793 static int iommu_bus_init(struct bus_type *bus, const struct iommu_ops *ops) in iommu_bus_init()
1839 int bus_set_iommu(struct bus_type *bus, const struct iommu_ops *ops) in bus_set_iommu()
1844 bus->iommu_ops = NULL; in bus_set_iommu()
1848 if (bus->iommu_ops != NULL) in bus_set_iommu()
1851 bus->iommu_ops = ops; in bus_set_iommu()
1856 bus->iommu_ops = NULL; in bus_set_iommu()
1864 return bus->iommu_ops != NULL; in iommu_present()
1870 if (!bus->iommu_ops || !bus->iommu_ops->capable) in iommu_capable()
1873 return bus->iommu_ops->capable(cap); in iommu_capable()
1905 if (bus == NULL || bus->iommu_ops == NULL) in __iommu_domain_alloc()
1908 domain = bus->iommu_ops->domain_alloc(type); in __iommu_domain_alloc()
1912 domain->ops = bus->iommu_ops; in __iommu_domain_alloc()
1915 domain->pgsize_bitmap = bus->iommu_ops->pgsize_bitmap; in __iommu_domain_alloc()
2375 const struct iommu_ops *ops = domain->ops; in __iommu_map()
2432 const struct iommu_ops *ops = domain->ops; in _iommu_map()
2461 const struct iommu_ops *ops = domain->ops; in __iommu_unmap()
2537 const struct iommu_ops *ops = domain->ops; in __iommu_map_sg()
2716 const struct iommu_ops *ops = dev->bus->iommu_ops; in iommu_get_resv_regions()
2724 const struct iommu_ops *ops = dev->bus->iommu_ops; in iommu_put_resv_regions()
2790 const struct iommu_ops *iommu_ops_from_fwnode(struct fwnode_handle *fwnode) in iommu_ops_from_fwnode()
2792 const struct iommu_ops *ops = NULL; in iommu_ops_from_fwnode()
2806 const struct iommu_ops *ops) in iommu_fwspec_init()
2872 const struct iommu_ops *ops = dev->bus->iommu_ops; in iommu_dev_has_feature()
2884 const struct iommu_ops *ops = dev->iommu->iommu_dev->ops; in iommu_dev_enable_feature()
2902 const struct iommu_ops *ops = dev->iommu->iommu_dev->ops; in iommu_dev_disable_feature()
2915 const struct iommu_ops *ops = dev->iommu->iommu_dev->ops; in iommu_dev_feature_enabled()
2989 const struct iommu_ops *ops = dev->bus->iommu_ops; in iommu_sva_bind_device()
3034 const struct iommu_ops *ops = dev->bus->iommu_ops; in iommu_sva_unbind_device()
3053 const struct iommu_ops *ops = handle->dev->bus->iommu_ops; in iommu_sva_get_pasid()