Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- drivers/accel/amdxdna/amdxdna_gem.c, line 560
- drivers/gpu/drm/drm_prime.c
- drivers/gpu/drm/msm/msm_gem_prime.c, line 55
- drivers/gpu/drm/panfrost/panfrost_gem.c, line 356
- drivers/gpu/drm/panthor/panthor_gem.c, line 550
- drivers/gpu/drm/virtio/virtgpu_prime.c, line 88
Smatch caller information:
drivers/dma-buf/dma-buf.c dma_buf_dynamic_attach() -> (struct dma_buf_ops)->attach()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dma_buf | 4096-ptr_max |
| PARAM_VALUE | 0 | dma_buf->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | dma_buf->ops->attach | 1-u64max |
| PARAM_VALUE | 0 | dma_buf->resv->lock.ww_class->is_wait_die | 0-1 |
| PARAM_VALUE | 1 | attach | 4096-ptr_max |
| PARAM_VALUE | 1 | attach->dev | 1-u64max |
| PARAM_VALUE | 1 | attach->dmabuf | 1-u64max |
| PARAM_VALUE | 1 | attach->importer_ops | 0,4096-ptr_max |
| PARAM_VALUE | 1 | attach->importer_priv | 0-ptr_max |
| BUF_SIZE | 0 | dma_buf | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | dma_buf | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | dma_buf->priv | (-1),72,120,136 |
| BUF_SIZE | 1 | attach | 64 |
| BUF_SIZE | 1 | attach->dev | (-1),1616 |
| BUF_SIZE | 1 | attach->dmabuf | s32min-(-1),1-s32max |
| BUF_SIZE | 1 | attach->importer_ops | (-1),16 |
| BUF_SIZE | 1 | attach->importer_priv | (-1),160,392,704 |
| DATA_SOURCE | 0 | dma_buf | $0 |
| DATA_SOURCE | 1 | attach | r _kzalloc_noprof |
| CONTAINER | 0 | -0-32+0 | $(-1) |
| NOSPEC | 0 | dma_buf->size | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | dma_buf->file->f_flags | 0-18433,32770 |
| USER_DATA | 0 | dma_buf->file->f_mode | 33554432,34078720-571342855[c] |
| USER_DATA | 0 | dma_buf->size | 0-u64max |
| USER_DATA | 1 | attach->dmabuf->size | 0-u64max |
| HALF_LOCKED2 | &dev->object_name_lock | ||
| HALF_LOCKED2 | &file_priv->prime.lock |
drivers/virtio/virtio_dma_buf.c virtio_dma_buf_attach() -> (struct virtio_dma_buf_ops)->device_attach()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dma_buf | 4096-ptr_max |
| PARAM_VALUE | 0 | dma_buf->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | dma_buf->ops->attach | 1-u64max |
| PARAM_VALUE | 0 | dma_buf->resv->lock.ww_class->is_wait_die | 0-1 |
| PARAM_VALUE | 1 | attach | 4096-ptr_max |
| PARAM_VALUE | 1 | attach->dev | 1-u64max |
| PARAM_VALUE | 1 | attach->dmabuf | 1-u64max |
| PARAM_VALUE | 1 | attach->importer_ops | 0,4096-ptr_max |
| PARAM_VALUE | 1 | attach->importer_priv | 0-ptr_max |
| BUF_SIZE | 0 | dma_buf | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | dma_buf | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | dma_buf->priv | (-1),72,120,136 |
| BUF_SIZE | 1 | attach | 64 |
| BUF_SIZE | 1 | attach->dev | (-1),1616 |
| BUF_SIZE | 1 | attach->dmabuf | s32min-(-1),1-s32max |
| BUF_SIZE | 1 | attach->importer_ops | (-1),16 |
| BUF_SIZE | 1 | attach->importer_priv | (-1),160,704 |
| DATA_SOURCE | 0 | dma_buf | $0 |
| DATA_SOURCE | 1 | attach | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | dma_buf->file->f_flags | 0-18433,32770 |
| USER_DATA | 0 | dma_buf->file->f_mode | 33554432,34078720-571342855[c] |
| USER_DATA | 0 | dma_buf->size | 0-u64max |
| USER_DATA | 1 | attach->dmabuf->size | 0-u64max |
| HALF_LOCKED2 | &dev->object_name_lock | ||
| HALF_LOCKED2 | &file_priv->prime.lock |