Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 26 files:
- drivers/accel/amdxdna/amdxdna_cbuf.c, line 73
- drivers/accel/amdxdna/amdxdna_pci_drv.c, line 177
- drivers/accel/ivpu/ivpu_mmu_context.c, line 608
- drivers/accel/rocket/rocket_drv.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c, line 395
- drivers/gpu/drm/armada/armada_drv.c
- drivers/gpu/drm/drm_mm.c, line 969
- drivers/gpu/drm/drm_vma_manager.c, line 107
- drivers/gpu/drm/etnaviv/etnaviv_iommu.c, line 37
- drivers/gpu/drm/etnaviv/etnaviv_iommu_v2.c, line 52
- drivers/gpu/drm/i915/gem/i915_gem_stolen.c, line 225
- drivers/gpu/drm/i915/gt/intel_gtt.c, line 212
- drivers/gpu/drm/imagination/pvr_fw.c
- drivers/gpu/drm/lima/lima_vm.c, line 240
- drivers/gpu/drm/msm/msm_gem_vma.c, line 163
- drivers/gpu/drm/panfrost/panfrost_mmu.c, line 736
- drivers/gpu/drm/panthor/panthor_mmu.c
- drivers/gpu/drm/rockchip/rockchip_drm_drv.c, line 141
- drivers/gpu/drm/tegra/drm.c
- drivers/gpu/drm/tests/drm_mm_test.c
- drivers/gpu/drm/ttm/ttm_range_manager.c, line 234
- drivers/gpu/drm/v3d/v3d_gem.c
- drivers/gpu/drm/vc4/vc4_hvs.c
- drivers/gpu/drm/virtio/virtgpu_kms.c, line 371
- drivers/gpu/drm/xe/xe_ggtt.c, line 322
- drivers/gpu/drm/xe/xe_mem_pool.c, line 67
Smatch caller information:
drivers/gpu/drm/v3d/v3d_gem.c v3d_gem_destroy() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &_dev->mutex |
drivers/gpu/drm/v3d/v3d_gem.c v3d_gem_init() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.hole_size | 1 |
| PARAM_VALUE | 0 | mm->head_node.hole_stack.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.hole_stack.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.mm | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.node_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.node_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.rb_hole_size.__rb_parent_color | 1 |
| PARAM_VALUE | 0 | mm->head_node.rb_hole_size.rb_left | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.rb_hole_size.rb_right | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.start | 1048576 |
| PARAM_VALUE | 0 | mm->head_node.subtree_max_hole | 1 |
| PARAM_VALUE | 0 | mm->hole_stack.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->hole_stack.prev | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpu/drm/msm/msm_gem_vma.c msm_gem_vm_free() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &cli->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &tlb_inval->seqno_lock |
drivers/gpu/drm/xe/xe_ggtt.c ggtt_fini_early() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &component_mutex |
drivers/gpu/drm/panfrost/panfrost_mmu.c panfrost_mmu_release_ctx() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/accel/rocket/rocket_drv.c rocket_open() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.hole_size | 1 |
| PARAM_VALUE | 0 | mm->head_node.hole_stack.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.hole_stack.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.mm | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.node_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.node_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.rb_hole_size.__rb_parent_color | 1 |
| PARAM_VALUE | 0 | mm->head_node.rb_hole_size.rb_left | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.rb_hole_size.rb_right | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.start | 1-u64max |
| PARAM_VALUE | 0 | mm->head_node.subtree_max_hole | 1 |
| PARAM_VALUE | 0 | mm->hole_stack.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->hole_stack.prev | 4096-ptr_max |
| CAPABLE | 0 | 21 | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/accel/rocket/rocket_drv.c rocket_postclose() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpu/drm/etnaviv/etnaviv_iommu_v2.c etnaviv_iommuv2_free() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpu/drm/ttm/ttm_range_manager.c ttm_range_man_fini_nocheck() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| BUF_SIZE | 0 | mm | 248 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &rman->lock | ||
| TYPE_LOCK | (struct ttm_range_manager)->lock |
drivers/gpu/drm/tests/drm_mm_test.c drm_test_mm_align_pot() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 6837542392382337024 |
| PARAM_VALUE | 0 | mm->head_node.hole_size | 1 |
| PARAM_VALUE | 0 | mm->head_node.hole_stack.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.hole_stack.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.mm | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.node_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.node_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.rb_hole_size.__rb_parent_color | 1 |
| PARAM_VALUE | 0 | mm->head_node.rb_hole_size.rb_left | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.rb_hole_size.rb_right | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.start | 18446744073709551614 |
| PARAM_VALUE | 0 | mm->head_node.subtree_max_hole | 1 |
| PARAM_VALUE | 0 | mm->hole_stack.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->hole_stack.prev | 4096-ptr_max |
| NOCHECK_CALL |
drivers/gpu/drm/tests/drm_mm_test.c drm_test_mm_init() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 3320776367265980416 |
| PARAM_VALUE | 0 | mm->head_node.hole_size | 1 |
| PARAM_VALUE | 0 | mm->head_node.hole_stack.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.hole_stack.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.mm | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.node_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.node_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.rb_hole_size.__rb_parent_color | 1 |
| PARAM_VALUE | 0 | mm->head_node.rb_hole_size.rb_left | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.rb_hole_size.rb_right | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.start | 4096 |
| PARAM_VALUE | 0 | mm->head_node.subtree_max_hole | 1 |
| PARAM_VALUE | 0 | mm->hole_stack.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->hole_stack.prev | 4096-ptr_max |
| MEM_ZERO | 0 | mm | |
| NOCHECK_CALL |
drivers/gpu/drm/tests/drm_mm_test.c drm_test_mm_once() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 173250437256478720 |
| PARAM_VALUE | 0 | mm->head_node.hole_size | 1 |
| PARAM_VALUE | 0 | mm->head_node.hole_stack.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.hole_stack.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.mm | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.node_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.node_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.rb_hole_size.__rb_parent_color | 1 |
| PARAM_VALUE | 0 | mm->head_node.rb_hole_size.rb_left | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.rb_hole_size.rb_right | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.start | 7 |
| PARAM_VALUE | 0 | mm->head_node.subtree_max_hole | 1 |
| PARAM_VALUE | 0 | mm->hole_stack.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->hole_stack.prev | 4096-ptr_max |
| NOCHECK_CALL |
drivers/gpu/drm/i915/gt/intel_gtt.c i915_address_space_fini() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpu/drm/etnaviv/etnaviv_iommu.c etnaviv_iommuv1_free() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpu/drm/i915/gem/i915_gem_stolen.c i915_gem_cleanup_stolen() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->hole_stack.next | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpu/drm/lima/lima_vm.c lima_vm_release() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpu/drm/virtio/virtgpu_kms.c virtio_gpu_release() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | global &component_mutex | ||
| HALF_LOCKED2 | global &xenwatch_mutex |
drivers/gpu/drm/tegra/drm.c host1x_drm_probe() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.hole_size | 1 |
| PARAM_VALUE | 0 | mm->head_node.hole_stack.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.hole_stack.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.mm | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.node_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.node_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.rb_hole_size.__rb_parent_color | 1 |
| PARAM_VALUE | 0 | mm->head_node.rb_hole_size.rb_left | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.rb_hole_size.rb_right | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.start | 1-u64max |
| PARAM_VALUE | 0 | mm->head_node.subtree_max_hole | 1 |
| PARAM_VALUE | 0 | mm->hole_stack.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->hole_stack.prev | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpu/drm/tegra/drm.c host1x_drm_remove() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->mutex |
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c amdgpu_gtt_mgr_fini() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &mgr->lock | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | global &component_mutex | ||
| HALF_LOCKED2 | global &xenwatch_mutex | ||
| TYPE_LOCK | (struct amdgpu_gtt_mgr)->lock |
drivers/accel/amdxdna/amdxdna_pci_drv.c amdxdna_client_cleanup() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &xdna->client_lock | ||
| LOCK2 | &xdna->dev_lock | ||
| TYPE_LOCK | (struct amdxdna_dev)->client_lock | ||
| TYPE_LOCK | (struct amdxdna_dev)->dev_lock |
drivers/gpu/drm/vc4/vc4_hvs.c vc4_hvs_unbind() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpu/drm/vc4/vc4_hvs.c vc4_hvs_unbind() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpu/drm/xe/xe_mem_pool.c fini_pool_action() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &component_mutex |
drivers/accel/ivpu/ivpu_mmu_context.c ivpu_mmu_context_fini() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &file_priv->lock | ||
| HALF_LOCKED2 | &vdev->context_list_lock |
drivers/gpu/drm/rockchip/rockchip_drm_drv.c rockchip_iommu_cleanup() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &component_mutex |
drivers/gpu/drm/drm_vma_manager.c drm_vma_offset_manager_destroy() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &component_mutex |
drivers/accel/amdxdna/amdxdna_cbuf.c amdxdna_carveout_fini() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &component_mutex |
drivers/gpu/drm/panthor/panthor_mmu.c panthor_vm_create() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.hole_size | 1 |
| PARAM_VALUE | 0 | mm->head_node.hole_stack.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.hole_stack.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.mm | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.node_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.node_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.rb_hole_size.__rb_parent_color | 1 |
| PARAM_VALUE | 0 | mm->head_node.rb_hole_size.rb_left | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.rb_hole_size.rb_right | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->head_node.start | 1-u64max |
| PARAM_VALUE | 0 | mm->head_node.subtree_max_hole | 1 |
| PARAM_VALUE | 0 | mm->hole_stack.next | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->hole_stack.prev | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | mm->head_node.size | 0-u64max |
| HALF_LOCKED2 | global &drm_unplug_srcu |
drivers/gpu/drm/panthor/panthor_mmu.c panthor_vm_free() -> drm_mm_takedown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &cli->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &tlb_inval->seqno_lock |