Defined in 1 files as a function:

Referenced in 14 files:

Smatch caller information:

drivers/gpu/drm/ttm/ttm_bo.c ttm_bo_swapout_cb() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 1-u64max
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/ttm/ttm_bo.c ttm_bo_swapout_cb() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 4096-ptr_max
BIT_INFO 0 tt->page_flags 0x0,0xfffffffa
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/vmwgfx/vmwgfx_blit.c vmw_bo_cpu_blit() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 4096-ptr_max
BIT_INFO 0 tt->page_flags 0x0,0xffffffff
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/vmwgfx/vmwgfx_blit.c vmw_bo_cpu_blit() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 4096-ptr_max
BIT_INFO 0 tt->page_flags 0x0,0xffffffff
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c i915_ttm_move() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 4096-ptr_max
BUF_SIZE 0 tt (-1),64
BUF_SIZE 0 tt (-1),64
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 tt->num_pages 0-u32max[c]
NO_OVERFLOW_SIMPLE 0 tt->num_pages
HALF_LOCKED2 bo->base.resv

drivers/gpu/drm/nouveau/nouveau_bo.c nouveau_ttm_tt_populate() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 4096-ptr_max
BUF_SIZE 0 tt (-1),64
BUF_SIZE 0 tt (-1),64
DATA_SOURCE 0 tt $1
BIT_INFO 0 tt->page_flags 0x0,0xffffffff
NOSPEC 0 tt->num_pages
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 tt->num_pages 0-u32max[c]
NO_OVERFLOW_SIMPLE 0 tt->num_pages
NO_OVERFLOW_SIMPLE 0 tt->restore->snapshot_alloc.remaining_pages
NO_OVERFLOW_SIMPLE 0 tt->sg->orig_nents

drivers/gpu/drm/i915/gem/i915_gem_ttm.c __i915_ttm_get_pages() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 1-u64max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 obj->base.resv

drivers/gpu/drm/i915/gem/i915_gem_ttm.c i915_ttm_adjust_lru() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 1-u64max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &ce->pin_mutex
HALF_LOCKED2 bo->base.resv
HALF_LOCKED2 obj->base.resv

drivers/gpu/drm/xe/xe_drm_client.c xe_bo_has_pages() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 1-u64max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &m->lock
LOCK2 bo->ttm.base.resv
LOCK2 global &drm_unplug_srcu
HALF_LOCKED2 &client->bos_lock
HALF_LOCKED2 &file->table_lock
TYPE_LOCK (struct seq_file)->lock

drivers/gpu/drm/ttm/ttm_bo_util.c ttm_bo_move_memcpy() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 4096-ptr_max
BUF_SIZE 0 tt (-1),64
BUF_SIZE 0 tt (-1),64
BIT_INFO 0 tt->page_flags 0x0,0xffffffff
NOSPEC 0 tt->num_pages
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 tt->num_pages 0-u32max[c]
NO_OVERFLOW_SIMPLE 0 tt->num_pages

drivers/gpu/drm/ttm/ttm_bo_util.c ttm_bo_shrink_suitable() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 1-u64max
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 tt->dma_ttm.sg->orig_nents
HALF_LOCKED2 global &bch_register_lock

drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c ttm_bo_init_reserved_sys_man() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 0

drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c ttm_bo_validate_basic() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 0

drivers/gpu/drm/xe/xe_bo.c ccs_test_migrate() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 1-u64max
PARAM_VALUE 0 tt->page_flags 0,2,4,6,12,14,16,18,20,22,28,30
LOCK2 bo->ttm.base.resv

drivers/gpu/drm/xe/xe_bo.c xe_bo_move() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 1-u64max
BUF_SIZE 0 tt (-1),64
BUF_SIZE 0 tt (-1),64
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 tt->num_pages 0-u32max[c]
NO_OVERFLOW_SIMPLE 0 tt->num_pages
HALF_LOCKED2 ttm_bo->base.resv

drivers/gpu/drm/xe/xe_bo.c xe_bo_move() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 1-u64max
BUF_SIZE 0 tt (-1),64
BUF_SIZE 0 tt (-1),64
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 tt->num_pages 0-u32max[c]
NO_OVERFLOW_SIMPLE 0 tt->num_pages
HALF_LOCKED2 ttm_bo->base.resv

drivers/gpu/drm/xe/xe_bo.c xe_bo_pin() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 1-u64max
PARAM_VALUE 0 tt->page_flags 0,2,4,6,12,14,16,18,20,22,28,30
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 tt->num_pages 0-u32max[c]
NO_OVERFLOW_SIMPLE 0 tt->dma_ttm.sg->orig_nents

drivers/gpu/drm/xe/xe_bo.c xe_bo_pin_external() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 1-u64max
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 tt->dma_ttm.sg->orig_nents
HALF_LOCKED2 bo->ttm.base.resv

drivers/gpu/drm/xe/xe_bo.c xe_bo_set_purgeable_shrinker() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 1-u64max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &vm->lock
HALF_LOCKED2 bo->ttm.base.resv

