Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 14 files:

Smatch caller information:

drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c amdgpu_vram_mgr_del() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->bdev->lru_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 man->func 4096-ptr_max
PARAM_VALUE 1 res 0,16,4096-ptr_max
BUF_SIZE 1 res->bo (-1),864
DATA_SOURCE 0 man $0
DATA_SOURCE 1 res $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c amdgpu_vram_mgr_new() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->bdev 0,4096-ptr_max
PARAM_VALUE 0 man->bdev->lru_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 man->func 4096-ptr_max
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->bo 4096-ptr_max
PARAM_VALUE 1 res->bus.addr 0
PARAM_VALUE 1 res->bus.caching 2
PARAM_VALUE 1 res->lru.link.next 4096-ptr_max
PARAM_VALUE 1 res->start 0
DATA_SOURCE 0 man $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 1 res->size

drivers/gpu/drm/nouveau/nouveau_mem.c nouveau_mem_del() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->func 4096-ptr_max
PARAM_VALUE 1 res 0,16,4096-ptr_max
BUF_SIZE 1 res (-1),88
BUF_SIZE 1 res (-1),88
BUF_SIZE 1 res->bo (-1),864
DATA_SOURCE 0 man $0
DATA_SOURCE 1 res $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 1 res->size

drivers/gpu/drm/ttm/tests/ttm_resource_test.c ttm_resource_fini_basic() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->bo 4096-ptr_max
PARAM_VALUE 1 res->bus.addr 0
PARAM_VALUE 1 res->bus.caching 2
PARAM_VALUE 1 res->bus.is_iomem 0
PARAM_VALUE 1 res->bus.offset 0
PARAM_VALUE 1 res->lru.link.next 4096-ptr_max
PARAM_VALUE 1 res->mem_type 0
PARAM_VALUE 1 res->placement 0
PARAM_VALUE 1 res->size 4096
PARAM_VALUE 1 res->start 0
BUF_SIZE 1 res 88
CAPPED_DATA 1 res 1
DATA_SOURCE 0 man r ttm_manager_type
DATA_SOURCE 1 res r kunit_kzalloc
MEM_ZERO 1 res
NOCHECK_CALL

drivers/gpu/drm/ttm/tests/ttm_resource_test.c ttm_resource_init_basic() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->lru 4096-ptr_max
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->bo 4096-ptr_max
PARAM_VALUE 1 res->bus.addr 0
PARAM_VALUE 1 res->bus.caching 2
PARAM_VALUE 1 res->bus.is_iomem 0
PARAM_VALUE 1 res->bus.offset 0
PARAM_VALUE 1 res->lru.link.next 4096-ptr_max
PARAM_VALUE 1 res->placement 0
PARAM_VALUE 1 res->size 4096
PARAM_VALUE 1 res->start 0
BUF_SIZE 1 res 88
CAPPED_DATA 1 res 1
DATA_SOURCE 0 man r ttm_manager_type
DATA_SOURCE 1 res r kunit_kzalloc
MEM_ZERO 1 res
NOCHECK_CALL

drivers/gpu/drm/ttm/tests/ttm_resource_test.c ttm_resource_init_pinned() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->bo 4096-ptr_max
PARAM_VALUE 1 res->bus.addr 0
PARAM_VALUE 1 res->bus.caching 2
PARAM_VALUE 1 res->bus.is_iomem 0
PARAM_VALUE 1 res->bus.offset 0
PARAM_VALUE 1 res->lru.link.next 4096-ptr_max
PARAM_VALUE 1 res->mem_type 0
PARAM_VALUE 1 res->placement 0
PARAM_VALUE 1 res->size 4096
PARAM_VALUE 1 res->start 0
BUF_SIZE 1 res 88
CAPPED_DATA 1 res 1
DATA_SOURCE 0 man r ttm_manager_type
DATA_SOURCE 1 res r kunit_kzalloc
MEM_ZERO 1 res
NOCHECK_CALL
LOCK2 bo->base.resv

