Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 14 files:
- drivers/accel/amdxdna/amdxdna_gem.c, line 900
- drivers/dma-buf/dma-buf.c, line 1268
- drivers/gpu/drm/armada/armada_gem.c, line 543
- drivers/gpu/drm/drm_prime.c, line 996
- drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c, line 296
- drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c, line 123
- drivers/gpu/drm/tegra/gem.c
- drivers/media/common/videobuf2/videobuf2-dma-contig.c, line 708
- drivers/media/common/videobuf2/videobuf2-dma-sg.c, line 568
- drivers/media/platform/nvidia/tegra-vde/dmabuf-cache.c, line 105
- drivers/misc/fastrpc.c, line 912
- drivers/xen/gntdev-dmabuf.c, line 588
- io_uring/zcrx.c, line 163
- net/core/devmem.c, line 244
Smatch caller information:
drivers/media/platform/nvidia/tegra-vde/dmabuf-cache.c tegra_vde_dmabuf_cache_map() -> dma_buf_map_attachment_unlocked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 4096-ptr_max |
| PARAM_VALUE | 1 | direction | 1-2 |
| BUF_SIZE | 0 | attach | 64 |
| DATA_SOURCE | 0 | attach | r dma_buf_attach |
| DATA_SOURCE | 1 | direction | $2 |
| FUZZY_MAX | 1 | direction | 2 |
| HARD_MAX | 1 | direction | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &vde->map_lock | ||
| TYPE_LOCK | (struct tegra_vde)->map_lock |
drivers/gpu/drm/tegra/gem.c tegra_bo_import() -> dma_buf_map_attachment_unlocked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 4096-ptr_max |
| PARAM_VALUE | 1 | direction | 1 |
| BUF_SIZE | 0 | attach | 64 |
| DATA_SOURCE | 0 | attach | r dma_buf_attach |
| LOCK2 | &drm->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/gpu/drm/tegra/gem.c tegra_bo_pin() -> dma_buf_map_attachment_unlocked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 4096-ptr_max |
| PARAM_VALUE | 1 | direction | 0-2 |
| BUF_SIZE | 0 | attach | 64 |
| DATA_SOURCE | 0 | attach | r dma_buf_attach |
| DATA_SOURCE | 1 | direction | $2 |
| FUZZY_MAX | 1 | direction | 2 |
| HARD_MAX | 1 | direction | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &cache->lock | ||
| HALF_LOCKED2 | &fpriv->lock |
net/core/devmem.c net_devmem_bind_dmabuf() -> dma_buf_map_attachment_unlocked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 4096-ptr_max |
| PARAM_VALUE | 1 | direction | 1-2 |
| BUF_SIZE | 0 | attach | 64 |
| DATA_SOURCE | 0 | attach | r dma_buf_attach |
| DATA_SOURCE | 1 | direction | $3 |
| HARD_MAX | 1 | direction | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &dev->lock | ||
| LOCK2 | &priv->lock | ||
| HALF_LOCKED2 | &devlink->lock | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &cb_lock | ||
| HALF_LOCKED2 | global &crypto_cfg_mutex | ||
| HALF_LOCKED2 | global &dpll_lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &net_dm_mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct netdev_nl_sock)->lock |
drivers/accel/amdxdna/amdxdna_gem.c amdxdna_gem_prime_import() -> dma_buf_map_attachment_unlocked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 4096-ptr_max |
| PARAM_VALUE | 1 | direction | 0 |
| BUF_SIZE | 0 | attach | 64 |
| DATA_SOURCE | 0 | attach | r dma_buf_attach |
| USER_DATA | 0 | attach->dmabuf->size | 1-u64max |
| HALF_LOCKED2 | &dev->object_name_lock | ||
| HALF_LOCKED2 | &file_priv->prime.lock |
drivers/misc/fastrpc.c fastrpc_map_attach() -> dma_buf_map_attachment_unlocked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 4096-ptr_max |
| PARAM_VALUE | 1 | direction | 0 |
| BUF_SIZE | 0 | attach | 64 |
| DATA_SOURCE | 0 | attach | r dma_buf_attach |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | attach->dmabuf->size | 1-u64max |
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c igt_dmabuf_import_same_driver() -> dma_buf_map_attachment_unlocked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 4096-ptr_max |
| PARAM_VALUE | 1 | direction | 0 |
| BUF_SIZE | 0 | attach | 64 |
| DATA_SOURCE | 0 | attach | r dma_buf_attach |
io_uring/zcrx.c io_import_dmabuf() -> dma_buf_map_attachment_unlocked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 4096-ptr_max |
| PARAM_VALUE | 1 | direction | 2 |
| BUF_SIZE | 0 | attach | 64 |
| DATA_SOURCE | 0 | attach | r dma_buf_attach |
| CAPABLE | 0 | 12 | |
| USER_DATA | 0 | attach->dmabuf->size | 1-u64max |
| LOCK2 | &ctx->uring_lock | ||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &dev->lock | ||
| TYPE_LOCK | (struct io_ring_ctx)->uring_lock |
drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c omap_gem_prime_import() -> dma_buf_map_attachment_unlocked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 4096-ptr_max |
| PARAM_VALUE | 1 | direction | 1 |
| BUF_SIZE | 0 | attach | 64 |
| DATA_SOURCE | 0 | attach | r dma_buf_attach |
| 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_map_dmabuf() -> dma_buf_map_attachment_unlocked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mdev->req_queue_mutex | ||
| HALF_LOCKED2 | vb->vb2_queue->lock |
drivers/gpu/drm/drm_prime.c drm_gem_prime_import_dev() -> dma_buf_map_attachment_unlocked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 4096-ptr_max |
| PARAM_VALUE | 1 | direction | 0 |
| BUF_SIZE | 0 | attach | 64 |
| DATA_SOURCE | 0 | attach | r dma_buf_attach |
| 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-contig.c vb2_dc_map_dmabuf() -> dma_buf_map_attachment_unlocked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mdev->req_queue_mutex | ||
| HALF_LOCKED2 | vb->vb2_queue->lock |
drivers/xen/gntdev-dmabuf.c dmabuf_imp_to_refs() -> dma_buf_map_attachment_unlocked()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 4096-ptr_max |
| PARAM_VALUE | 1 | direction | 0 |
| BUF_SIZE | 0 | attach | 64 |
| DATA_SOURCE | 0 | attach | r dma_buf_attach |