Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/gpu/drm/drm_gem.c drm_gem_change_handle_ioctl() -> drm_prime_add_buf_handle()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prime_fpriv | 4096-ptr_max |
| PARAM_VALUE | 0 | prime_fpriv->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | prime_fpriv->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | prime_fpriv->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | dma_buf | 1-u64max |
| PARAM_VALUE | 2 | handle | 0-s32max |
| LOCK2 | &file_priv->prime.lock | ||
| TYPE_LOCK | (struct drm_prime_file_private)->lock |
drivers/gpu/drm/drm_prime.c drm_gem_prime_fd_to_handle() -> drm_prime_add_buf_handle()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prime_fpriv | 4096-ptr_max |
| PARAM_VALUE | 0 | prime_fpriv->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | prime_fpriv->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | prime_fpriv->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | dma_buf | 0-ptr_max |
| PARAM_VALUE | 1 | dma_buf->attachments.next | 4096-ptr_max |
| PARAM_VALUE | 1 | dma_buf->attachments.next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | dma_buf->attachments.next->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | dma_buf->file | 4096-ptr_max |
| PARAM_VALUE | 1 | dma_buf->resv->fences->max_fences | 0-4294967295 |
| PARAM_VALUE | 1 | dma_buf->resv->lock.base.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | dma_buf->resv->lock.base.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | dma_buf->resv->lock.base.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 1 | dma_buf->resv->lock.base.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 1 | dma_buf->resv->lock.base.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 1 | dma_buf->resv->lock.ctx | 0 |
| PARAM_VALUE | 2 | handle | 0-s32max |
| BUF_SIZE | 1 | dma_buf | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | dma_buf | s32min-(-2),1-s32max |
| CAPPED_DATA | 1 | dma_buf | 1 |
| DATA_SOURCE | 1 | dma_buf | r dma_buf_get |
| USER_DATA | 2 | handle | 0-s32max[c][u] |
| 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/gpu/drm/drm_prime.c drm_gem_prime_handle_to_dmabuf() -> drm_prime_add_buf_handle()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prime_fpriv | 4096-ptr_max |
| PARAM_VALUE | 0 | prime_fpriv->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | prime_fpriv->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | prime_fpriv->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | dma_buf | 4096-ptr_max |
| PARAM_VALUE | 1 | dma_buf->file | 4096-ptr_max |
| BUF_SIZE | 1 | dma_buf | (-1),361,536 |
| BUF_SIZE | 1 | dma_buf | (-1),361,536 |
| DATA_SOURCE | 2 | handle | $2 |
| USER_DATA | 1 | dma_buf->file->f_flags | 0-18433,32770 |
| USER_DATA | 1 | dma_buf->file->f_mode | 33554432,34078720-571342855[c] |
| USER_DATA | 1 | dma_buf->size | 0-u64max |
| USER_DATA | 2 | handle | 0-u32max |
| LOCK2 | &dev->object_name_lock | ||
| LOCK2 | &file_priv->prime.lock | ||
| HALF_LOCKED2 | &mem->lock | ||
| HALF_LOCKED2 | &p->mutex | ||
| TYPE_LOCK | (struct drm_device)->object_name_lock | ||
| TYPE_LOCK | (struct drm_prime_file_private)->lock |