Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 15 files:
- drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c, line 310
- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c, line 2061
- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c, line 847
- drivers/gpu/drm/loongson/lsdc_ttm.c, line 371
- drivers/gpu/drm/nouveau/nouveau_bo.c, line 676
- drivers/gpu/drm/nouveau/nouveau_gem.c
- drivers/gpu/drm/radeon/radeon_object.c, line 234
- drivers/gpu/drm/ttm/ttm_bo_util.c, line 450
- drivers/gpu/drm/ttm/ttm_bo_vm.c, line 387
- drivers/gpu/drm/vmwgfx/vmwgfx_bo.c, line 363
- drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c
- drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c, line 384
- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c, line 399
- drivers/gpu/drm/vmwgfx/vmwgfx_shader.c, line 916
- drivers/gpu/drm/xe/xe_bo.c, line 3401
Smatch caller information:
drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c amdgpu_devcoredump_print_ibs() -> ttm_bo_kmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bo | 4096-ptr_max |
| PARAM_VALUE | 0 | bo->resource | 4096-ptr_max |
| PARAM_VALUE | 1 | start_page | 0 |
| PARAM_VALUE | 2 | num_pages | 0-4503599627370495 |
| PARAM_VALUE | 3 | map | 4096-ptr_max |
| PARAM_VALUE | 3 | map->page | 0 |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | abo->tbo.base.resv |
drivers/gpu/drm/vmwgfx/vmwgfx_shader.c vmw_compat_shader_add() -> ttm_bo_kmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bo | 4096-ptr_max |
| PARAM_VALUE | 0 | bo->base._resv.lock.ww_class | 8825623990767841280 |
| PARAM_VALUE | 0 | bo->base.funcs | 6304708662516625408 |
| PARAM_VALUE | 0 | bo->base.vma_node.vm_lock.magic | 3736018669 |
| PARAM_VALUE | 0 | bo->base.vma_node.vm_lock.owner | (-1) |
| PARAM_VALUE | 0 | bo->base.vma_node.vm_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | bo->priority | 3 |
| PARAM_VALUE | 0 | bo->type | 0-2 |
| PARAM_VALUE | 1 | start_page | 0 |
| PARAM_VALUE | 2 | num_pages | 0-4503599627370495 |
| PARAM_VALUE | 3 | map | 3520749227214409728 |
| LOCK2 | &dev_priv->cmdbuf_mutex | ||
| TYPE_LOCK | (struct vmw_private)->cmdbuf_mutex |
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c amdgpu_bo_kmap() -> ttm_bo_kmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bo | 4096-ptr_max |
| PARAM_VALUE | 1 | start_page | 0 |
| PARAM_VALUE | 2 | num_pages | 0-4503599627370495 |
| PARAM_VALUE | 3 | map | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | bo->base.size | 0-u64max[c] |
| USER_DATA | 0 | bo->base.vma_node.vm_node.size | 1-s32max[c] |
| USER_DATA | 0 | bo->base.vma_node.vm_node.start | 0-s32max[c] |
| USER_DATA | 0 | bo->page_alignment | 0-u32max |
| USER_DATA | 2 | num_pages | 0-4503599627370495[c] |
| HALF_LOCKED2 | &adev->pm.mutex | ||
| HALF_LOCKED2 | &mem->process_info->lock | ||
| HALF_LOCKED2 | &p->mutex | ||
| HALF_LOCKED2 | *bo_ptr->tbo.base.resv | ||
| HALF_LOCKED2 | bo->tbo.base.resv | ||
| HALF_LOCKED2 | mapping->bo_va->base.bo->tbo.base.resv |
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c vmw_dummy_query_bo_create() -> ttm_bo_kmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bo | 4096-ptr_max |
| PARAM_VALUE | 0 | bo->base._resv.lock.ww_class | 8825623990767841280 |
| PARAM_VALUE | 0 | bo->base.funcs | 6304708662516625408 |
| PARAM_VALUE | 0 | bo->base.vma_node.vm_lock.magic | 3736018669 |
| PARAM_VALUE | 0 | bo->base.vma_node.vm_lock.owner | (-1) |
| PARAM_VALUE | 0 | bo->base.vma_node.vm_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | bo->priority | 3 |
| PARAM_VALUE | 0 | bo->type | 0-2 |
| PARAM_VALUE | 1 | start_page | 0 |
| PARAM_VALUE | 2 | num_pages | 1 |
| PARAM_VALUE | 3 | map | 7496515448083431424 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c vmw_cotable_resize() -> ttm_bo_kmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bo | 4096-ptr_max |
| PARAM_VALUE | 0 | bo->bdev->dev_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | bo->bdev->dev_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | bo->resource | 4096-ptr_max |
| PARAM_VALUE | 1 | start_page | 0-4503599627370494 |
| PARAM_VALUE | 2 | num_pages | 1 |
| PARAM_VALUE | 3 | map | 5054946969033723904 |
| BUF_SIZE | 0 | bo | 864 |
| CAPPED_DATA | 1 | start_page | 1 |
| CAPPED_DATA | 1 | start_page | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev_priv->cmdbuf_mutex | ||
| HALF_LOCKED2 | bo->base.resv |
drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c vmw_cotable_resize() -> ttm_bo_kmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bo | 4096-ptr_max |
| PARAM_VALUE | 0 | bo->base._resv.lock.ww_class | 8825623990767841280 |
| PARAM_VALUE | 0 | bo->base.funcs | 6304708662516625408 |
| PARAM_VALUE | 0 | bo->base.vma_node.vm_lock.magic | 3736018669 |
| PARAM_VALUE | 0 | bo->base.vma_node.vm_lock.owner | (-1) |
| PARAM_VALUE | 0 | bo->base.vma_node.vm_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | bo->bdev->dev_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | bo->bdev->dev_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | bo->priority | 3 |
| PARAM_VALUE | 0 | bo->type | 0-2 |
| PARAM_VALUE | 1 | start_page | 0-4503599627370494 |
| PARAM_VALUE | 2 | num_pages | 1 |
| PARAM_VALUE | 3 | map | 8360025565993529344 |
| BUF_SIZE | 0 | bo | 864 |
| CAPPED_DATA | 1 | start_page | 1 |
| CAPPED_DATA | 1 | start_page | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev_priv->cmdbuf_mutex | ||
| HALF_LOCKED2 | 0 | bo->base.resv |
drivers/gpu/drm/nouveau/nouveau_gem.c nouveau_gem_ioctl_pushbuf() -> ttm_bo_kmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bo | 4096-ptr_max |
| PARAM_VALUE | 1 | start_page | 0 |
| PARAM_VALUE | 2 | num_pages | 0-4503599627370495 |
| PARAM_VALUE | 3 | map | 4096-ptr_max |
| PARAM_VALUE | 3 | map->virtual | 0 |
| LOCK2 | &file_priv->driver_priv->mutex |
drivers/gpu/drm/nouveau/nouveau_gem.c nouveau_gem_pushbuf_reloc_apply() -> ttm_bo_kmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bo | 4096-ptr_max |
| PARAM_VALUE | 0 | bo->base.size | 4-u64max |
| PARAM_VALUE | 1 | start_page | 0 |
| PARAM_VALUE | 2 | num_pages | 0-4503599627370495 |
| PARAM_VALUE | 3 | map | 4096-ptr_max |
| PARAM_VALUE | 3 | map->virtual | 0 |
| LOCK2 | &file_priv->driver_priv->mutex |
drivers/gpu/drm/nouveau/nouveau_bo.c nouveau_bo_map() -> ttm_bo_kmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bo | 1-u64max |
| PARAM_VALUE | 1 | start_page | 0 |
| PARAM_VALUE | 2 | num_pages | 0-4503599627370495 |
| PARAM_VALUE | 3 | map | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | nvbo->bo.base.resv | ||
| HALF_LOCKED2 | &(plane->dev)->mode_config.panic_lock | ||
| HALF_LOCKED2 | &crtc->mutex | ||
| HALF_LOCKED2 | flags |
drivers/gpu/drm/radeon/radeon_object.c radeon_bo_kmap() -> ttm_bo_kmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bo | 4096-ptr_max |
| PARAM_VALUE | 1 | start_page | 0 |
| PARAM_VALUE | 2 | num_pages | 0-4503599627370495 |
| PARAM_VALUE | 3 | map | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->clientlist_mutex | ||
| HALF_LOCKED2 | &fb_helper->lock | ||
| HALF_LOCKED2 | &rdev->exclusive_lock | ||
| HALF_LOCKED2 | bo->tbo.base.resv | ||
| HALF_LOCKED2 | vram_obj->tbo.base.resv |
drivers/gpu/drm/xe/xe_bo.c xe_bo_vmap() -> ttm_bo_kmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bo | 4096-ptr_max |
| PARAM_VALUE | 1 | start_page | 0 |
| PARAM_VALUE | 2 | num_pages | 0-4503599627370495 |
| PARAM_VALUE | 3 | map | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | bo->base.size | 0-u64max[c] |
| USER_DATA | 0 | bo->base.vma_node.vm_node.size | 1-s32max[c] |
| USER_DATA | 0 | bo->base.vma_node.vm_node.start | 0-s32max[c] |
| USER_DATA | 0 | bo->page_alignment | 1,16,512 |
| USER_DATA | 2 | num_pages | 0-4503599627370495[c] |
| UNITS | 2 | num_pages | unit_page |
| HALF_LOCKED2 | bo->ttm.base.resv | ||
| HALF_LOCKED2 | bo->ttm.base.resv |
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_display_get_scanout_buffer() -> ttm_bo_kmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bo | 4096-ptr_max |
| PARAM_VALUE | 1 | start_page | 0 |
| PARAM_VALUE | 2 | num_pages | 0-4503599627370495 |
| PARAM_VALUE | 3 | map | 4096-ptr_max |
| PARAM_VALUE | 3 | map->virtual | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &(plane->dev)->mode_config.panic_lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | rcu_read |
drivers/gpu/drm/ttm/ttm_bo_vm.c ttm_bo_vm_access_kmap() -> ttm_bo_kmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bo | 4096-ptr_max |
| PARAM_VALUE | 0 | bo->base.resv->lock.base.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | bo->base.resv->lock.base.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | bo->base.resv->lock.base.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | bo->base.resv->lock.base.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | bo->base.resv->lock.base.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | bo->bdev->dev_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | bo->bdev->dev_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | bo->resource | 0,4096-ptr_max |
| PARAM_VALUE | 0 | bo->resource->mem_type | 0-1 |
| PARAM_VALUE | 2 | num_pages | 1 |
| PARAM_VALUE | 3 | map | 914753896020357120 |
| BUF_SIZE | 0 | bo | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | bo | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | bo | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | start_page | 0-4503599627370495[c] |
| UNITS | 0 | bo | unit_byte |
| UNITS | 1 | start_page | unit_page |
| LOCK2 | 0 | bo->base.resv | |
| HALF_LOCKED2 | &pool->lock |
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c vmw_bo_map_and_cache_size() -> ttm_bo_kmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | start_page | 0 |
| PARAM_VALUE | 2 | num_pages | 0-4503599627370495 |
| PARAM_VALUE | 3 | map | 4096-ptr_max |
| BUF_SIZE | 0 | bo | 864 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | vbo->tbo.base.resv |
drivers/gpu/drm/loongson/lsdc_ttm.c lsdc_bo_kmap() -> ttm_bo_kmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bo | 4096-u64max |
| PARAM_VALUE | 0 | bo->base._resv.fences | 0 |
| PARAM_VALUE | 0 | bo->base._resv.lock.ctx | 0 |
| PARAM_VALUE | 0 | bo->base._resv.lock.ww_class | 8825623990767841280 |
| PARAM_VALUE | 0 | bo->base.filp | 4096-ptr_max |
| PARAM_VALUE | 0 | bo->base.gpuva.lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | bo->base.handle_count | 0 |
| PARAM_VALUE | 0 | bo->base.lru_node.next | 4096-ptr_max |
| PARAM_VALUE | 0 | bo->base.lru_node.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | bo->base.refcount.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | bo->base.resv->fences | 0,4096-ptr_max |
| PARAM_VALUE | 0 | bo->base.vma_node.vm_lock.magic | 3736018669 |
| PARAM_VALUE | 0 | bo->base.vma_node.vm_lock.owner | (-1) |
| PARAM_VALUE | 0 | bo->base.vma_node.vm_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | bo->resource | 0,4096-ptr_max |
| PARAM_VALUE | 1 | start_page | 0 |
| PARAM_VALUE | 2 | num_pages | 0-4503599627370495 |
| PARAM_VALUE | 3 | map | 4096-ptr_max |
| BUF_SIZE | 0 | bo | 864 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &m->lock |
drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c vmw_kms_cursor_snoop() -> ttm_bo_kmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bo | 4096-ptr_max |
| PARAM_VALUE | 0 | bo->base.resv->lock.base.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | bo->base.resv->lock.base.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | bo->base.resv->lock.base.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | bo->base.resv->lock.base.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | start_page | 0-1048575 |
| PARAM_VALUE | 2 | num_pages | 0-16 |
| PARAM_VALUE | 3 | map | 9161863195237154816 |
| DATA_SOURCE | 0 | bo | $2 |
| UNITS | 1 | start_page | unit_page |
| UNITS | 2 | num_pages | unit_page |
| LOCK2 | &dev_priv->cmdbuf_mutex | ||
| LOCK2 | 0 | bo->base.resv | |
| TYPE_LOCK | (struct vmw_private)->cmdbuf_mutex |