Defined in 1 files as a prototype:
Defined in 2 files as a function:
- drivers/iommu/iommu-sysfs.c, line 54 (as a function)
- include/linux/iommu.h, line 1462 (as a function)
Referenced in 25 files:
- arch/powerpc/kernel/iommu.c, line 1289
- drivers/iommu/amd/init.c, line 2233
- drivers/iommu/apple-dart.c, line 1184
- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c, line 5609
- drivers/iommu/arm/arm-smmu/arm-smmu.c, line 2230
- drivers/iommu/arm/arm-smmu/qcom_iommu.c, line 853
- drivers/iommu/exynos-iommu.c, line 780
- drivers/iommu/fsl_pamu_domain.c, line 451
- drivers/iommu/intel/dmar.c, line 1214
- drivers/iommu/intel/iommu.c, line 2676
- drivers/iommu/iommu-sysfs.c, line 90
- drivers/iommu/iommufd/selftest.c, line 2184
- drivers/iommu/ipmmu-vmsa.c, line 1095
- drivers/iommu/msm_iommu.c, line 786
- drivers/iommu/mtk_iommu.c, line 1429
- drivers/iommu/mtk_iommu_v1.c, line 691
- drivers/iommu/omap-iommu.c, line 1214
- drivers/iommu/riscv/iommu.c, line 1595
- drivers/iommu/rockchip-iommu.c, line 1300
- drivers/iommu/s390-iommu.c, line 1066
- drivers/iommu/sprd-iommu.c, line 486
- drivers/iommu/sun50i-iommu.c, line 1045
- drivers/iommu/tegra-smmu.c, line 1169
- drivers/iommu/virtio-iommu.c, line 1232
- drivers/iommu/vsi-iommu.c, line 711
Smatch caller information:
drivers/iommu/mtk_iommu_v1.c mtk_iommu_v1_probe() -> iommu_device_sysfs_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iommu | 4096-ptr_max |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->driver_data | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->of_node | 4096-ptr_max |
| PARAM_VALUE | 2 | groups | 0 |
| BUF_SIZE | 3 | fmt | 1-s32max |
| MEM_ZERO | 0 | iommu | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iommu/iommufd/selftest.c iommufd_test_init() -> iommu_device_sysfs_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iommu | 3649304324689960960 |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 2 | groups | 0 |
| PARAM_VALUE | 3 | fmt | 8347350738675638272 |
| BUF_SIZE | 3 | fmt | 3 |
| BUF_SIZE | 4 | $ | 1-s32max |
| STR_LEN | 0 | iommu | 2 |
| TERMINATED | 3 | fmt | 1 |
drivers/iommu/intel/iommu.c intel_iommu_init() -> iommu_device_sysfs_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iommu | 4096-ptr_max |
| PARAM_VALUE | 1 | parent | 0 |
| PARAM_VALUE | 2 | groups | 7867894816126484480 |
| PARAM_VALUE | 3 | fmt | 8347350738675638272 |
| BUF_SIZE | 2 | groups | 16 |
| BUF_SIZE | 3 | fmt | 3 |
| BUF_SIZE | 4 | $ | 16 |
| STR_LEN | 0 | iommu | 2 |
| TERMINATED | 3 | fmt | 1 |
| NOCHECK_CALL | |||
| LOCK2 | global &dmar_global_lock |
drivers/iommu/intel/dmar.c alloc_iommu() -> iommu_device_sysfs_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iommu | 4096-ptr_max |
| PARAM_VALUE | 1 | parent | 0 |
| PARAM_VALUE | 2 | groups | 7867894816126484480 |
| PARAM_VALUE | 3 | fmt | 8347350738675638272 |
| BUF_SIZE | 2 | groups | 16 |
| BUF_SIZE | 3 | fmt | 3 |
| BUF_SIZE | 4 | $ | 16 |
| STR_LEN | 0 | iommu | 2 |
| STR_LEN | 1 | parent | 15 |
| STR_LEN | 4 | $ | 15 |
| TERMINATED | 3 | fmt | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | iommu->max_pasids | 0-u32max |
| HOST_DATA | 0 | iommu->ready | 0-1 |
| HALF_LOCKED2 | global &dmar_global_lock |
drivers/iommu/sprd-iommu.c sprd_iommu_probe() -> iommu_device_sysfs_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iommu | 4096-ptr_max |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->cma_area->alloc_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | parent->cma_area->alloc_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 1 | parent->cma_area->alloc_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | parent->cma_area->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | parent->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 1 | parent->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->dma_io_tlb_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | parent->dma_io_tlb_pools.next | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->dma_io_tlb_pools.next->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->dma_io_tlb_pools.next->prev->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->dma_mem->spinlock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | parent->dma_uses_io_tlb | 1 |
| PARAM_VALUE | 1 | parent->iommu->pci_32bit_workaround | 0 |
| PARAM_VALUE | 2 | groups | 0 |
| BUF_SIZE | 1 | parent | 1616 |
| BUF_SIZE | 3 | fmt | 1-s32max |
| CAPPED_DATA | 1 | parent | 1 |
| MEM_ZERO | 0 | iommu | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iommu/virtio-iommu.c viommu_probe() -> iommu_device_sysfs_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iommu | 4096-ptr_max |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 2 | groups | 0 |
| PARAM_VALUE | 3 | fmt | 8347350738675638272 |
| BUF_SIZE | 1 | parent | 1616 |
| BUF_SIZE | 3 | fmt | 3 |
| BUF_SIZE | 4 | $ | s32min,(-10),1-s32max |
| STR_LEN | 0 | iommu | 2 |
| TERMINATED | 3 | fmt | 1 |
| MEM_ZERO | 0 | iommu | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iommu/riscv/iommu.c riscv_iommu_init() -> iommu_device_sysfs_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iommu | 4096-ptr_max |
| PARAM_VALUE | 1 | parent | 0 |
| PARAM_VALUE | 2 | groups | 0 |
| PARAM_VALUE | 3 | fmt | 6273805059021406208 |
| BUF_SIZE | 3 | fmt | 15 |
| BUF_SIZE | 4 | $ | 1-s32max |
| STR_LEN | 0 | iommu | 14 |
| TERMINATED | 3 | fmt | 1 |
| MEM_ZERO | 0 | iommu | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | iommu->max_pasids | 0 |
| HOST_DATA | 0 | iommu->ready | 0 |
drivers/iommu/arm/arm-smmu/qcom_iommu.c qcom_iommu_device_probe() -> iommu_device_sysfs_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iommu | 4096-ptr_max |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 1 | parent->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->dma_mem->pfn_base | 0-s64max |
| PARAM_VALUE | 1 | parent->of_node | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->of_node->kobj.release->timer->entry.pprev | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->of_node->kobj.release.work.entry.next->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->power.last_status | (-1) |
| PARAM_VALUE | 2 | groups | 0 |
| BUF_SIZE | 1 | parent | 1616 |
| BUF_SIZE | 3 | fmt | 1-s32max |
| CAPPED_DATA | 1 | parent | 1 |
| MEM_ZERO | 0 | iommu | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iommu/rockchip-iommu.c rk_iommu_probe() -> iommu_device_sysfs_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iommu | 4096-ptr_max |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->driver | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->of_node | 1-u64max |
| PARAM_VALUE | 1 | parent->power.last_status | (-1) |
| PARAM_VALUE | 2 | groups | 0 |
| BUF_SIZE | 1 | parent | 1616 |
| BUF_SIZE | 3 | fmt | 1-s32max |
| MEM_ZERO | 0 | iommu | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iommu/mtk_iommu.c mtk_iommu_probe() -> iommu_device_sysfs_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iommu | 4096-ptr_max |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 2 | groups | 0 |
| PARAM_VALUE | 3 | fmt | 697598108703125504 |
| PARAM_VALUE | 4 | $ | 3927391148984844288 |
| BUF_SIZE | 1 | parent | 1616 |
| BUF_SIZE | 3 | fmt | 14 |
| BUF_SIZE | 4 | $ | 8 |
| CAPPED_DATA | 1 | parent | 1 |
| STR_LEN | 0 | iommu | 13 |
| TERMINATED | 3 | fmt | 1 |
| MEM_ZERO | 0 | iommu | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iommu/amd/init.c iommu_init_pci() -> iommu_device_sysfs_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iommu | 4096-ptr_max |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 2 | groups | 9103937011063873536 |
| PARAM_VALUE | 3 | fmt | 3053713772724051968 |
| BUF_SIZE | 2 | groups | 16 |
| BUF_SIZE | 3 | fmt | 7 |
| STR_LEN | 0 | iommu | 6 |
| TERMINATED | 3 | fmt | 1 |
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq |
drivers/iommu/arm/arm-smmu/arm-smmu.c arm_smmu_device_probe() -> iommu_device_sysfs_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iommu | 4096-ptr_max |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->bus | 0,4096-ptr_max |
| PARAM_VALUE | 1 | parent->class | 0,4096-ptr_max |
| PARAM_VALUE | 1 | parent->dma_mask | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->driver | 0,4096-ptr_max |
| PARAM_VALUE | 1 | parent->of_node | 0 |
| PARAM_VALUE | 2 | groups | 0 |
| PARAM_VALUE | 3 | fmt | 1335221182342045696 |
| PARAM_VALUE | 4 | $ | 4096-ptr_max |
| BUF_SIZE | 3 | fmt | 9 |
| BUF_SIZE | 4 | $ | 8 |
| STR_LEN | 0 | iommu | 8 |
| TERMINATED | 3 | fmt | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iommu/vsi-iommu.c vsi_iommu_probe() -> iommu_device_sysfs_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iommu | 4096-ptr_max |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->power.autosuspend_delay | 100 |
| PARAM_VALUE | 1 | parent->power.last_status | (-1) |
| PARAM_VALUE | 1 | parent->power.qos | 0,4096-u64max |
| PARAM_VALUE | 1 | parent->power.request | 0-4 |
| PARAM_VALUE | 1 | parent->power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 1 | parent->power.runtime_status | 0,2 |
| PARAM_VALUE | 1 | parent->power.use_autosuspend | 1 |
| PARAM_VALUE | 1 | parent->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 2 | groups | 0 |
| PARAM_VALUE | 3 | fmt | 8347350738675638272 |
| BUF_SIZE | 1 | parent | 1616 |
| BUF_SIZE | 3 | fmt | 3 |
| BUF_SIZE | 4 | $ | 1-s32max |
| STR_LEN | 0 | iommu | 2 |
| TERMINATED | 3 | fmt | 1 |
| MEM_ZERO | 0 | iommu | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iommu/omap-iommu.c omap_iommu_probe() -> iommu_device_sysfs_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iommu | 4096-ptr_max |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->of_node | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->pm_domain | 0 |
| PARAM_VALUE | 2 | groups | 0 |
| BUF_SIZE | 1 | parent | 1616 |
| BUF_SIZE | 3 | fmt | 1-s32max |
| BUF_SIZE | 3 | fmt | 1-s32max |
| MEM_ZERO | 0 | iommu | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iommu/apple-dart.c apple_dart_probe() -> iommu_device_sysfs_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iommu | 4096-ptr_max |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->driver | 4096-ptr_max |
| PARAM_VALUE | 2 | groups | 0 |
| PARAM_VALUE | 3 | fmt | 3367147896971227136 |
| BUF_SIZE | 1 | parent | 1616 |
| BUF_SIZE | 3 | fmt | 14 |
| BUF_SIZE | 4 | $ | 1-s32max |
| STR_LEN | 0 | iommu | 13 |
| TERMINATED | 3 | fmt | 1 |
| MEM_ZERO | 0 | iommu | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iommu/sun50i-iommu.c sun50i_iommu_probe() -> iommu_device_sysfs_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iommu | 4096-ptr_max |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->driver_data | 4096-ptr_max |
| PARAM_VALUE | 2 | groups | 0 |
| BUF_SIZE | 3 | fmt | 1-s32max |
| MEM_ZERO | 0 | iommu | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iommu/exynos-iommu.c exynos_sysmmu_probe() -> iommu_device_sysfs_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iommu | 4096-ptr_max |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 2 | groups | 0 |
| BUF_SIZE | 3 | fmt | 1-s32max |
| MEM_ZERO | 0 | iommu | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iommu/ipmmu-vmsa.c ipmmu_probe() -> iommu_device_sysfs_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iommu | 4096-ptr_max |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->dma_mask | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->driver | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->driver_data | 4096-ptr_max |
| PARAM_VALUE | 2 | groups | 0 |
| PARAM_VALUE | 3 | fmt | 8347350738675638272 |
| BUF_SIZE | 3 | fmt | 3 |
| BUF_SIZE | 4 | $ | 1-s32max |
| STR_LEN | 0 | iommu | 2 |
| TERMINATED | 3 | fmt | 1 |
| MEM_ZERO | 0 | iommu | |
| RX_PATH | |||
| TASK_NOT_RUNNING |