drivers/gpu/drm/xe/xe_bo.c xe_bo_unpin() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 1-u64max
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 tt->num_pages 0-u32max[c]
NO_OVERFLOW_SIMPLE 0 tt->dma_ttm.sg->orig_nents
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 bo->ttm.base.resv

drivers/gpu/drm/xe/xe_bo.c xe_bo_unpin_external() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 1-u64max
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 tt->dma_ttm.sg->orig_nents
HALF_LOCKED2 bo->ttm.base.resv

drivers/gpu/drm/ttm/ttm_pool.c __ttm_pool_alloc() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 4096-ptr_max
BUF_SIZE 0 tt (-1),64
BUF_SIZE 0 tt (-1),64
BUF_SIZE 0 tt->restore (-1),88
DATA_SOURCE 0 tt $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 tt->num_pages 0-u32max[c]
USER_DATA 0 tt->restore->snapshot_alloc.remaining_pages 0-u32max[c]
NO_OVERFLOW_SIMPLE 0 tt->dma_ttm.sg->orig_nents
NO_OVERFLOW_SIMPLE 0 tt->num_pages
NO_OVERFLOW_SIMPLE 0 tt->restore->snapshot_alloc.remaining_pages
NO_OVERFLOW_SIMPLE 0 tt->sg->orig_nents
NO_OVERFLOW_SIMPLE 0 tt->ttm.sg->orig_nents

drivers/gpu/drm/ttm/ttm_tt.c ttm_tt_populate() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 4096-ptr_max
BUF_SIZE 0 tt (-1),64
BUF_SIZE 0 tt (-1),64
DATA_SOURCE 0 tt $1
NOSPEC 0 tt->num_pages
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 tt->num_pages 0-u32max[c]
NO_OVERFLOW_SIMPLE 0 tt->num_pages
NO_OVERFLOW_SIMPLE 0 tt->sg->orig_nents

drivers/gpu/drm/ttm/ttm_tt.c ttm_tt_unpopulate() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 1-u64max
BUF_SIZE 0 tt (-1),64
BUF_SIZE 0 tt (-1),64
BUF_SIZE 0 tt->sg (-1),16
DATA_SOURCE 0 tt $1
NOSPEC 0 tt->num_pages
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 tt->num_pages 0-u32max[c]
USER_DATA 0 tt->sg->nents 2-s32max[c]
NO_OVERFLOW_SIMPLE 0 tt->cached_rsgt.size
NO_OVERFLOW_SIMPLE 0 tt->dma_ttm.sg->orig_nents
NO_OVERFLOW_SIMPLE 0 tt->gobj->size
NO_OVERFLOW_SIMPLE 0 tt->num_pages
NO_OVERFLOW_SIMPLE 0 tt->restore->snapshot_alloc.remaining_pages
NO_OVERFLOW_SIMPLE 0 tt->sg->orig_nents
NO_OVERFLOW_SIMPLE 0 tt->ttm.num_pages
NO_OVERFLOW_SIMPLE 0 tt->ttm.sg->orig_nents

drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c vmw_ttm_populate() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 4096-ptr_max
BUF_SIZE 0 tt (-1),64
BUF_SIZE 0 tt (-1),64
DATA_SOURCE 0 tt $1
NOSPEC 0 tt->num_pages
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 tt->num_pages 0-u32max[c]
NO_OVERFLOW_SIMPLE 0 tt->restore->snapshot_alloc.remaining_pages
NO_OVERFLOW_SIMPLE 0 tt->sg->orig_nents

drivers/gpu/drm/ttm/tests/ttm_tt_test.c ttm_tt_swapin_basic() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 4096-ptr_max
PARAM_VALUE 0 tt->page_flags 0,2-4294967294
BUF_SIZE 0 tt 64
DATA_SOURCE 0 tt r kunit_kzalloc
FUZZY_MAX 0 tt->page_flags 0
MEM_ZERO 0 tt
NO_OVERFLOW_SIMPLE 0 tt->sg->orig_nents

drivers/gpu/drm/ttm/tests/ttm_tt_test.c ttm_tt_unpopulate_basic() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 4096-ptr_max
PARAM_VALUE 0 tt->page_flags 0,2-4294967294
BUF_SIZE 0 tt 64
DATA_SOURCE 0 tt r kunit_kzalloc
FUZZY_MAX 0 tt->page_flags 0
MEM_ZERO 0 tt
NO_OVERFLOW_SIMPLE 0 tt->sg->orig_nents

drivers/gpu/drm/ttm/tests/ttm_tt_test.c ttm_tt_unpopulate_basic() -> ttm_tt_is_populated()

Type Parameter Key Value
PARAM_VALUE 0 tt 4096-ptr_max
PARAM_VALUE 0 tt->page_flags 0-4294967294
BUF_SIZE 0 tt 64
DATA_SOURCE 0 tt r kunit_kzalloc
FUZZY_MAX 0 tt->page_flags 0
MEM_ZERO 0 tt
NO_OVERFLOW_SIMPLE 0 tt->sg->orig_nents