Home
last modified time | relevance | path

Searched refs:iommu_buses (Results 1 – 1 of 1) sorted by relevance

/linux-6.6.21/drivers/iommu/
Diommu.c152 static struct bus_type * const iommu_buses[] = { variable
222 nb = kcalloc(ARRAY_SIZE(iommu_buses), sizeof(*nb), GFP_KERNEL); in iommu_subsys_init()
226 for (int i = 0; i < ARRAY_SIZE(iommu_buses); i++) { in iommu_subsys_init()
228 bus_register_notifier(iommu_buses[i], &nb[i]); in iommu_subsys_init()
264 if (iommu_buses[0]->iommu_ops && iommu_buses[0]->iommu_ops != ops) in iommu_device_register()
275 for (int i = 0; i < ARRAY_SIZE(iommu_buses) && !err; i++) { in iommu_device_register()
276 iommu_buses[i]->iommu_ops = ops; in iommu_device_register()
277 err = bus_iommu_probe(iommu_buses[i]); in iommu_device_register()
287 for (int i = 0; i < ARRAY_SIZE(iommu_buses); i++) in iommu_device_unregister()
288 bus_for_each_dev(iommu_buses[i], NULL, iommu, remove_iommu_group); in iommu_device_unregister()