Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c igt_dmabuf_import() -> i915_gem_prime_import()

Type Parameter Key Value
PARAM_VALUE 1 dma_buf 4096-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.prev 4096-ptr_max
PARAM_VALUE 1 dma_buf->attachments.prev->next 4096-ptr_max
PARAM_VALUE 1 dma_buf->attachments.prev->prev 4096-ptr_max
PARAM_VALUE 1 dma_buf->cb_in.active 0
PARAM_VALUE 1 dma_buf->cb_in.poll 4096-ptr_max
PARAM_VALUE 1 dma_buf->cb_out.active 0
PARAM_VALUE 1 dma_buf->cb_out.poll 4096-ptr_max
PARAM_VALUE 1 dma_buf->cb_out.poll->head.next 4096-ptr_max
PARAM_VALUE 1 dma_buf->cb_out.poll->head.prev 4096-ptr_max
PARAM_VALUE 1 dma_buf->exp_name 3116414117130858496
PARAM_VALUE 1 dma_buf->file 4096-ptr_max
PARAM_VALUE 1 dma_buf->file->__f_path.dentry 4096-ptr_max
PARAM_VALUE 1 dma_buf->file->__f_path.mnt 0
PARAM_VALUE 1 dma_buf->file->f_cred 0,4096-ptr_max
PARAM_VALUE 1 dma_buf->file->f_ep 0
PARAM_VALUE 1 dma_buf->file->f_flags 0-18433,32770
PARAM_VALUE 1 dma_buf->file->f_inode 4096-ptr_max
PARAM_VALUE 1 dma_buf->file->f_iocb_flags 0,2,16,18,131072,131074,131088,131090
PARAM_VALUE 1 dma_buf->file->f_mapping 4096-ptr_max
PARAM_VALUE 1 dma_buf->file->f_mode 33554432,34078720-571342855
PARAM_VALUE 1 dma_buf->file->f_op 4096-ptr_max
PARAM_VALUE 1 dma_buf->file->f_owner 0
PARAM_VALUE 1 dma_buf->file->f_path.dentry 4096-ptr_max
PARAM_VALUE 1 dma_buf->file->f_pos 0
PARAM_VALUE 1 dma_buf->file->f_pos_lock.first_waiter 0
PARAM_VALUE 1 dma_buf->file->f_pos_lock.magic 4096-ptr_max
PARAM_VALUE 1 dma_buf->file->f_pos_lock.owner.counter 0
PARAM_VALUE 1 dma_buf->file->f_ra.async_size 0
PARAM_VALUE 1 dma_buf->file->f_ra.mmap_miss 0
PARAM_VALUE 1 dma_buf->file->f_ra.order 0
PARAM_VALUE 1 dma_buf->file->f_ra.prev_pos 0
PARAM_VALUE 1 dma_buf->file->f_ra.ra_pages 0
PARAM_VALUE 1 dma_buf->file->f_ra.size 0
PARAM_VALUE 1 dma_buf->file->f_ra.start 0
PARAM_VALUE 1 dma_buf->file->f_ref.refcnt.counter 0
PARAM_VALUE 1 dma_buf->file->f_sb_err 0
PARAM_VALUE 1 dma_buf->file->f_security 0
PARAM_VALUE 1 dma_buf->file->f_wb_err 0
PARAM_VALUE 1 dma_buf->file->private_data 4096-ptr_max
PARAM_VALUE 1 dma_buf->list_node.next 4096-ptr_max
PARAM_VALUE 1 dma_buf->list_node.prev 4096-ptr_max
PARAM_VALUE 1 dma_buf->ops 6768536905314770944
PARAM_VALUE 1 dma_buf->ops->attach 0
PARAM_VALUE 1 dma_buf->ops->map_dma_buf 8175560248507011072
PARAM_VALUE 1 dma_buf->ops->release 3073523863218692096
PARAM_VALUE 1 dma_buf->ops->unmap_dma_buf 7985307883073949696
PARAM_VALUE 1 dma_buf->owner 0
PARAM_VALUE 1 dma_buf->owner->refcnt.counter 0-s32max
PARAM_VALUE 1 dma_buf->owner->state 0-1,3-u32max
PARAM_VALUE 1 dma_buf->poll.head.next 4096-ptr_max
PARAM_VALUE 1 dma_buf->poll.head.next->next 4096-ptr_max
PARAM_VALUE 1 dma_buf->poll.head.prev 4096-ptr_max
PARAM_VALUE 1 dma_buf->poll.head.prev->next 4096-ptr_max
PARAM_VALUE 1 dma_buf->poll.head.prev->prev 4096-ptr_max
PARAM_VALUE 1 dma_buf->priv 4096-ptr_max
PARAM_VALUE 1 dma_buf->resv 1-u64max
PARAM_VALUE 1 dma_buf->resv->lock.ww_class->is_wait_die 0-s32max
PARAM_VALUE 1 dma_buf->size 4096
BUF_SIZE 1 dma_buf 361,536
BUF_SIZE 1 dma_buf 361,536
DATA_SOURCE 1 dma_buf r mock_dmabuf
TERMINATED 1 dma_buf->exp_name 1

drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c igt_dmabuf_import_ownership() -> i915_gem_prime_import()

Type Parameter Key Value
PARAM_VALUE 1 dma_buf 4096-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.prev 4096-ptr_max
PARAM_VALUE 1 dma_buf->attachments.prev->next 4096-ptr_max
PARAM_VALUE 1 dma_buf->attachments.prev->prev 4096-ptr_max
PARAM_VALUE 1 dma_buf->cb_in.active 0
PARAM_VALUE 1 dma_buf->cb_in.poll 4096-ptr_max
PARAM_VALUE 1 dma_buf->cb_out.active 0
PARAM_VALUE 1 dma_buf->cb_out.poll 4096-ptr_max
PARAM_VALUE 1 dma_buf->cb_out.poll->head.next 4096-ptr_max
PARAM_VALUE 1 dma_buf->cb_out.poll->head.prev 4096-ptr_max
PARAM_VALUE 1 dma_buf->exp_name 3116414117130858496
PARAM_VALUE 1 dma_buf->file 4096-ptr_max
PARAM_VALUE 1 dma_buf->file->__f_path.dentry 4096-ptr_max
PARAM_VALUE 1 dma_buf->file->__f_path.mnt 0
PARAM_VALUE 1 dma_buf->file->f_cred 0,4096-ptr_max
PARAM_VALUE 1 dma_buf->file->f_ep 0
PARAM_VALUE 1 dma_buf->file->f_flags 0-18433,32770
PARAM_VALUE 1 dma_buf->file->f_inode 4096-ptr_max
PARAM_VALUE 1 dma_buf->file->f_iocb_flags 0,2,16,18,131072,131074,131088,131090
PARAM_VALUE 1 dma_buf->file->f_mapping 4096-ptr_max
PARAM_VALUE 1 dma_buf->file->f_mode 33554432,34078720-571342855
PARAM_VALUE 1 dma_buf->file->f_op 4096-ptr_max
PARAM_VALUE 1 dma_buf->file->f_owner 0
PARAM_VALUE 1 dma_buf->file->f_path.dentry 4096-ptr_max
PARAM_VALUE 1 dma_buf->file->f_pos 0
PARAM_VALUE 1 dma_buf->file->f_pos_lock.first_waiter 0
PARAM_VALUE 1 dma_buf->file->f_pos_lock.magic 4096-ptr_max
PARAM_VALUE 1 dma_buf->file->f_pos_lock.owner.counter 0
PARAM_VALUE 1 dma_buf->file->f_ra.async_size 0
PARAM_VALUE 1 dma_buf->file->f_ra.mmap_miss 0
PARAM_VALUE 1 dma_buf->file->f_ra.order 0
PARAM_VALUE 1 dma_buf->file->f_ra.prev_pos 0
PARAM_VALUE 1 dma_buf->file->f_ra.ra_pages 0
PARAM_VALUE 1 dma_buf->file->f_ra.size 0
PARAM_VALUE 1 dma_buf->file->f_ra.start 0
PARAM_VALUE 1 dma_buf->file->f_ref.refcnt.counter 0
PARAM_VALUE 1 dma_buf->file->f_sb_err 0
PARAM_VALUE 1 dma_buf->file->f_security 0
PARAM_VALUE 1 dma_buf->file->f_wb_err 0
PARAM_VALUE 1 dma_buf->file->private_data 4096-ptr_max
PARAM_VALUE 1 dma_buf->list_node.next 4096-ptr_max
PARAM_VALUE 1 dma_buf->list_node.prev 4096-ptr_max
PARAM_VALUE 1 dma_buf->ops 6768536905314770944
PARAM_VALUE 1 dma_buf->ops->attach 0
PARAM_VALUE 1 dma_buf->ops->map_dma_buf 8175560248507011072
PARAM_VALUE 1 dma_buf->ops->release 3073523863218692096
PARAM_VALUE 1 dma_buf->ops->unmap_dma_buf 7985307883073949696
PARAM_VALUE 1 dma_buf->ops->vmap 4096-ptr_max
PARAM_VALUE 1 dma_buf->ops->vunmap 0,4096-ptr_max
PARAM_VALUE 1 dma_buf->owner 0
PARAM_VALUE 1 dma_buf->owner->refcnt.counter 0-s32max
PARAM_VALUE 1 dma_buf->owner->state 0-1,3-u32max
PARAM_VALUE 1 dma_buf->poll.head.next 4096-ptr_max
PARAM_VALUE 1 dma_buf->poll.head.next->next 4096-ptr_max
PARAM_VALUE 1 dma_buf->poll.head.prev 4096-ptr_max
PARAM_VALUE 1 dma_buf->poll.head.prev->next 4096-ptr_max
PARAM_VALUE 1 dma_buf->poll.head.prev->prev 4096-ptr_max
PARAM_VALUE 1 dma_buf->priv 4096-ptr_max
PARAM_VALUE 1 dma_buf->priv->db_attach->dmabuf->vmapping_counter 1-4294967295
PARAM_VALUE 1 dma_buf->priv->dev->gem_lru_mutex->first_waiter->task->blocked_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 1 dma_buf->priv->dev->gem_lru_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 1 dma_buf->priv->dev->gem_lru_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 1 dma_buf->priv->dev->gem_lru_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 1 dma_buf->priv->dev->gem_lru_mutex.first_waiter->task->blocked_on 0
PARAM_VALUE 1 dma_buf->priv->dev->gem_lru_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 1 dma_buf->priv->dev->gem_lru_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 1 dma_buf->priv->import_attach->dmabuf->vmapping_counter 0-4294967295
PARAM_VALUE 1 dma_buf->priv->lock.dep_map->name 0-255
PARAM_VALUE 1 dma_buf->priv->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 1 dma_buf->priv->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 1 dma_buf->priv->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 1 dma_buf->priv->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 1 dma_buf->priv->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 1 dma_buf->priv->lock.first_waiter->task->blocked_lock.raw_lock.val.counter 0-s32max
PARAM_VALUE 1 dma_buf->priv->lock.first_waiter->task->blocked_on 0
PARAM_VALUE 1 dma_buf->priv->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 1 dma_buf->priv->lock.osq.tail.counter 0-s32max
PARAM_VALUE 1 dma_buf->priv->vaddr 0
PARAM_VALUE 1 dma_buf->resv 1-u64max
PARAM_VALUE 1 dma_buf->resv->fences 0,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->task->blocked_lock.dep_map->name 0-255
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.base.first_waiter->task->blocked_on 0
PARAM_VALUE 1 dma_buf->resv->lock.ctx 0
PARAM_VALUE 1 dma_buf->resv->lock.ww_class->is_wait_die 0-s32max
PARAM_VALUE 1 dma_buf->size 4096
PARAM_VALUE 1 dma_buf->vmap_ptr.is_iomem 0
PARAM_VALUE 1 dma_buf->vmap_ptr.vaddr 0
PARAM_VALUE 1 dma_buf->vmap_ptr.vaddr_iomem 0
BUF_SIZE 1 dma_buf 361,536
BUF_SIZE 1 dma_buf 361,536
CAPPED_DATA 1 dma_buf->resv->fences 1
DATA_SOURCE 1 dma_buf r mock_dmabuf
TERMINATED 1 dma_buf->exp_name 1

drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c igt_dmabuf_import_same_driver() -> i915_gem_prime_import()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 1 dma_buf 4096-ptr_max
BUF_SIZE 1 dma_buf 361,536
BUF_SIZE 1 dma_buf 361,536
DATA_SOURCE 1 dma_buf r i915_gem_prime_export

drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c igt_dmabuf_import_same_driver_lmem() -> i915_gem_prime_import()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 1 dma_buf 4096-ptr_max
BUF_SIZE 1 dma_buf 361,536
BUF_SIZE 1 dma_buf 361,536
DATA_SOURCE 1 dma_buf r i915_gem_prime_export

drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c igt_dmabuf_import_self() -> i915_gem_prime_import()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 1 dma_buf 4096-ptr_max
BUF_SIZE 1 dma_buf 361,536
BUF_SIZE 1 dma_buf 361,536
DATA_SOURCE 1 dma_buf r i915_gem_prime_export

drivers/gpu/drm/drm_prime.c drm_gem_prime_fd_to_handle() -> (struct drm_driver)->gem_prime_import()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->driver 4096-ptr_max
PARAM_VALUE 0 dev->driver->gem_prime_import 1-u64max
PARAM_VALUE 0 dev->object_name_lock.dep_map->name 0-255
PARAM_VALUE 0 dev->object_name_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 dev->object_name_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 dev->object_name_lock.first_waiter->task->blocked_on 0
PARAM_VALUE 0 dev->object_name_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 dev->object_name_lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 dev->object_name_lock.wait_lock.owner (-1)
PARAM_VALUE 0 dev->object_name_lock.wait_lock.owner_cpu u32max
PARAM_VALUE 1 dma_buf 0-ptr_max
BUF_SIZE 1 dma_buf s32min-(-2),1-s32max
BUF_SIZE 1 dma_buf s32min-(-2),1-s32max
CAPPED_DATA 0 &dev->object_name_lock 1
CAPPED_DATA 1 dma_buf 1
DATA_SOURCE 0 dev $0
DATA_SOURCE 1 dma_buf r dma_buf_get
CONTAINER 0 -88-120+0 $(-1)
LOCK2 &file_priv->prime.lock
LOCK2 0 &dev->object_name_lock
HALF_LOCKED2 &p->mutex
TYPE_LOCK (struct drm_device)->object_name_lock
TYPE_LOCK (struct drm_prime_file_private)->lock