Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/iommu/iommufd/io_pagetable.c iopt_add_access() -> iopt_calculate_iova_alignment()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iopt | 4096-ptr_max |
| PARAM_VALUE | 0 | iopt->access_list.xa_flags | 4-u32max |
| PARAM_VALUE | 0 | iopt->access_list.xa_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | iopt->domains_rwsem.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | iopt->domains_rwsem.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | iopt->iova_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | iopt->iova_rwsem.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | iopt->iova_rwsem.wait_lock.owner_cpu | u32max |
| CAPPED_DATA | 0 | &iopt->domains_rwsem | 1 |
| CAPPED_DATA | 0 | &iopt->iova_rwsem | 1 |
| DATA_SOURCE | 0 | iopt | $0 |
| RX_PATH | |||
| LOCK2 | &access->ioas_lock | ||
| LOCK2 | 0 | &iopt->domains_rwsem | |
| LOCK2 | 0 | &iopt->iova_rwsem | |
| TYPE_LOCK | (struct io_pagetable)->domains_rwsem | ||
| TYPE_LOCK | (struct io_pagetable)->iova_rwsem | ||
| TYPE_LOCK | (struct iommufd_access)->ioas_lock |
drivers/iommu/iommufd/io_pagetable.c iopt_disable_large_pages() -> iopt_calculate_iova_alignment()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iopt | 4096-ptr_max |
| PARAM_VALUE | 0 | iopt->disable_large_pages | 1 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | iopt->domains_rwsem.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | iopt->domains_rwsem.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | iopt->iova_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | iopt->iova_rwsem.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | iopt->iova_rwsem.wait_lock.owner_cpu | u32max |
| CAPPED_DATA | 0 | &iopt->domains_rwsem | 1 |
| CAPPED_DATA | 0 | &iopt->iova_rwsem | 1 |
| DATA_SOURCE | 0 | iopt | $0 |
| LOCK2 | 0 | &iopt->domains_rwsem | |
| LOCK2 | 0 | &iopt->iova_rwsem | |
| TYPE_LOCK | (struct io_pagetable)->domains_rwsem | ||
| TYPE_LOCK | (struct io_pagetable)->iova_rwsem |
drivers/iommu/iommufd/io_pagetable.c iopt_enable_large_pages() -> iopt_calculate_iova_alignment()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iopt | 4096-ptr_max |
| PARAM_VALUE | 0 | iopt->disable_large_pages | 0 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | iopt->domains_rwsem.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | iopt->domains_rwsem.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | iopt->iova_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | iopt->iova_rwsem.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | iopt->iova_rwsem.wait_lock.owner_cpu | u32max |
| CAPPED_DATA | 0 | &iopt->domains_rwsem | 1 |
| CAPPED_DATA | 0 | &iopt->iova_rwsem | 1 |
| DATA_SOURCE | 0 | iopt | $0 |
| LOCK2 | 0 | &iopt->domains_rwsem | |
| LOCK2 | 0 | &iopt->iova_rwsem | |
| TYPE_LOCK | (struct io_pagetable)->domains_rwsem | ||
| TYPE_LOCK | (struct io_pagetable)->iova_rwsem |
drivers/iommu/iommufd/io_pagetable.c iopt_remove_access() -> iopt_calculate_iova_alignment()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iopt | 4096-ptr_max |
| PARAM_VALUE | 0 | iopt->access_list.xa_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | iopt->domains_rwsem.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | iopt->domains_rwsem.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | iopt->iova_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | iopt->iova_rwsem.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | iopt->iova_rwsem.wait_lock.owner_cpu | u32max |
| CAPPED_DATA | 0 | &iopt->domains_rwsem | 1 |
| CAPPED_DATA | 0 | &iopt->iova_rwsem | 1 |
| DATA_SOURCE | 0 | iopt | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &access->ioas_lock | ||
| LOCK2 | 0 | &iopt->domains_rwsem | |
| LOCK2 | 0 | &iopt->iova_rwsem | |
| TYPE_LOCK | (struct io_pagetable)->domains_rwsem | ||
| TYPE_LOCK | (struct io_pagetable)->iova_rwsem | ||
| TYPE_LOCK | (struct iommufd_access)->ioas_lock |
drivers/iommu/iommufd/io_pagetable.c iopt_table_remove_domain() -> iopt_calculate_iova_alignment()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iopt | 4096-ptr_max |
| PARAM_VALUE | 0 | iopt->domains.xa_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | iopt->domains_rwsem.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->domains_rwsem.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | iopt->domains_rwsem.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | iopt->iova_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | iopt->iova_rwsem.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | iopt->iova_rwsem.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | iopt->iova_rwsem.wait_lock.owner_cpu | u32max |
| CAPPED_DATA | 0 | &iopt->domains_rwsem | 1 |
| CAPPED_DATA | 0 | &iopt->iova_rwsem | 1 |
| DATA_SOURCE | 0 | iopt | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &iopt->domains_rwsem | |
| LOCK2 | 0 | &iopt->iova_rwsem | |
| TYPE_LOCK | (struct io_pagetable)->domains_rwsem | ||
| TYPE_LOCK | (struct io_pagetable)->iova_rwsem |