Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a member:
Defined in 1 files as a function:
Referenced in 11 files:
- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c, line 1702
- drivers/gpu/drm/i915/gem/i915_gem_ttm.c, line 757
- drivers/gpu/drm/loongson/lsdc_ttm.c, line 244
- drivers/gpu/drm/nouveau/nouveau_bo.c, line 1491
- drivers/gpu/drm/radeon/radeon_ttm.c, line 669
- drivers/gpu/drm/ttm/tests/ttm_tt_test.c
- drivers/gpu/drm/ttm/ttm_bo.c, line 1527
- drivers/gpu/drm/ttm/ttm_tt.c
- drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
- drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c, line 550
- drivers/gpu/drm/xe/xe_bo.c, line 1830
Smatch caller information:
drivers/gpu/drm/ttm/ttm_bo.c ttm_bo_populate() -> ttm_tt_populate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ttm | 4096-ptr_max |
| BUF_SIZE | 1 | ttm | (-1),64 |
| BUF_SIZE | 1 | ttm | (-1),64 |
| BUF_SIZE | 2 | ctx | (-1),24 |
| BUF_SIZE | 2 | ctx | (-1),24 |
| DATA_SOURCE | 2 | ctx | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | ttm->num_pages | 0-u32max[c] |
| USER_DATA | 2 | ctx->allow_res_evict | 0-1 |
| NO_OVERFLOW_SIMPLE | 1 | ttm->num_pages | |
| NO_OVERFLOW_SIMPLE | 2 | ctx->bytes_moved | |
| HALF_LOCKED2 | bo->base.resv | ||
| HALF_LOCKED2 | global &drm_unplug_srcu | ||
| HALF_LOCKED2 | obj->base.resv |
drivers/gpu/drm/ttm/tests/ttm_tt_test.c ttm_tt_populate_null_ttm() -> ttm_tt_populate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ttm | 0 |
| PARAM_VALUE | 2 | ctx | 467309738329874432 |
| PARAM_VALUE | 2 | ctx->gfp_retry_mayfail | 0 |
| PARAM_VALUE | 2 | ctx->interruptible | 0 |
| PARAM_VALUE | 2 | ctx->resv | 0 |
drivers/gpu/drm/ttm/tests/ttm_tt_test.c ttm_tt_populate_populated_ttm() -> ttm_tt_populate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ttm | 4096-ptr_max |
| PARAM_VALUE | 1 | ttm->backup | 0 |
| PARAM_VALUE | 1 | ttm->caching | 2 |
| PARAM_VALUE | 1 | ttm->dma_address | 0 |
| PARAM_VALUE | 1 | ttm->page_flags | 0 |
| PARAM_VALUE | 1 | ttm->pages | 16,4096-ptr_max |
| PARAM_VALUE | 1 | ttm->restore | 0 |
| PARAM_VALUE | 1 | ttm->swap_storage | 0 |
| PARAM_VALUE | 2 | ctx | 806791040179113984 |
| PARAM_VALUE | 2 | ctx->gfp_retry_mayfail | 0 |
| PARAM_VALUE | 2 | ctx->interruptible | 0 |
| PARAM_VALUE | 2 | ctx->resv | 0 |
| BUF_SIZE | 1 | ttm | 64 |
| DATA_SOURCE | 1 | ttm | r kunit_kzalloc |
| MEM_ZERO | 1 | ttm | |
| NO_OVERFLOW_SIMPLE | 1 | ttm->sg->orig_nents |
drivers/gpu/drm/ttm/tests/ttm_tt_test.c ttm_tt_populate_populated_ttm() -> ttm_tt_populate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bdev->pool.dev->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 1 | ttm | 4096-ptr_max |
| PARAM_VALUE | 1 | ttm->backup | 0 |
| PARAM_VALUE | 1 | ttm->bound | 0 |
| PARAM_VALUE | 1 | ttm->caching | 2 |
| PARAM_VALUE | 1 | ttm->dma_address | 0 |
| PARAM_VALUE | 1 | ttm->mem | 0 |
| PARAM_VALUE | 1 | ttm->num_pages | 0 |
| PARAM_VALUE | 1 | ttm->page_flags | 0,2-4294967294 |
| PARAM_VALUE | 1 | ttm->pages | 4096-ptr_max |
| PARAM_VALUE | 1 | ttm->restore | 0 |
| PARAM_VALUE | 1 | ttm->sg | 0,4096-ptr_max |
| PARAM_VALUE | 1 | ttm->swap_storage | 0 |
| PARAM_VALUE | 2 | ctx | 806791040179113984 |
| PARAM_VALUE | 2 | ctx->gfp_retry_mayfail | 0 |
| PARAM_VALUE | 2 | ctx->interruptible | 0 |
| PARAM_VALUE | 2 | ctx->resv | 0 |
| BUF_SIZE | 1 | ttm | 64 |
| DATA_SOURCE | 1 | ttm | r kunit_kzalloc |
| FUZZY_MAX | 1 | ttm->page_flags | 0 |
| MEM_ZERO | 1 | ttm | |
| NO_OVERFLOW_SIMPLE | 1 | ttm->sg->orig_nents |
drivers/gpu/drm/ttm/tests/ttm_tt_test.c ttm_tt_swapin_basic() -> ttm_tt_populate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ttm | 4096-ptr_max |
| PARAM_VALUE | 1 | ttm->backup | 0 |
| PARAM_VALUE | 1 | ttm->caching | 2 |
| PARAM_VALUE | 1 | ttm->dma_address | 0 |
| PARAM_VALUE | 1 | ttm->page_flags | 0 |
| PARAM_VALUE | 1 | ttm->pages | 16,4096-ptr_max |
| PARAM_VALUE | 1 | ttm->restore | 0 |
| PARAM_VALUE | 1 | ttm->swap_storage | 0 |
| PARAM_VALUE | 2 | ctx | 7010161346688733184 |
| PARAM_VALUE | 2 | ctx->gfp_retry_mayfail | 0 |
| PARAM_VALUE | 2 | ctx->interruptible | 0 |
| PARAM_VALUE | 2 | ctx->resv | 0 |
| BUF_SIZE | 1 | ttm | 64 |
| DATA_SOURCE | 1 | ttm | r kunit_kzalloc |
| MEM_ZERO | 1 | ttm | |
| NO_OVERFLOW_SIMPLE | 1 | ttm->sg->orig_nents |
drivers/gpu/drm/ttm/tests/ttm_tt_test.c ttm_tt_unpopulate_basic() -> ttm_tt_populate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ttm | 4096-ptr_max |
| PARAM_VALUE | 1 | ttm->backup | 0 |
| PARAM_VALUE | 1 | ttm->caching | 2 |
| PARAM_VALUE | 1 | ttm->dma_address | 0 |
| PARAM_VALUE | 1 | ttm->page_flags | 0 |
| PARAM_VALUE | 1 | ttm->pages | 16,4096-ptr_max |
| PARAM_VALUE | 1 | ttm->restore | 0 |
| PARAM_VALUE | 1 | ttm->swap_storage | 0 |
| PARAM_VALUE | 2 | ctx | 5881209818419277824 |
| PARAM_VALUE | 2 | ctx->gfp_retry_mayfail | 0 |
| PARAM_VALUE | 2 | ctx->interruptible | 0 |
| PARAM_VALUE | 2 | ctx->resv | 0 |
| BUF_SIZE | 1 | ttm | 64 |
| DATA_SOURCE | 1 | ttm | r kunit_kzalloc |
| MEM_ZERO | 1 | ttm | |
| NO_OVERFLOW_SIMPLE | 1 | ttm->sg->orig_nents |