• Home
  • Raw
  • Download

Lines Matching refs:owner

677 		struct exynos_iommu_owner *owner = dev_iommu_priv_get(master);  in exynos_sysmmu_suspend()  local
679 mutex_lock(&owner->rpm_lock); in exynos_sysmmu_suspend()
684 mutex_unlock(&owner->rpm_lock); in exynos_sysmmu_suspend()
695 struct exynos_iommu_owner *owner = dev_iommu_priv_get(master); in exynos_sysmmu_resume() local
697 mutex_lock(&owner->rpm_lock); in exynos_sysmmu_resume()
702 mutex_unlock(&owner->rpm_lock); in exynos_sysmmu_resume()
845 struct exynos_iommu_owner *owner = dev_iommu_priv_get(dev); in exynos_iommu_detach_device() local
850 if (!has_sysmmu(dev) || owner->domain != iommu_domain) in exynos_iommu_detach_device()
853 mutex_lock(&owner->rpm_lock); in exynos_iommu_detach_device()
855 list_for_each_entry(data, &owner->controllers, owner_node) { in exynos_iommu_detach_device()
870 owner->domain = NULL; in exynos_iommu_detach_device()
873 mutex_unlock(&owner->rpm_lock); in exynos_iommu_detach_device()
883 struct exynos_iommu_owner *owner = dev_iommu_priv_get(dev); in exynos_iommu_attach_device() local
891 if (owner->domain) in exynos_iommu_attach_device()
892 exynos_iommu_detach_device(owner->domain, dev); in exynos_iommu_attach_device()
894 mutex_lock(&owner->rpm_lock); in exynos_iommu_attach_device()
897 list_for_each_entry(data, &owner->controllers, owner_node) { in exynos_iommu_attach_device()
904 owner->domain = iommu_domain; in exynos_iommu_attach_device()
907 list_for_each_entry(data, &owner->controllers, owner_node) { in exynos_iommu_attach_device()
914 mutex_unlock(&owner->rpm_lock); in exynos_iommu_attach_device()
1244 struct exynos_iommu_owner *owner = dev_iommu_priv_get(dev); in exynos_iommu_probe_device() local
1250 list_for_each_entry(data, &owner->controllers, owner_node) { in exynos_iommu_probe_device()
1262 data = list_first_entry(&owner->controllers, in exynos_iommu_probe_device()
1270 struct exynos_iommu_owner *owner = dev_iommu_priv_get(dev); in exynos_iommu_release_device() local
1276 if (owner->domain) { in exynos_iommu_release_device()
1280 WARN_ON(owner->domain != in exynos_iommu_release_device()
1282 exynos_iommu_detach_device(owner->domain, dev); in exynos_iommu_release_device()
1287 list_for_each_entry(data, &owner->controllers, owner_node) in exynos_iommu_release_device()
1295 struct exynos_iommu_owner *owner = dev_iommu_priv_get(dev); in exynos_iommu_of_xlate() local
1307 if (!owner) { in exynos_iommu_of_xlate()
1308 owner = kzalloc(sizeof(*owner), GFP_KERNEL); in exynos_iommu_of_xlate()
1309 if (!owner) { in exynos_iommu_of_xlate()
1314 INIT_LIST_HEAD(&owner->controllers); in exynos_iommu_of_xlate()
1315 mutex_init(&owner->rpm_lock); in exynos_iommu_of_xlate()
1316 dev_iommu_priv_set(dev, owner); in exynos_iommu_of_xlate()
1319 list_for_each_entry(entry, &owner->controllers, owner_node) in exynos_iommu_of_xlate()
1323 list_add_tail(&data->owner_node, &owner->controllers); in exynos_iommu_of_xlate()