Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/iommu/iommufd/
Ddevice.c22 struct iommufd_group *igroup = in iommufd_group_release() local
25 WARN_ON(igroup->hwpt || !list_empty(&igroup->device_list)); in iommufd_group_release()
27 xa_cmpxchg(&igroup->ictx->groups, iommu_group_id(igroup->group), igroup, in iommufd_group_release()
29 iommu_group_put(igroup->group); in iommufd_group_release()
30 mutex_destroy(&igroup->lock); in iommufd_group_release()
31 kfree(igroup); in iommufd_group_release()
39 static bool iommufd_group_try_get(struct iommufd_group *igroup, in iommufd_group_try_get() argument
42 if (!igroup) in iommufd_group_try_get()
48 if (WARN_ON(igroup->group != group)) in iommufd_group_try_get()
50 return kref_get_unless_zero(&igroup->ref); in iommufd_group_try_get()
[all …]
Diommufd_private.h283 struct iommufd_group *igroup; member