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 1145
- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c, line 1028
- drivers/gpu/drm/virtio/virtgpu_plane.c
- drivers/gpu/drm/virtio/virtgpu_prime.c
- drivers/gpu/drm/xe/tests/xe_dma_buf.c, line 98
- drivers/infiniband/core/umem_dmabuf.c, line 202
- drivers/iommu/iommufd/pages.c
Smatch caller information:
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c amdgpu_bo_unpin() -> dma_buf_unpin()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &crtc->mutex | ||
| HALF_LOCKED2 | &mem->process_info->lock | ||
| HALF_LOCKED2 | &p->mutex | ||
| HALF_LOCKED2 | &plane->mutex | ||
| HALF_LOCKED2 | *bo->tbo.base.resv | ||
| HALF_LOCKED2 | *bo_ptr->tbo.base.resv | ||
| HALF_LOCKED2 | bo->tbo.base.resv |
drivers/gpu/drm/virtio/virtgpu_prime.c virtgpu_dma_buf_init_obj() -> dma_buf_unpin()
| 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 | 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 | 64 |
| DATA_SOURCE | 0 | attach | $2 |
| NOCHECK_CALL | |||
| LOCK2 | &dev->object_name_lock | ||
| LOCK2 | &file_priv->prime.lock | ||
| LOCK2 | resv | ||
| HALF_LOCKED2 | &p->mutex | ||
| TYPE_LOCK | (struct drm_device)->object_name_lock | ||
| TYPE_LOCK | (struct drm_prime_file_private)->lock |
drivers/gpu/drm/virtio/virtgpu_prime.c virtgpu_dma_buf_init_obj() -> dma_buf_unpin()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 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 | 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 | 64 |
| DATA_SOURCE | 0 | attach | $2 |
| NOCHECK_CALL | |||
| LOCK2 | &dev->object_name_lock | ||
| LOCK2 | &file_priv->prime.lock | ||
| LOCK2 | resv | ||
| HALF_LOCKED2 | &p->mutex | ||
| TYPE_LOCK | (struct drm_device)->object_name_lock | ||
| TYPE_LOCK | (struct drm_prime_file_private)->lock |
drivers/iommu/iommufd/pages.c iopt_map_dmabuf() -> dma_buf_unpin()
| 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 |
| BUF_SIZE | 0 | attach | 64 |
| DATA_SOURCE | 0 | attach | r dma_buf_dynamic_attach |
| NOCHECK_CALL | |||
| LOCK2 | dmabuf->resv |
drivers/iommu/iommufd/pages.c iopt_release_pages() -> dma_buf_unpin()
| 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 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | dmabuf->resv |
drivers/gpu/drm/virtio/virtgpu_plane.c virtio_gpu_cleanup_imported_obj() -> dma_buf_unpin()
| 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 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | resv |
drivers/gpu/drm/virtio/virtgpu_plane.c virtio_gpu_prepare_imported_obj() -> dma_buf_unpin()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 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 | 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 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | resv |
drivers/gpu/drm/xe/xe_dma_buf.c check_residency() -> dma_buf_unpin()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 4096-ptr_max |
| PARAM_VALUE | 0 | attach->dmabuf->ops | 4096-ptr_max |
| NOCHECK_CALL | |||
| LOCK2 | imported->ttm.base.resv |
drivers/infiniband/core/umem_dmabuf.c ib_umem_dmabuf_revoke_locked() -> dma_buf_unpin()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | attach | 4096-ptr_max |
| PARAM_VALUE | 0 | attach->dmabuf | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | attach->dmabuf->size | |
| HALF_LOCKED2 | dmabuf->resv |