Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 6 files:

Smatch caller information:

drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c amdgpu_ttm_backend_bind() -> drm_prime_sg_to_dma_addr_array()

Type Parameter Key Value
PARAM_VALUE 0 sgt 1-u64max
BUF_SIZE 0 sgt (-1),16
BUF_SIZE 0 sgt (-1),16
BUF_SIZE 1 addrs 1-s32max
NOSPEC 2 max_entries
NOSPEC 2 max_entries
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 2 max_entries 0-s32max[c]
NO_OVERFLOW_SIMPLE 0 sgt->orig_nents
NO_OVERFLOW_SIMPLE 2 max_entries
HALF_LOCKED2 bo->base.resv

drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c amdgpu_ttm_tt_pin_userptr() -> drm_prime_sg_to_dma_addr_array()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 0 sgt->nents 0-s32max
PARAM_VALUE 0 sgt->sgl 0,16,4096-ptr_max
BUF_SIZE 0 sgt (-1),16
BUF_SIZE 0 sgt (-1),16
BUF_SIZE 1 addrs 1-s32max
NOSPEC 2 max_entries
NOSPEC 2 max_entries
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 2 max_entries 0-s32max[c]
NO_OVERFLOW_SIMPLE 0 sgt->nents
NO_OVERFLOW_SIMPLE 0 sgt->orig_nents
NO_OVERFLOW_SIMPLE 2 max_entries
UNITS 2 max_entries unit_page
HALF_LOCKED2 bo->base.resv

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

Type Parameter Key Value
PARAM_VALUE 0 sgt 1-u64max
BUF_SIZE 1 addrs 1-s32max
NOSPEC 2 max_entries
NOSPEC 2 max_entries
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 2 max_entries 0-s32max[c]
NO_OVERFLOW_SIMPLE 0 sgt->orig_nents
NO_OVERFLOW_SIMPLE 2 max_entries

drivers/gpu/drm/radeon/radeon_ttm.c radeon_ttm_tt_pin_userptr() -> drm_prime_sg_to_dma_addr_array()

Type Parameter Key Value
PARAM_VALUE 0 sgt 4096-ptr_max
PARAM_VALUE 0 sgt->nents 0-s32max
PARAM_VALUE 0 sgt->sgl 0,16,4096-ptr_max
BUF_SIZE 0 sgt (-1),16
BUF_SIZE 0 sgt (-1),16
BUF_SIZE 1 addrs 1-s32max
CAPPED_DATA 2 max_entries 1
NOSPEC 2 max_entries
NOSPEC 2 max_entries
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 2 max_entries 1-s32max[c]
NO_OVERFLOW_SIMPLE 0 sgt->nents
NO_OVERFLOW_SIMPLE 0 sgt->orig_nents
NO_OVERFLOW_SIMPLE 2 max_entries
UNITS 2 max_entries unit_page
HALF_LOCKED2 bo->base.resv

drivers/gpu/drm/radeon/radeon_ttm.c radeon_ttm_tt_populate() -> drm_prime_sg_to_dma_addr_array()

Type Parameter Key Value
PARAM_VALUE 0 sgt 1-u64max
BUF_SIZE 1 addrs 1-s32max
NOSPEC 2 max_entries
NOSPEC 2 max_entries
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 2 max_entries 0-s32max[c]
NO_OVERFLOW_SIMPLE 0 sgt->orig_nents
NO_OVERFLOW_SIMPLE 2 max_entries

drivers/gpu/drm/loongson/lsdc_ttm.c lsdc_ttm_tt_populate() -> drm_prime_sg_to_dma_addr_array()

Type Parameter Key Value
PARAM_VALUE 0 sgt 1-u64max
BUF_SIZE 1 addrs 1-s32max
NOSPEC 2 max_entries
NOSPEC 2 max_entries
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 2 max_entries 0-s32max[c]
NO_OVERFLOW_SIMPLE 0 sgt->orig_nents
NO_OVERFLOW_SIMPLE 2 max_entries

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

Type Parameter Key Value
PARAM_VALUE 0 sgt 1-u64max
BUF_SIZE 1 addrs 1-s32max
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 max_entries 0-s32max[c]
NO_OVERFLOW_SIMPLE 0 sgt->orig_nents