Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/iommu/iommufd/device.c iommufd_device_do_attach() -> iommufd_hw_pagetable_attach()

Type Parameter Key Value
PARAM_VALUE 0 hwpt 4096-ptr_max
PARAM_VALUE 1 idev 4096-ptr_max
BUF_SIZE 0 hwpt (-1),40
BUF_SIZE 0 hwpt (-1),40
DATA_SOURCE 0 hwpt $2
DATA_SOURCE 1 idev $0
DATA_SOURCE 2 pasid $1
NOSPEC 2 pasid
USER_DATA 2 pasid 0-u32max
HALF_LOCKED2 &ioas->mutex
HALF_LOCKED2 &vdev->dev_set->lock

drivers/iommu/iommufd/hw_pagetable.c iommufd_hwpt_paging_alloc() -> iommufd_hw_pagetable_attach()

Type Parameter Key Value
PARAM_VALUE 0 hwpt 4096-ptr_max
PARAM_VALUE 0 hwpt->domain 4096-ptr_max
PARAM_VALUE 0 hwpt->domain->cookie_type 5
PARAM_VALUE 0 hwpt->domain->iommufd_hwpt 4096-ptr_max
PARAM_VALUE 0 hwpt->domain->iommufd_hwpt->domain 4096-ptr_max
PARAM_VALUE 0 hwpt->domain->iova_cookie 4096-ptr_max
PARAM_VALUE 0 hwpt->domain->msi_cookie 4096-ptr_max
PARAM_VALUE 0 hwpt->domain->owner->domain_alloc_paging_flags 0,5681659404854812672,8509805123710701568,8930407207250460672,8966249347349827584
PARAM_VALUE 1 idev 4096-ptr_max
PARAM_VALUE 1 idev->dev 4096-ptr_max
BUF_SIZE 0 hwpt 40
BUF_SIZE 0 hwpt->domain (-1),112
BUF_SIZE 0 hwpt->domain->iommufd_hwpt 40
BUF_SIZE 0 hwpt->domain->owner (-1),200
DATA_SOURCE 1 idev $2
DATA_SOURCE 2 pasid $3
USER_DATA 0 hwpt->domain->iommufd_hwpt->pasid_compat 0-1[c]
USER_DATA 0 hwpt->pasid_compat 0-1[c]
USER_DATA 2 pasid 0-u32max
LOCK2 &ioas->mutex
HALF_LOCKED2 &vdev->dev_set->lock
TYPE_LOCK (struct iommufd_ioas)->mutex