Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 7 files:
- drivers/dma-buf/dma-buf.c, line 1690
- drivers/gpu/drm/drm_gem_dma_helper.c, line 590
- drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c
- drivers/gpu/drm/tegra/gem.c, line 188
- drivers/media/common/videobuf2/videobuf2-dma-contig.c, line 104
- drivers/media/common/videobuf2/videobuf2-dma-sg.c, line 314
- drivers/media/common/videobuf2/videobuf2-vmalloc.c, line 374
Smatch caller information:
drivers/gpu/drm/tegra/gem.c tegra_bo_mmap() -> dma_buf_vmap_unlocked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dmabuf | 1-u64max |
| PARAM_VALUE | 1 | map | 6857436704389193728 |
| PARAM_VALUE | 1 | map->is_iomem | 0 |
| PARAM_VALUE | 1 | map->vaddr | 0 |
| PARAM_VALUE | 1 | map->vaddr_iomem | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &ch->cdma.lock |
drivers/media/common/videobuf2/videobuf2-vmalloc.c vb2_vmalloc_map_dmabuf() -> dma_buf_vmap_unlocked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | map | 4903669891395760128 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mdev->req_queue_mutex | ||
| HALF_LOCKED2 | vb->vb2_queue->lock |
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c igt_dmabuf_export_vmap() -> dma_buf_vmap_unlocked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dmabuf | 4096-ptr_max |
| PARAM_VALUE | 1 | map | 689543983541198848 |
| BUF_SIZE | 0 | dmabuf | 361,536 |
| BUF_SIZE | 0 | dmabuf | 361,536 |
| DATA_SOURCE | 0 | dmabuf | r i915_gem_prime_export |
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c igt_dmabuf_import() -> dma_buf_vmap_unlocked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dmabuf | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->attachments.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->attachments.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->attachments.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->cb_out.poll->head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->cb_out.poll->head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->file->__f_path.dentry | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->file->__f_path.mnt | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_cred | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->file->f_ep | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_flags | 0-18433,32770 |
| PARAM_VALUE | 0 | dmabuf->file->f_inode | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->file->f_iocb_flags | 0,2,16,18,131072,131074,131088,131090 |
| PARAM_VALUE | 0 | dmabuf->file->f_mapping | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->file->f_mode | 33554432,34078720-571342855 |
| PARAM_VALUE | 0 | dmabuf->file->f_op | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->file->f_owner | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_path.dentry | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->file->f_pos | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_pos_lock.first_waiter | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_pos_lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->file->f_pos_lock.owner.counter | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_ra.async_size | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_ra.mmap_miss | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_ra.order | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_ra.prev_pos | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_ra.ra_pages | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_ra.size | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_ra.start | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_ref.refcnt.counter | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_sb_err | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_security | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_wb_err | 0 |
| PARAM_VALUE | 0 | dmabuf->file->private_data | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->ops->attach | 0 |
| PARAM_VALUE | 0 | dmabuf->ops->map_dma_buf | 8175560248507011072 |
| PARAM_VALUE | 0 | dmabuf->ops->release | 3073523863218692096 |
| PARAM_VALUE | 0 | dmabuf->ops->unmap_dma_buf | 7985307883073949696 |
| PARAM_VALUE | 0 | dmabuf->owner->refcnt.counter | 0-s32max |
| PARAM_VALUE | 0 | dmabuf->owner->state | 0-1,3-u32max |
| PARAM_VALUE | 0 | dmabuf->poll.head.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->poll.head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->poll.head.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->resv->lock.ww_class->is_wait_die | 0-s32max |
| PARAM_VALUE | 1 | map | 7436884741507174400 |
| BUF_SIZE | 0 | dmabuf | 361,536 |
| BUF_SIZE | 0 | dmabuf | 361,536 |
| DATA_SOURCE | 0 | dmabuf | r mock_dmabuf |
| TERMINATED | 0 | dmabuf->exp_name | 1 |
| NO_OVERFLOW_SIMPLE | 0 | dmabuf->size |
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c igt_dmabuf_import_ownership() -> dma_buf_vmap_unlocked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dmabuf | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->attachments.next | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->attachments.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->attachments.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->attachments.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->attachments.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->cb_in.active | 0 |
| PARAM_VALUE | 0 | dmabuf->cb_in.poll | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->cb_out.active | 0 |
| PARAM_VALUE | 0 | dmabuf->cb_out.poll | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->cb_out.poll->head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->cb_out.poll->head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->exp_name | 3116414117130858496 |
| PARAM_VALUE | 0 | dmabuf->file | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->file->__f_path.dentry | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->file->__f_path.mnt | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_cred | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->file->f_ep | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_flags | 0-18433,32770 |
| PARAM_VALUE | 0 | dmabuf->file->f_inode | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->file->f_iocb_flags | 0,2,16,18,131072,131074,131088,131090 |
| PARAM_VALUE | 0 | dmabuf->file->f_mapping | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->file->f_mode | 33554432,34078720-571342855 |
| PARAM_VALUE | 0 | dmabuf->file->f_op | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->file->f_owner | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_path.dentry | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->file->f_pos | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_pos_lock.first_waiter | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_pos_lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->file->f_pos_lock.owner.counter | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_ra.async_size | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_ra.mmap_miss | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_ra.order | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_ra.prev_pos | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_ra.ra_pages | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_ra.size | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_ra.start | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_ref.refcnt.counter | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_sb_err | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_security | 0 |
| PARAM_VALUE | 0 | dmabuf->file->f_wb_err | 0 |
| PARAM_VALUE | 0 | dmabuf->file->private_data | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->list_node.next | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->list_node.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->ops | 6768536905314770944 |
| PARAM_VALUE | 0 | dmabuf->ops->attach | 0 |
| PARAM_VALUE | 0 | dmabuf->ops->map_dma_buf | 8175560248507011072 |
| PARAM_VALUE | 0 | dmabuf->ops->release | 3073523863218692096 |
| PARAM_VALUE | 0 | dmabuf->ops->unmap_dma_buf | 7985307883073949696 |
| PARAM_VALUE | 0 | dmabuf->owner | 0 |
| PARAM_VALUE | 0 | dmabuf->owner->refcnt.counter | 0-s32max |
| PARAM_VALUE | 0 | dmabuf->owner->state | 0-1,3-u32max |
| PARAM_VALUE | 0 | dmabuf->poll.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->poll.head.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->poll.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->poll.head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->poll.head.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->priv | 4096-ptr_max |
| PARAM_VALUE | 0 | dmabuf->resv | 1-u64max |
| PARAM_VALUE | 0 | dmabuf->resv->lock.ww_class->is_wait_die | 0-s32max |
| PARAM_VALUE | 0 | dmabuf->size | 4096 |
| PARAM_VALUE | 1 | map | 3482147322331713536 |
| BUF_SIZE | 0 | dmabuf | 361,536 |
| BUF_SIZE | 0 | dmabuf | 361,536 |
| DATA_SOURCE | 0 | dmabuf | r mock_dmabuf |
| TERMINATED | 0 | dmabuf->exp_name | 1 |
drivers/gpu/drm/drm_gem_dma_helper.c drm_gem_dma_prime_import_sg_table_vmap() -> dma_buf_vmap_unlocked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dmabuf->resv->fences->max_fences | 0-4294967295 |
| PARAM_VALUE | 0 | dmabuf->resv->lock.base.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dmabuf->resv->lock.base.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dmabuf->resv->lock.base.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | dmabuf->resv->lock.base.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dmabuf->resv->lock.base.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | dmabuf->resv->lock.base.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | dmabuf->resv->lock.ctx | 0 |
| PARAM_VALUE | 1 | map | 354812355582664704 |
| LOCK2 | &dev->object_name_lock | ||
| LOCK2 | &file_priv->prime.lock | ||
| HALF_LOCKED2 | &p->mutex | ||
| TYPE_LOCK | (struct drm_device)->object_name_lock | ||
| TYPE_LOCK | (struct drm_prime_file_private)->lock |
drivers/media/common/videobuf2/videobuf2-dma-sg.c vb2_dma_sg_vaddr() -> dma_buf_vmap_unlocked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | map | 3053730595086045184 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/media/common/videobuf2/videobuf2-dma-contig.c vb2_dc_vaddr() -> dma_buf_vmap_unlocked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | map | 2150783531776974848 |
| RX_PATH | |||
| TASK_NOT_RUNNING |