Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 11 files:
- drivers/acpi/arm64/iort.c, line 1284
- drivers/iommu/amd/iommu.c
- drivers/iommu/apple-dart.c, line 991
- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c, line 4347
- drivers/iommu/arm/arm-smmu/arm-smmu.c, line 1609
- drivers/iommu/intel/iommu.c
- drivers/iommu/iommu.c
- drivers/iommu/mtk_iommu.c, line 1047
- drivers/iommu/of_iommu.c, line 261
- drivers/iommu/s390-iommu.c
- drivers/iommu/virtio-iommu.c
Smatch caller information:
drivers/iommu/amd/iommu.c amd_iommu_get_resv_regions() -> iommu_alloc_resv_region()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | prot | 0-3 |
| PARAM_VALUE | 3 | type | 0 |
| PARAM_VALUE | 4 | gfp | 3264 |
| FUZZY_MAX | 2 | prot | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | &group->mutex | ||
| HALF_LOCKED2 | &igroup->lock | ||
| HALF_LOCKED2 | &iopt->iova_rwsem |
drivers/iommu/amd/iommu.c amd_iommu_get_resv_regions() -> iommu_alloc_resv_region()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | start | 4276092928 |
| PARAM_VALUE | 1 | length | 1048576 |
| PARAM_VALUE | 2 | prot | 0 |
| PARAM_VALUE | 3 | type | 3 |
| PARAM_VALUE | 4 | gfp | 3264 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | &group->mutex | ||
| HALF_LOCKED2 | &igroup->lock | ||
| HALF_LOCKED2 | &iopt->iova_rwsem |
drivers/iommu/amd/iommu.c amd_iommu_get_resv_regions() -> iommu_alloc_resv_region()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | start | 1086626725888 |
| PARAM_VALUE | 1 | length | 12884901888 |
| PARAM_VALUE | 2 | prot | 0 |
| PARAM_VALUE | 3 | type | 2 |
| PARAM_VALUE | 4 | gfp | 3264 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | &group->mutex | ||
| HALF_LOCKED2 | &igroup->lock | ||
| HALF_LOCKED2 | &iopt->iova_rwsem |
drivers/iommu/intel/iommu.c intel_iommu_get_resv_regions() -> iommu_alloc_resv_region()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | prot | 3 |
| PARAM_VALUE | 3 | type | 0-1 |
| PARAM_VALUE | 4 | gfp | 2080 |
| FUZZY_MAX | 3 | type | 1 |
| HARD_MAX | 3 | type | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &device->mutex | ||
| HALF_LOCKED2 | &group->mutex | ||
| HALF_LOCKED2 | &igroup->lock | ||
| HALF_LOCKED2 | &iopt->iova_rwsem |
drivers/iommu/intel/iommu.c intel_iommu_get_resv_regions() -> iommu_alloc_resv_region()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | start | 0 |
| PARAM_VALUE | 1 | length | 16777216 |
| PARAM_VALUE | 2 | prot | 3 |
| PARAM_VALUE | 3 | type | 1 |
| PARAM_VALUE | 4 | gfp | 3264 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &device->mutex | ||
| HALF_LOCKED2 | &group->mutex | ||
| HALF_LOCKED2 | &igroup->lock | ||
| HALF_LOCKED2 | &iopt->iova_rwsem |
drivers/iommu/intel/iommu.c intel_iommu_get_resv_regions() -> iommu_alloc_resv_region()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | start | 4276092928 |
| PARAM_VALUE | 1 | length | 1048576 |
| PARAM_VALUE | 2 | prot | 0 |
| PARAM_VALUE | 3 | type | 3 |
| PARAM_VALUE | 4 | gfp | 3264 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &device->mutex | ||
| HALF_LOCKED2 | &group->mutex | ||
| HALF_LOCKED2 | &igroup->lock | ||
| HALF_LOCKED2 | &iopt->iova_rwsem |
drivers/iommu/virtio-iommu.c viommu_add_resv_mem() -> iommu_alloc_resv_region()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | prot | 0 |
| PARAM_VALUE | 3 | type | 2 |
| PARAM_VALUE | 4 | gfp | 3264 |
| CAPPED_DATA | 0 | start | 1 |
| CAPPED_DATA | 0 | start | 1 |
| PARAM_COMPARE | 0 | start | < $1 |
| PARAM_COMPARE | 1 | length | > $0 |
| PARAM_COMPARE | 1 | length | > $0 |
drivers/iommu/virtio-iommu.c viommu_add_resv_mem() -> iommu_alloc_resv_region()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | prot | 26 |
| PARAM_VALUE | 3 | type | 3 |
| PARAM_VALUE | 4 | gfp | 3264 |
| CAPPED_DATA | 0 | start | 1 |
| CAPPED_DATA | 0 | start | 1 |
| PARAM_COMPARE | 0 | start | < $1 |
| PARAM_COMPARE | 1 | length | > $0 |
| PARAM_COMPARE | 1 | length | > $0 |
drivers/iommu/virtio-iommu.c viommu_get_resv_regions() -> iommu_alloc_resv_region()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | start | 134217728 |
| PARAM_VALUE | 1 | length | 1048576 |
| PARAM_VALUE | 2 | prot | 26 |
| PARAM_VALUE | 3 | type | 4 |
| PARAM_VALUE | 4 | gfp | 3264 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | &group->mutex | ||
| HALF_LOCKED2 | &igroup->lock | ||
| HALF_LOCKED2 | &iopt->iova_rwsem |
drivers/iommu/mtk_iommu.c mtk_iommu_get_resv_regions() -> iommu_alloc_resv_region()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | start | 1-u64max |
| PARAM_VALUE | 2 | prot | 3 |
| PARAM_VALUE | 3 | type | 2 |
| PARAM_VALUE | 4 | gfp | 3264 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | &group->mutex | ||
| HALF_LOCKED2 | &igroup->lock | ||
| HALF_LOCKED2 | &iopt->iova_rwsem |
drivers/iommu/arm/arm-smmu/arm-smmu.c arm_smmu_get_resv_regions() -> iommu_alloc_resv_region()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | start | 134217728 |
| PARAM_VALUE | 1 | length | 1048576 |
| PARAM_VALUE | 2 | prot | 26 |
| PARAM_VALUE | 3 | type | 4 |
| PARAM_VALUE | 4 | gfp | 3264 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | &group->mutex | ||
| HALF_LOCKED2 | &igroup->lock | ||
| HALF_LOCKED2 | &iopt->iova_rwsem |
drivers/iommu/of_iommu.c of_iommu_get_resv_regions() -> iommu_alloc_resv_region()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | length | 1-u64max |
| PARAM_VALUE | 2 | prot | 3,7 |
| PARAM_VALUE | 3 | type | 2 |
| PARAM_VALUE | 4 | gfp | 3264 |
| DATA_SOURCE | 3 | type | r iommu_resv_region_get_type |
| FUZZY_MAX | 2 | prot | 3 |
| BIT_INFO | 2 | prot | 0x3,0x7 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | &group->mutex | ||
| HALF_LOCKED2 | &igroup->lock | ||
| HALF_LOCKED2 | &iopt->iova_rwsem |
drivers/iommu/apple-dart.c apple_dart_get_resv_regions() -> iommu_alloc_resv_region()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | start | 4294963200 |
| PARAM_VALUE | 1 | length | 4096 |
| PARAM_VALUE | 2 | prot | 26 |
| PARAM_VALUE | 3 | type | 3 |
| PARAM_VALUE | 4 | gfp | 3264 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | length | unit_byte |
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | &group->mutex | ||
| HALF_LOCKED2 | &igroup->lock | ||
| HALF_LOCKED2 | &iopt->iova_rwsem |
drivers/iommu/iommu.c iommu_insert_resv_region() -> iommu_alloc_resv_region()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 4 | gfp | 3264 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | start | unit_byte |
| UNITS | 1 | length | unit_byte |
| LOCK2 | &group->mutex | ||
| HALF_LOCKED2 | &container->group_lock | ||
| HALF_LOCKED2 | &iommu->lock | ||
| HALF_LOCKED2 | &of->mutex | ||
| TYPE_LOCK | (struct iommu_group)->mutex |