Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

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

Type Parameter Key Value
PARAM_VALUE 0 pool 4096-ptr_max
PARAM_VALUE 0 pool->dev->cma_area->nranges s32min-s32max
PARAM_VALUE 1 tt 4096-ptr_max
PARAM_VALUE 3 alloc 7392465134785949696
PARAM_VALUE 3 alloc->remaining_pages 0-u32max
PARAM_VALUE 4 restore 0
BUF_SIZE 0 pool (-1),5296
BUF_SIZE 0 pool (-1),5296
BUF_SIZE 1 tt (-1),64
BUF_SIZE 1 tt (-1),64
BUF_SIZE 2 ctx (-1),24
BUF_SIZE 2 ctx (-1),24
DATA_SOURCE 0 pool $0
DATA_SOURCE 1 tt $1
DATA_SOURCE 2 ctx $2
NOSPEC 1 tt->num_pages
NOSPEC 3 alloc->remaining_pages
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 tt->num_pages 0-u32max[c]
USER_DATA 2 ctx->allow_res_evict 0-1
USER_DATA 3 alloc->remaining_pages 0-u32max[c]
NO_OVERFLOW_SIMPLE 1 tt->dma_ttm.sg->orig_nents
NO_OVERFLOW_SIMPLE 1 tt->num_pages
NO_OVERFLOW_SIMPLE 1 tt->restore->snapshot_alloc.remaining_pages
NO_OVERFLOW_SIMPLE 1 tt->sg->orig_nents
NO_OVERFLOW_SIMPLE 1 tt->ttm.sg->orig_nents
NO_OVERFLOW_SIMPLE 2 ctx->bytes_moved
NO_OVERFLOW_SIMPLE 3 alloc->remaining_pages

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

Type Parameter Key Value
PARAM_VALUE 0 pool 4096-ptr_max
PARAM_VALUE 1 tt 4096-ptr_max
PARAM_VALUE 1 tt->restore 4096-ptr_max
PARAM_VALUE 3 alloc 4878770031710056448
PARAM_VALUE 4 restore 4096-ptr_max
BUF_SIZE 1 tt->restore 88,u64max
BUF_SIZE 2 ctx (-1),24
BUF_SIZE 2 ctx (-1),24
BUF_SIZE 4 restore 88,u64max
BUF_SIZE 4 restore 88,u64max
DATA_SOURCE 0 pool $0
DATA_SOURCE 1 tt $1
DATA_SOURCE 2 ctx $2
BIT_INFO 1 tt->page_flags 0x0,0xffffffff
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 tt->num_pages 0-u32max[c]
USER_DATA 1 tt->restore->snapshot_alloc.remaining_pages 0-u32max[c]
USER_DATA 2 ctx->allow_res_evict 0-1
USER_DATA 3 alloc->remaining_pages 0-u32max[c]
USER_DATA 4 restore->snapshot_alloc.remaining_pages 0-u32max[c]
NO_OVERFLOW_SIMPLE 1 tt->num_pages
NO_OVERFLOW_SIMPLE 1 tt->restore->snapshot_alloc.remaining_pages
NO_OVERFLOW_SIMPLE 1 tt->sg->orig_nents
NO_OVERFLOW_SIMPLE 2 ctx->bytes_moved
NO_OVERFLOW_SIMPLE 3 alloc->remaining_pages
NO_OVERFLOW_SIMPLE 4 restore->snapshot_alloc.remaining_pages