Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/iommu/iommufd/io_pagetable.c __iommu_read_and_clear_dirty() -> iopt_area_contig_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iter | 237915128914644992 |
| DATA_SOURCE | 2 | iova | $1 |
| USER_DATA | 2 | iova | 0-u64max |
| HALF_LOCKED2 | &iopt->iova_rwsem |
drivers/iommu/iommufd/io_pagetable.c iopt_get_pages() -> iopt_area_contig_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iter | 1274135515943718912 |
| PARAM_VALUE | 1 | iopt | 4096-ptr_max |
| PARAM_VALUE | 1 | iopt->iova_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.first_waiter->list.next | 2212933610777083904 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.first_waiter->list.prev | 2212933610777083904 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.wait_lock.owner | (-1) |
| PARAM_VALUE | 1 | iopt->iova_rwsem.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 2 | iova | 0-18446744073709551614 |
| CAPPED_DATA | 1 | &iopt->iova_rwsem | 1 |
| DATA_SOURCE | 1 | iopt | $0 |
| DATA_SOURCE | 2 | iova | $1 |
| PARAM_COMPARE | 2 | iova | <= $3 |
| PARAM_COMPARE | 2 | iova | <= $3 |
| PARAM_COMPARE | 3 | last_iova | >= $2 |
| USER_DATA | 2 | iova | 0-18446744073709551614[u] |
| LOCK2 | 1 | &iopt->iova_rwsem | |
| TYPE_LOCK | (struct io_pagetable)->iova_rwsem |
drivers/iommu/iommufd/device.c iommufd_access_pin_pages() -> iopt_area_contig_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iter | 9099833446167994368 |
| PARAM_VALUE | 1 | iopt | 4096-ptr_max |
| PARAM_VALUE | 1 | iopt->disable_large_pages | 0-1 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.first_waiter->list.next | 2212933610777083904 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.first_waiter->list.prev | 2212933610777083904 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.wait_lock.owner | (-1) |
| PARAM_VALUE | 1 | iopt->iova_rwsem.wait_lock.owner_cpu | u32max |
| BUF_SIZE | 1 | iopt | 568 |
| CAPPED_DATA | 1 | &iopt->iova_rwsem | 1 |
| DATA_SOURCE | 2 | iova | $1 |
| PARAM_COMPARE | 2 | iova | <= $3 |
| PARAM_COMPARE | 2 | iova | <= $3 |
| PARAM_COMPARE | 3 | last_iova | >= $2 |
| RX_PATH | |||
| USER_DATA | 2 | iova | 0-u64max |
| UNITS | 2 | iova | unit_byte |
| UNITS | 3 | last_iova | unit_byte |
| LOCK2 | &access->ioas_lock | ||
| LOCK2 | 1 | &iopt->iova_rwsem | |
| HALF_LOCKED2 | &staccess->lock | ||
| HALF_LOCKED2 | &vgpu->cache_lock | ||
| TYPE_LOCK | (struct io_pagetable)->iova_rwsem | ||
| TYPE_LOCK | (struct iommufd_access)->ioas_lock |
drivers/iommu/iommufd/device.c iommufd_access_pin_pages() -> iopt_area_contig_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iter | 9099833446167994368 |
| PARAM_VALUE | 0 | iter->area | 0,4096-ptr_max |
| PARAM_VALUE | 0 | iter->cur_iova | 1-u64max |
| PARAM_VALUE | 1 | iopt | 4096-ptr_max |
| PARAM_VALUE | 1 | iopt->disable_large_pages | 0-1 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.first_waiter->list.next | 2212933610777083904 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.first_waiter->list.prev | 2212933610777083904 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.wait_lock.owner | (-1) |
| PARAM_VALUE | 1 | iopt->iova_rwsem.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 2 | iova | 0-18446744073709551614 |
| BUF_SIZE | 1 | iopt | 568 |
| CAPPED_DATA | 1 | &iopt->iova_rwsem | 1 |
| CAPPED_DATA | 2 | iova | 1 |
| CAPPED_DATA | 2 | iova | 1 |
| DATA_SOURCE | 2 | iova | $1 |
| RX_PATH | |||
| USER_DATA | 0 | iter->cur_iova | 1-u64max |
| USER_DATA | 2 | iova | 0-18446744073709551614 |
| UNITS | 2 | iova | unit_byte |
| UNITS | 3 | last_iova | unit_byte |
| LOCK2 | &access->ioas_lock | ||
| LOCK2 | 1 | &iopt->iova_rwsem | |
| HALF_LOCKED2 | &staccess->lock | ||
| HALF_LOCKED2 | &vgpu->cache_lock | ||
| TYPE_LOCK | (struct io_pagetable)->iova_rwsem | ||
| TYPE_LOCK | (struct iommufd_access)->ioas_lock |
drivers/iommu/iommufd/device.c iommufd_access_rw() -> iopt_area_contig_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iter | 3246687938747527168 |
| PARAM_VALUE | 1 | iopt | 4096-ptr_max |
| PARAM_VALUE | 1 | iopt->iova_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.first_waiter->list.next | 2212933610777083904 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.first_waiter->list.prev | 2212933610777083904 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.wait_lock.owner | (-1) |
| PARAM_VALUE | 1 | iopt->iova_rwsem.wait_lock.owner_cpu | u32max |
| BUF_SIZE | 1 | iopt | 568 |
| CAPPED_DATA | 1 | &iopt->iova_rwsem | 1 |
| DATA_SOURCE | 2 | iova | $1 |
| PARAM_COMPARE | 2 | iova | <= $3 |
| PARAM_COMPARE | 2 | iova | <= $3 |
| PARAM_COMPARE | 3 | last_iova | >= $2 |
| NOSPEC | 2 | iova | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 2 | iova | 0-u64max[c] |
| USER_DATA | 2 | iova | 0-u64max |
| UNITS | 2 | iova | unit_byte |
| UNITS | 3 | last_iova | unit_byte |
| LOCK2 | &access->ioas_lock | ||
| LOCK2 | 1 | &iopt->iova_rwsem | |
| TYPE_LOCK | (struct io_pagetable)->iova_rwsem | ||
| TYPE_LOCK | (struct iommufd_access)->ioas_lock |
drivers/iommu/iommufd/device.c iommufd_access_unpin_pages() -> iopt_area_contig_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iter | 6843286241125273600 |
| PARAM_VALUE | 1 | iopt | 4096-ptr_max |
| PARAM_VALUE | 1 | iopt->disable_large_pages | 0-1 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.first_waiter->list.next | 2212933610777083904 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.first_waiter->list.prev | 2212933610777083904 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | iopt->iova_rwsem.wait_lock.owner | (-1) |
| PARAM_VALUE | 1 | iopt->iova_rwsem.wait_lock.owner_cpu | u32max |
| BUF_SIZE | 1 | iopt | 568 |
| CAPPED_DATA | 1 | &iopt->iova_rwsem | 1 |
| DATA_SOURCE | 2 | iova | $1 |
| PARAM_COMPARE | 2 | iova | <= $3 |
| PARAM_COMPARE | 2 | iova | <= $3 |
| PARAM_COMPARE | 3 | last_iova | >= $2 |
| NOSPEC | 2 | iova | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | iova | 0-u64max[c] |
| UNITS | 2 | iova | unit_byte |
| UNITS | 3 | last_iova | unit_byte |
| LOCK2 | &access->ioas_lock | ||
| LOCK2 | 1 | &iopt->iova_rwsem | |
| HALF_LOCKED2 | &staccess->lock | ||
| TYPE_LOCK | (struct io_pagetable)->iova_rwsem | ||
| TYPE_LOCK | (struct iommufd_access)->ioas_lock |