Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 10 files:
- drivers/gpu/drm/drm_gem.c, line 781
- drivers/gpu/drm/drm_gem_shmem_helper.c, line 284
- drivers/gpu/drm/etnaviv/etnaviv_gem.c, line 84
- drivers/gpu/drm/gma500/gem.c, line 103
- drivers/gpu/drm/msm/msm_gem.c, line 259
- drivers/gpu/drm/omapdrm/omap_gem.c
- drivers/gpu/drm/panthor/panthor_gem.c, line 235
- drivers/gpu/drm/rockchip/rockchip_drm_gem.c
- drivers/gpu/drm/tegra/gem.c
- drivers/gpu/drm/xen/xen_drm_front_gem.c, line 216
Smatch caller information:
drivers/gpu/drm/panthor/panthor_gem.c panthor_gem_backing_cleanup_locked() -> drm_gem_put_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | obj | 4096-ptr_max |
| PARAM_VALUE | 1 | pages | 1-u64max |
| PARAM_VALUE | 2 | dirty | 1 |
| PARAM_VALUE | 3 | accessed | 0 |
| BUF_SIZE | 1 | pages | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &bo->base.gpuva.lock |
drivers/gpu/drm/tegra/gem.c tegra_bo_free() -> drm_gem_put_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | obj | 4096-ptr_max |
| PARAM_VALUE | 1 | pages | 1-u64max |
| PARAM_VALUE | 2 | dirty | 1 |
| PARAM_VALUE | 3 | accessed | 1 |
| NOSPEC | 0 | obj->size | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | obj->size | 0-u64max[c] |
| USER_DATA | 0 | obj->vma_node.vm_node.size | 1-s32max[c] |
| USER_DATA | 0 | obj->vma_node.vm_node.start | 0-s32max[c] |
drivers/gpu/drm/tegra/gem.c tegra_bo_get_pages() -> drm_gem_put_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | obj | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->_resv.lock.base.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->_resv.lock.ww_class | 8825623990767841280 |
| PARAM_VALUE | 0 | obj->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->filp | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->funcs | 1760598068160946176 |
| PARAM_VALUE | 0 | obj->gpuva.lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->lru_node.next | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->lru_node.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->refcount.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | obj->resv | 1-u64max |
| PARAM_VALUE | 0 | obj->vma_node.vm_lock.magic | 3736018669 |
| PARAM_VALUE | 0 | obj->vma_node.vm_lock.owner | (-1) |
| PARAM_VALUE | 0 | obj->vma_node.vm_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | obj->vma_node.vm_node.hole_size | 0-1 |
| PARAM_VALUE | 0 | obj->vma_node.vm_node.hole_stack.next | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->vma_node.vm_node.hole_stack.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->vma_node.vm_node.mm | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->vma_node.vm_node.rb_hole_size.__rb_parent_color | 1 |
| PARAM_VALUE | 0 | obj->vma_node.vm_node.rb_hole_size.rb_left | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->vma_node.vm_node.rb_hole_size.rb_right | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->vma_node.vm_node.subtree_max_hole | 1 |
| PARAM_VALUE | 1 | pages | 16,4096-ptr_max |
| PARAM_VALUE | 2 | dirty | 0 |
| PARAM_VALUE | 3 | accessed | 0 |
| BUF_SIZE | 1 | pages | 0-s32max |
| BUF_SIZE | 1 | pages | 0-s32max |
| DATA_SOURCE | 1 | pages | r drm_gem_get_pages |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | obj->size | 0-u64max[c] |
| USER_DATA | 0 | obj->vma_node.vm_node.size | 1-s32max[c] |
| USER_DATA | 0 | obj->vma_node.vm_node.start | 0-s32max[c] |
| HALF_LOCKED2 | &dev->clientlist_mutex | ||
| HALF_LOCKED2 | &helper->lock |
drivers/gpu/drm/gma500/gem.c psb_gem_unpin() -> drm_gem_put_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | obj | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->resv->lock.base.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | obj->resv->lock.base.first_waiter | 0,4096-5159360019465732095,5159360019465732097-ptr_max |
| PARAM_VALUE | 0 | obj->resv->lock.base.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | obj->resv->lock.base.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 2 | dirty | 1 |
| PARAM_VALUE | 3 | accessed | 0 |
| BUF_SIZE | 0 | obj | 704 |
| BUF_SIZE | 1 | pages | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | 0 | obj->resv | |
| HALF_LOCKED2 | &crtc->mutex |
drivers/gpu/drm/xen/xen_drm_front_gem.c xen_drm_front_gem_free_object_unlocked() -> drm_gem_put_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | obj | 4096-ptr_max |
| PARAM_VALUE | 1 | pages | 1-u64max |
| PARAM_VALUE | 2 | dirty | 1 |
| PARAM_VALUE | 3 | accessed | 0 |
| BUF_SIZE | 1 | pages | 1-s32max |
| NOCHECK_CALL |
drivers/gpu/drm/etnaviv/etnaviv_gem.c put_pages() -> drm_gem_put_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | obj | 4096-ptr_max |
| PARAM_VALUE | 1 | pages | 1-u64max |
| PARAM_VALUE | 2 | dirty | 1 |
| PARAM_VALUE | 3 | accessed | 0 |
| BUF_SIZE | 1 | pages | 1-s32max |
| NOCHECK_CALL |
drivers/gpu/drm/omapdrm/omap_gem.c omap_gem_attach_pages() -> drm_gem_put_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | obj | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->_resv.lock.ww_class->acquire_name | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->_resv.lock.ww_class->is_wait_die | 0-s32max |
| PARAM_VALUE | 0 | obj->_resv.lock.ww_class->mutex_name | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->dev->dev | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->filp | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->filp->f_mapping->host->i_mapping->i_pages.xa_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | obj->filp->f_mapping->host->i_sb->s_fs_info->used_blocks->lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 1 | pages | 16,4096-ptr_max |
| PARAM_VALUE | 2 | dirty | 1 |
| PARAM_VALUE | 3 | accessed | 0 |
| BUF_SIZE | 0 | obj | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | obj | s32min-(-1),1-s32max |
| BUF_SIZE | 1 | pages | 0-s32max |
| BUF_SIZE | 1 | pages | 0-s32max |
| DATA_SOURCE | 0 | obj | $0 |
| DATA_SOURCE | 1 | pages | r drm_gem_get_pages |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | obj->dev->mode_config.num_colorop | |
| NO_OVERFLOW_SIMPLE | 0 | obj->dev->mode_config.num_crtc | |
| NO_OVERFLOW_SIMPLE | 0 | obj->dev->mode_config.num_total_plane | |
| NO_OVERFLOW_SIMPLE | 0 | obj->dev->num_crtcs | |
| UNITS | 0 | obj | unit_byte |
| LOCK2 | &omap_obj->lock | ||
| HALF_LOCKED2 | &dev->clientlist_mutex | ||
| HALF_LOCKED2 | &helper->lock | ||
| TYPE_LOCK | (struct omap_gem_object)->lock |
drivers/gpu/drm/omapdrm/omap_gem.c omap_gem_detach_pages() -> drm_gem_put_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | obj | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->_resv.lock.ww_class->acquire_name | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->_resv.lock.ww_class->is_wait_die | 0-s32max |
| PARAM_VALUE | 0 | obj->_resv.lock.ww_class->mutex_name | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->dev->anon_inode->i_mapping->i_mmap_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | obj->dev->anon_inode->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | obj->dev->anon_inode->i_mapping->i_mmap_rwsem.first_waiter->list.next | 2212933610777083904 |
| PARAM_VALUE | 0 | obj->dev->anon_inode->i_mapping->i_mmap_rwsem.first_waiter->list.prev | 2212933610777083904 |
| PARAM_VALUE | 0 | obj->dev->anon_inode->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | obj->dev->vma_offset_manager->vm_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | obj->dev->vma_offset_manager->vm_lock.owner | (-1) |
| PARAM_VALUE | 0 | obj->dev->vma_offset_manager->vm_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | obj->funcs->free | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->vma_node.vm_node.hole_stack.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->vma_node.vm_node.mm->hole_stack.next | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->vma_node.vm_node.mm->hole_stack.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->vma_node.vm_node.mm->hole_stack.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->vma_node.vm_node.mm->holes_addr.rb_node | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->vma_node.vm_node.mm->holes_size.rb_leftmost | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->vma_node.vm_node.mm->holes_size.rb_root.rb_node | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->vma_node.vm_node.node_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 2 | dirty | 1 |
| PARAM_VALUE | 3 | accessed | 0 |
| BUF_SIZE | 0 | obj | (-1),704 |
| BUF_SIZE | 0 | obj | (-1),704 |
| BUF_SIZE | 1 | pages | 1-s32max |
| CAPPED_DATA | 0 | obj | 1 |
| DATA_SOURCE | 0 | obj | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | obj->dev->mode_config.num_colorop | |
| NO_OVERFLOW_SIMPLE | 0 | obj->dev->mode_config.num_crtc | |
| NO_OVERFLOW_SIMPLE | 0 | obj->dev->mode_config.num_total_plane | |
| NO_OVERFLOW_SIMPLE | 0 | obj->dev->num_crtcs | |
| LOCK2 | &omap_obj->lock | ||
| HALF_LOCKED2 | &dev->object_name_lock | ||
| HALF_LOCKED2 | &file_priv->prime.lock | ||
| TYPE_LOCK | (struct omap_gem_object)->lock |
drivers/gpu/drm/rockchip/rockchip_drm_gem.c rockchip_gem_get_pages() -> drm_gem_put_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | obj | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->_resv.lock.base.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->_resv.lock.ww_class | 8825623990767841280 |
| PARAM_VALUE | 0 | obj->filp | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->funcs | 3677677793095483392 |
| PARAM_VALUE | 0 | obj->gpuva.lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->lru_node.next | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->lru_node.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->refcount.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | obj->resv | 1-u64max |
| PARAM_VALUE | 0 | obj->vma_node.vm_lock.magic | 3736018669 |
| PARAM_VALUE | 0 | obj->vma_node.vm_lock.owner | (-1) |
| PARAM_VALUE | 0 | obj->vma_node.vm_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | obj->vma_node.vm_node.size | 0 |
| PARAM_VALUE | 0 | obj->vma_node.vm_node.start | 0 |
| PARAM_VALUE | 1 | pages | 16,4096-ptr_max |
| PARAM_VALUE | 2 | dirty | 0 |
| PARAM_VALUE | 3 | accessed | 0 |
| BUF_SIZE | 1 | pages | 0-s32max |
| BUF_SIZE | 1 | pages | 0-s32max |
| DATA_SOURCE | 1 | pages | r drm_gem_get_pages |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpu/drm/rockchip/rockchip_drm_gem.c rockchip_gem_put_pages() -> drm_gem_put_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | obj | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | pages | 1-u64max |
| PARAM_VALUE | 2 | dirty | 1 |
| PARAM_VALUE | 3 | accessed | 1 |
| CAPPED_DATA | 1 | pages | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpu/drm/drm_gem_shmem_helper.c drm_gem_shmem_put_pages_locked() -> drm_gem_put_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | obj | 4096-ptr_max |
| BUF_SIZE | 0 | obj | 704 |
| BUF_SIZE | 1 | pages | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | obj->vma_node.vm_node.size | 1-s32max[c] |
| USER_DATA | 0 | obj->vma_node.vm_node.start | 0-s32max[c] |
| HALF_LOCKED2 | shmem->base.resv |
drivers/gpu/drm/msm/msm_gem.c put_pages() -> drm_gem_put_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | obj | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->dev->anon_inode->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | obj->dev->anon_inode->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | obj->dev->dev_private | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->funcs->free | 0,4096-ptr_max |
| PARAM_VALUE | 1 | pages | 1-u64max |
| PARAM_VALUE | 2 | dirty | 1 |
| PARAM_VALUE | 3 | accessed | 0 |
| BUF_SIZE | 1 | pages | 1-s32max |
| DATA_SOURCE | 0 | obj | $0 |
| NOCHECK_CALL |