drivers/gpu/drm/ttm/tests/ttm_resource_test.c ttm_resource_manager_usage_basic() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->bdev 4096-ptr_max
PARAM_VALUE 0 man->bdev->lru_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->bo 4096-ptr_max
PARAM_VALUE 1 res->bus.addr 0
PARAM_VALUE 1 res->bus.caching 2
PARAM_VALUE 1 res->bus.is_iomem 0
PARAM_VALUE 1 res->bus.offset 0
PARAM_VALUE 1 res->lru.link.next 4096-ptr_max
PARAM_VALUE 1 res->mem_type 0
PARAM_VALUE 1 res->placement 2
PARAM_VALUE 1 res->size 4096
PARAM_VALUE 1 res->start 0
BUF_SIZE 1 res 88
CAPPED_DATA 1 res 1
DATA_SOURCE 0 man r ttm_manager_type
DATA_SOURCE 1 res r kunit_kzalloc
MEM_ZERO 1 res
NOCHECK_CALL

drivers/gpu/drm/ttm/tests/ttm_resource_test.c ttm_sys_man_alloc_basic() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->func 4096-ptr_max
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->bo s64min-(-4096),4096-s64max
PARAM_VALUE 1 res->bus.caching 1-2
PARAM_VALUE 1 res->bus.is_iomem 0-1
PARAM_VALUE 1 res->mem_type 0
PARAM_VALUE 1 res->placement 0-4294967295
PARAM_VALUE 1 res->size 4096
DATA_SOURCE 0 man r ttm_manager_type
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 1 res->size

drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c amdgpu_preempt_mgr_del() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->func 4096-ptr_max
PARAM_VALUE 1 res 0,16,4096-ptr_max
BUF_SIZE 1 res->bo (-1),864
DATA_SOURCE 0 man $0
DATA_SOURCE 1 res $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/gpu/drm/ttm/ttm_sys_manager.c ttm_sys_man_free() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->func 4096-ptr_max
PARAM_VALUE 1 res 0,16,4096-ptr_max
BUF_SIZE 1 res->bo (-1),864
DATA_SOURCE 0 man $0
DATA_SOURCE 1 res $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/gpu/drm/ttm/ttm_range_manager.c ttm_range_man_alloc() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->func 4096-ptr_max
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->bo 4096-ptr_max
PARAM_VALUE 1 res->bus.addr 0
PARAM_VALUE 1 res->bus.caching 2
PARAM_VALUE 1 res->lru.link.next 4096-ptr_max
PARAM_VALUE 1 res->start 0
DATA_SOURCE 0 man $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 1 res->size

drivers/gpu/drm/ttm/ttm_range_manager.c ttm_range_man_free() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->func 4096-ptr_max
PARAM_VALUE 1 res 0,16,4096-ptr_max
BUF_SIZE 1 res->bo (-1),864
DATA_SOURCE 0 man $0
DATA_SOURCE 1 res $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/gpu/drm/i915/i915_ttm_buddy_manager.c i915_ttm_buddy_man_alloc() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->func 4096-ptr_max
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->bo 4096-ptr_max
PARAM_VALUE 1 res->bus.addr 0
PARAM_VALUE 1 res->bus.caching 2
PARAM_VALUE 1 res->lru.link.next 4096-ptr_max
PARAM_VALUE 1 res->start 0
DATA_SOURCE 0 man $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 1 res->size

drivers/gpu/drm/i915/i915_ttm_buddy_manager.c i915_ttm_buddy_man_free() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->func 4096-ptr_max
PARAM_VALUE 1 res 0,16,4096-ptr_max
BUF_SIZE 1 res->bo (-1),864
DATA_SOURCE 0 man $0
DATA_SOURCE 1 res $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c vmw_gmrid_man_get_node() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->func 4096-ptr_max
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->bo 4096-ptr_max
PARAM_VALUE 1 res->bus.addr 0
PARAM_VALUE 1 res->bus.caching 2
PARAM_VALUE 1 res->lru.link.next 4096-ptr_max
PARAM_VALUE 1 res->start 0
DATA_SOURCE 0 man $0
DATA_SOURCE 1 res r _kmalloc_noprof
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 1 res->size

drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c vmw_gmrid_man_get_node() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->func 4096-ptr_max
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->bo 4096-ptr_max
PARAM_VALUE 1 res->bus.addr 0
PARAM_VALUE 1 res->bus.caching 2
PARAM_VALUE 1 res->lru.link.next 4096-ptr_max
PARAM_VALUE 1 res->start 0
DATA_SOURCE 0 man $0
DATA_SOURCE 1 res r _kmalloc_noprof
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 1 res->size

drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c vmw_gmrid_man_put_node() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->func 4096-ptr_max
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->start 0-u32max
BUF_SIZE 1 res->bo (-1),864
DATA_SOURCE 0 man $0
DATA_SOURCE 1 res $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/gpu/drm/xe/xe_ttm_vram_mgr.c xe_ttm_vram_mgr_del() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->func 4096-ptr_max
PARAM_VALUE 1 res 0,16,4096-ptr_max
BUF_SIZE 1 res->bo (-1),864
DATA_SOURCE 0 man $0
DATA_SOURCE 1 res $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/gpu/drm/xe/xe_ttm_vram_mgr.c xe_ttm_vram_mgr_new() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->bdev 0,4096-ptr_max
PARAM_VALUE 0 man->bdev->lru_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 man->func 4096-ptr_max
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->bo 4096-ptr_max
PARAM_VALUE 1 res->bus.addr 0
PARAM_VALUE 1 res->bus.caching 2
PARAM_VALUE 1 res->lru.link.next 4096-ptr_max
PARAM_VALUE 1 res->start 0
DATA_SOURCE 0 man $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 1 res->size

drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c amdgpu_gtt_mgr_del() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->func 4096-ptr_max
PARAM_VALUE 1 res 0,16,4096-ptr_max
BUF_SIZE 1 res->bo (-1),864
DATA_SOURCE 0 man $0
DATA_SOURCE 1 res $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c amdgpu_gtt_mgr_new() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->func 4096-ptr_max
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->bo 4096-ptr_max
PARAM_VALUE 1 res->bus.addr 0
PARAM_VALUE 1 res->bus.caching 2
PARAM_VALUE 1 res->lru.link.next 4096-ptr_max
PARAM_VALUE 1 res->start 0
DATA_SOURCE 0 man $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 1 res->size

drivers/gpu/drm/ttm/tests/ttm_mock_manager.c ttm_mock_manager_alloc() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->func 4096-ptr_max
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->bo 4096-ptr_max
PARAM_VALUE 1 res->bus.addr 0
PARAM_VALUE 1 res->bus.caching 2
PARAM_VALUE 1 res->lru.link.next 4096-ptr_max
PARAM_VALUE 1 res->start 0
DATA_SOURCE 0 man $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &manager->lock
TYPE_LOCK (struct ttm_mock_manager)->lock

drivers/gpu/drm/ttm/tests/ttm_mock_manager.c ttm_mock_manager_free() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->func 4096-ptr_max
PARAM_VALUE 1 res 0,16,4096-ptr_max
BUF_SIZE 1 res->bo (-1),864
DATA_SOURCE 0 man $0
DATA_SOURCE 1 res $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/gpu/drm/vmwgfx/vmwgfx_system_manager.c vmw_sys_man_free() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->func 4096-ptr_max
PARAM_VALUE 1 res 0,16,4096-ptr_max
BUF_SIZE 1 res->bo (-1),864
DATA_SOURCE 0 man $0
DATA_SOURCE 1 res $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/gpu/drm/xe/xe_ttm_sys_mgr.c xe_ttm_sys_mgr_del() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->func 4096-ptr_max
PARAM_VALUE 1 res 0,16,4096-ptr_max
BUF_SIZE 1 res->bo (-1),864
DATA_SOURCE 0 man $0
DATA_SOURCE 1 res $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/gpu/drm/xe/xe_ttm_sys_mgr.c xe_ttm_sys_mgr_new() -> ttm_resource_fini()

Type Parameter Key Value
PARAM_VALUE 0 man 4096-ptr_max
PARAM_VALUE 0 man->bdev 4096-ptr_max
PARAM_VALUE 0 man->bdev->lru_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 man->func 4096-ptr_max
PARAM_VALUE 0 man->usage 1-u64max
PARAM_VALUE 1 res 4096-ptr_max
PARAM_VALUE 1 res->bo 4096-ptr_max
PARAM_VALUE 1 res->bus.addr 0
PARAM_VALUE 1 res->bus.caching 2
PARAM_VALUE 1 res->lru.link.next 4096-ptr_max
PARAM_VALUE 1 res->start 0
BUF_SIZE 1 res 264
DATA_SOURCE 0 man $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 1 res->size