Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/iommu/iommufd/io_pagetable.c iopt_alloc_area_pages() -> iopt_insert_area()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iopt | 4096-ptr_max |
| 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 |
| PARAM_VALUE | 1 | area->iopt->disable_large_pages | 0-1 |
| PARAM_VALUE | 6 | iommu_prot | 4-7 |
| CAPPED_DATA | 0 | &iopt->iova_rwsem | 1 |
| DATA_SOURCE | 0 | iopt | $0 |
| DATA_SOURCE | 6 | iommu_prot | $4 |
| USER_DATA | 1 | area->node.__subtree_last | 0-u64max[c] |
| USER_DATA | 1 | area->node.start | 0-u64max |
| USER_DATA | 3 | iova | 0-u64max |
| NO_OVERFLOW_SIMPLE | 4 | start_byte | |
| UNITS | 4 | start_byte | unit_byte |
| UNITS | 5 | length | unit_byte |
| LOCK2 | 0 | &iopt->iova_rwsem | |
| TYPE_LOCK | (struct io_pagetable)->iova_rwsem |
drivers/iommu/iommufd/io_pagetable.c iopt_area_split() -> iopt_insert_area()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iopt | 4096-ptr_max |
| PARAM_VALUE | 0 | iopt->area_itree.rb_leftmost->rb_left | 0 |
| PARAM_VALUE | 0 | iopt->disable_large_pages | 0-1 |
| PARAM_VALUE | 1 | area | 4096-ptr_max |
| PARAM_VALUE | 2 | pages | 4096-ptr_max |
| PARAM_VALUE | 2 | pages->mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | pages->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 2 | pages->mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 2 | pages->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 2 | pages->mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | pages->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 2 | pages->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 2 | pages->type | 0-1,3-u32max |
| BUF_SIZE | 1 | area | 144 |
| CAPPED_DATA | 3 | iova | 1 |
| CAPPED_DATA | 3 | iova | 1 |
| DATA_SOURCE | 1 | area | r iopt_area_alloc |
| LOCK2 | &iopt->iova_rwsem | ||
| LOCK2 | &pages->mutex | ||
| TYPE_LOCK | (struct io_pagetable)->iova_rwsem | ||
| TYPE_LOCK | (struct iopt_pages)->mutex |
drivers/iommu/iommufd/io_pagetable.c iopt_area_split() -> iopt_insert_area()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iopt | 4096-ptr_max |
| PARAM_VALUE | 0 | iopt->area_itree.rb_leftmost->rb_left | 0 |
| PARAM_VALUE | 0 | iopt->area_itree.rb_leftmost->rb_right | 0 |
| PARAM_VALUE | 0 | iopt->area_itree.rb_root.rb_node | 4096-ptr_max |
| PARAM_VALUE | 0 | iopt->disable_large_pages | 0-1 |
| PARAM_VALUE | 1 | area | 4096-ptr_max |
| PARAM_VALUE | 2 | pages | 4096-ptr_max |
| PARAM_VALUE | 2 | pages->mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | pages->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 2 | pages->mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 2 | pages->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 2 | pages->mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | pages->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 2 | pages->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 2 | pages->npages | 1-u64max |
| PARAM_VALUE | 2 | pages->type | 0-1,3-u32max |
| BUF_SIZE | 1 | area | 144 |
| CAPPED_DATA | 2 | pages->npages | 1 |
| CAPPED_DATA | 3 | iova | 1 |
| CAPPED_DATA | 3 | iova | 1 |
| DATA_SOURCE | 1 | area | r iopt_area_alloc |
| LOCK2 | &iopt->iova_rwsem | ||
| LOCK2 | &pages->mutex | ||
| TYPE_LOCK | (struct io_pagetable)->iova_rwsem | ||
| TYPE_LOCK | (struct iopt_pages)->mutex |