Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 10 files:
- drivers/accel/ivpu/ivpu_gem.c, line 57
- drivers/accel/qaic/qaic_data.c, line 892
- drivers/dma-buf/dma-buf.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c, line 950
- drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c, line 243
- drivers/gpu/drm/virtio/virtgpu_prime.c, line 164
- drivers/gpu/drm/xe/xe_bo.c, line 774
- drivers/iio/industrialio-buffer.c, line 1732
- drivers/infiniband/core/umem_dmabuf.c, line 32
- drivers/usb/gadget/function/f_fs.c, line 1559
Smatch caller information:
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c amdgpu_ttm_backend_bind() -> dma_buf_map_attachment()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | direction | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | bo->base.resv |
drivers/iio/industrialio-buffer.c iio_buffer_attach_dmabuf() -> dma_buf_map_attachment()
| 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 |
| FUZZY_MAX | 1 | direction | 2 |
| HARD_MAX | 1 | direction | 2 |
| LOCK2 | dmabuf->resv |
drivers/gpu/drm/virtio/virtgpu_prime.c virtgpu_dma_buf_import_sgt() -> dma_buf_map_attachment()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 4096-ptr_max |
| PARAM_VALUE | 0 | attach->dmabuf | 4096-ptr_max |
| PARAM_VALUE | 0 | attach->dmabuf->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | attach->dmabuf->resv->lock.base.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | attach->dmabuf->resv->lock.base.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | attach->dmabuf->resv->lock.base.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | direction | 0 |
| BUF_SIZE | 0 | attach | (-1),64 |
| BUF_SIZE | 0 | attach | (-1),64 |
| DATA_SOURCE | 0 | attach | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | resv | ||
| HALF_LOCKED2 | &dev->object_name_lock | ||
| HALF_LOCKED2 | &file_priv->prime.lock |
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c i915_gem_object_get_pages_dmabuf() -> dma_buf_map_attachment()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | direction | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | attach->dmabuf->size | |
| HALF_LOCKED2 | obj->base.resv |
drivers/accel/ivpu/ivpu_gem.c ivpu_bo_map_attachment() -> dma_buf_map_attachment()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 1-u64max |
| PARAM_VALUE | 1 | direction | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | bo->base.base.resv | ||
| HALF_LOCKED2 | global &drm_unplug_srcu |
drivers/dma-buf/dma-buf.c dma_buf_map_attachment_unlocked() -> dma_buf_map_attachment()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 4096-ptr_max |
| PARAM_VALUE | 0 | attach->dmabuf | 4096-ptr_max |
| PARAM_VALUE | 0 | attach->dmabuf->resv->lock.base.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | attach->dmabuf->resv->lock.base.first_waiter | 0,4096-5159360019465732095,5159360019465732097-ptr_max |
| PARAM_VALUE | 0 | attach->dmabuf->resv->lock.base.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | attach->dmabuf->resv->lock.base.osq.tail.counter | 0-s32max |
| BUF_SIZE | 0 | attach | (-1),64 |
| BUF_SIZE | 0 | attach | (-1),64 |
| DATA_SOURCE | 0 | attach | $0 |
| DATA_SOURCE | 1 | direction | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | attach->dmabuf->size | 0-u64max |
| LOCK2 | 0 | attach->dmabuf->resv | |
| HALF_LOCKED2 | &ctx->uring_lock | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &dev->object_name_lock | ||
| HALF_LOCKED2 | &drm->object_name_lock | ||
| HALF_LOCKED2 | &file_priv->prime.lock | ||
| HALF_LOCKED2 | &priv->lock | ||
| HALF_LOCKED2 | &vde->map_lock | ||
| HALF_LOCKED2 | _T->lock |
drivers/gpu/drm/xe/xe_bo.c xe_bo_move_dmabuf() -> dma_buf_map_attachment()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | direction | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | attach->dmabuf->size | |
| HALF_LOCKED2 | ttm_bo->base.resv |
drivers/infiniband/core/umem_dmabuf.c ib_umem_dmabuf_map_pages() -> dma_buf_map_attachment()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 4096-ptr_max |
| PARAM_VALUE | 0 | attach->dmabuf | 4096-ptr_max |
| PARAM_VALUE | 0 | attach->dmabuf->resv->lock.base.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | attach->dmabuf->resv->lock.base.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | attach->dmabuf->resv->lock.base.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | direction | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | attach->dmabuf->resv |
drivers/usb/gadget/function/f_fs.c ffs_dmabuf_attach() -> dma_buf_map_attachment()
| 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 |
| FUZZY_MAX | 1 | direction | 2 |
| HARD_MAX | 1 | direction | 2 |
| LOCK2 | dmabuf->resv |
drivers/accel/qaic/qaic_data.c qaic_prepare_import_bo() -> dma_buf_map_attachment()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 1-u64max |
| PARAM_VALUE | 1 | direction | 1-2 |
| LOCK2 | &bo->lock | ||
| LOCK2 | &dbc->ch_lock | ||
| LOCK2 | &qdev->dev_lock | ||
| LOCK2 | &usr->qddev_lock | ||
| TYPE_LOCK | (struct dma_bridge_chan)->ch_lock | ||
| TYPE_LOCK | (struct qaic_bo)->lock | ||
| TYPE_LOCK | (struct qaic_device)->dev_lock | ||
| TYPE_LOCK | (struct qaic_user)->qddev_lock |