Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/media/common/videobuf2/videobuf2-core.c vb2_core_create_bufs() -> __vb2_queue_free()

Type Parameter Key Value
PARAM_VALUE 0 q 4096-ptr_max
PARAM_VALUE 0 q->bufs_bitmap 1-u64max
PARAM_VALUE 0 q->fileio 0
PARAM_VALUE 0 q->max_num_buffers 1-u32max
PARAM_VALUE 0 q->mem_ops->alloc 0,4096-ptr_max
PARAM_VALUE 0 q->mem_ops->mmap 0,4096-ptr_max
PARAM_VALUE 0 q->mem_ops->put 0,4096-ptr_max
PARAM_VALUE 0 q->memory 1-2,4
PARAM_VALUE 0 q->mmap_lock.dep_map->name 0-255
PARAM_VALUE 0 q->mmap_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 q->mmap_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 q->mmap_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 q->mmap_lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 q->mmap_lock.wait_lock.owner (-1)
PARAM_VALUE 0 q->mmap_lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 q->ops 4096-ptr_max
PARAM_VALUE 0 q->type 1-2,4-14
PARAM_VALUE 1 start 0-4294967294
PARAM_VALUE 2 count 1-4294967294
BUF_SIZE 0 q (-1),632
BUF_SIZE 0 q (-1),632
CAPPED_DATA 0 q->memory 1
CAPPED_DATA 0 q->type 1
CAPPED_DATA 0 &q->mmap_lock 1
CAPPED_DATA 2 count 1
DATA_SOURCE 0 q $0
DATA_SOURCE 2 count r __vb2_queue_alloc
BIT_INFO 2 count 0x0,0x7fffffff
NOSPEC 0 q->memory
NOSPEC 1 start
NOSPEC 1 start
NOCHECK_CALL
USER_DATA 0 q->memory 1-2,4[c][u]
USER_DATA 0 q->non_coherent_mem 0-1[c]
USER_DATA 1 start 0-s32max[c]
NO_OVERFLOW_SIMPLE 0 q->max_num_buffers
NO_OVERFLOW_SIMPLE 1 start
NO_OVERFLOW_SIMPLE 2 count
LOCK2 0 &q->mmap_lock
HALF_LOCKED2 &video->queue_lock
HALF_LOCKED2 lock
HALF_LOCKED2 req_queue_lock
TYPE_LOCK (struct vb2_queue)->mmap_lock

drivers/media/common/videobuf2/videobuf2-core.c vb2_core_queue_release() -> __vb2_queue_free()

Type Parameter Key Value
PARAM_VALUE 0 q 4096-ptr_max
PARAM_VALUE 0 q->cnt_prepare_streaming 0
PARAM_VALUE 0 q->cnt_queue_setup 0
PARAM_VALUE 0 q->cnt_start_streaming 0
PARAM_VALUE 0 q->done_list.next 4096-ptr_max
PARAM_VALUE 0 q->done_list.next->next 4096-ptr_max
PARAM_VALUE 0 q->done_list.prev 4096-ptr_max
PARAM_VALUE 0 q->done_list.prev->next 4096-ptr_max
PARAM_VALUE 0 q->done_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 q->drv_priv->chained 0
PARAM_VALUE 0 q->drv_priv->m2m->isi->dev->power.deferred_resume 0-1
PARAM_VALUE 0 q->drv_priv->m2m->isi->dev->power.idle_notification 0-1
PARAM_VALUE 0 q->drv_priv->m2m->isi->dev->power.request 0-4
PARAM_VALUE 0 q->drv_priv->m2m->isi->dev->power.request_pending 0-1
PARAM_VALUE 0 q->drv_priv->m2m->isi->dev->power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 q->drv_priv->m2m->isi->dev->power.runtime_status 0,2
PARAM_VALUE 0 q->drv_priv->m2m->isi->dev->power.timer_autosuspends 0-1
PARAM_VALUE 0 q->drv_priv->m2m->isi->dev->power.usage_count.counter s32min-s32max
PARAM_VALUE 0 q->drv_priv->m2m->isi->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 q->drv_priv->m2m->pipe->available_res 0-255
PARAM_VALUE 0 q->drv_priv->m2m->pipe->lock.dep_map->name 0-255
PARAM_VALUE 0 q->drv_priv->m2m->pipe->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 q->drv_priv->m2m->pipe->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 q->drv_priv->m2m->pipe->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 q->drv_priv->m2m->pipe->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 q->drv_priv->m2m->pipe->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 q->drv_priv->m2m->pipe->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 q->drv_priv->m2m->pipe->use_count 0-4294967295
PARAM_VALUE 0 q->drv_priv->m2m->usage_count s32min-s32max
PARAM_VALUE 0 q->drv_priv->pipe->available_res 0-255
PARAM_VALUE 0 q->drv_priv->pipe->isi->dev->dma_mem->spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 q->drv_priv->pipe->lock->first_waiter->task->blocked_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 q->drv_priv->pipe->lock.dep_map->name 0-255
PARAM_VALUE 0 q->drv_priv->pipe->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 q->drv_priv->pipe->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 q->drv_priv->pipe->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 q->drv_priv->pipe->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 q->drv_priv->vdev.entity.graph_obj.mdev->graph_mutex.dep_map->name 0-255
PARAM_VALUE 0 q->drv_priv->vdev.entity.graph_obj.mdev->graph_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 q->drv_priv->video_dev.entity.pads->graph_obj.mdev->graph_mutex.dep_map->name 0-255
PARAM_VALUE 0 q->drv_priv->video_dev.entity.pads->pipe->start_count s32min-s32max
PARAM_VALUE 0 q->error 0
PARAM_VALUE 0 q->fileio 0
PARAM_VALUE 0 q->is_busy 0
PARAM_VALUE 0 q->last_buffer_dequeued 0
PARAM_VALUE 0 q->mmap_lock.dep_map->name 0-255
PARAM_VALUE 0 q->mmap_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 q->mmap_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 q->mmap_lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 q->mmap_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 q->mmap_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 q->mmap_lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 q->mmap_lock.wait_lock.owner (-1)
PARAM_VALUE 0 q->mmap_lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 q->owned_by_drv_count.counter 0
PARAM_VALUE 0 q->queued_count 0
PARAM_VALUE 0 q->queued_list.next 4096-ptr_max
PARAM_VALUE 0 q->queued_list.next->next 4096-ptr_max
PARAM_VALUE 0 q->queued_list.prev 4096-ptr_max
PARAM_VALUE 0 q->queued_list.prev->next 4096-ptr_max
PARAM_VALUE 0 q->queued_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 q->start_streaming_called 0
PARAM_VALUE 0 q->streaming 0
PARAM_VALUE 0 q->uses_qbuf 0
PARAM_VALUE 0 q->uses_requests 0
PARAM_VALUE 1 start 0
BUF_SIZE 0 q (-1),632
BUF_SIZE 0 q (-1),632
BUF_SIZE 0 q->dev (-1),1616
BUF_SIZE 0 q->drv_priv (-1),360,392,488,768,776,784,816,856,872,880,920,928,976,1000,1016,1088,1120,1128,1144,1152,1184,1248,1288,1312,1328,1344,1352,1368,1392,1552,2416,2728,2888,3040,3256,4104,4824,7552,7944,8768,116088
BUF_SIZE 0 q->lock (-1),152
BUF_SIZE 0 q->mem_ops (-1),120
BUF_SIZE 0 q->ops (-1),96
CAPPED_DATA 0 q->max_num_buffers 1
CAPPED_DATA 0 &q->mmap_lock 1
CAPPED_DATA 2 count 1
DATA_SOURCE 0 q $0
STR_LEN 0 q->drv_priv (-1),5-9,12
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 q->allow_cache_hints 0-1
HOST_DATA 0 q->allow_zero_bytesused 0-1
HOST_DATA 0 q->bidirectional 0-1
HOST_DATA 0 q->buf_struct_size 0-u32max
HOST_DATA 0 q->cnt_prepare_streaming 0
HOST_DATA 0 q->cnt_queue_setup 0
HOST_DATA 0 q->cnt_start_streaming 0
HOST_DATA 0 q->cnt_stop_streaming 0-u32max
HOST_DATA 0 q->cnt_unprepare_streaming 0-u32max
HOST_DATA 0 q->copy_timestamp 0-1
HOST_DATA 0 q->dma_attrs 0-u64max
HOST_DATA 0 q->dma_dir 0-u32max
HOST_DATA 0 q->fileio_read_once 0-1
HOST_DATA 0 q->fileio_write_immediately 0-1
HOST_DATA 0 q->gfp_flags 0-u32max
HOST_DATA 0 q->io_modes 0-u32max
HOST_DATA 0 q->is_busy 0
HOST_DATA 0 q->is_multiplanar 0-1
HOST_DATA 0 q->is_output 0-1
HOST_DATA 0 q->last_buffer_dequeued 0
HOST_DATA 0 q->max_num_buffers 0-u32max[c]
HOST_DATA 0 q->memory 0-u32max
HOST_DATA 0 q->min_queued_buffers 0-u32max
HOST_DATA 0 q->min_reqbufs_allocation 0-u32max
HOST_DATA 0 q->non_coherent_mem 0-1
HOST_DATA 0 q->quirk_poll_must_check_waiting_for_buffers 0-1
HOST_DATA 0 q->requires_requests 0-1
HOST_DATA 0 q->subsystem_flags 0-u32max
HOST_DATA 0 q->supports_requests 0-1
HOST_DATA 0 q->timestamp_flags 0-u32max
HOST_DATA 0 q->type 0-u32max
HOST_DATA 0 q->waiting_for_buffers 0-1
HOST_DATA 0 q->waiting_in_dqbuf 0-1
HOST_DATA 2 count 0-u32max[c]
LOCK2 0 &q->mmap_lock
HALF_LOCKED2 &dmxdev->mutex
TYPE_LOCK (struct vb2_queue)->mmap_lock

drivers/media/common/videobuf2/videobuf2-core.c vb2_core_remove_bufs() -> __vb2_queue_free()

Type Parameter Key Value
PARAM_VALUE 0 q 4096-ptr_max
PARAM_VALUE 0 q->bufs_bitmap 1-u64max
PARAM_VALUE 0 q->mmap_lock.dep_map->name 0-255
PARAM_VALUE 0 q->mmap_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 q->mmap_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 q->mmap_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 q->mmap_lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 q->mmap_lock.wait_lock.owner (-1)
PARAM_VALUE 0 q->mmap_lock.wait_lock.owner_cpu u32max
PARAM_VALUE 2 count 1-u32max
BUF_SIZE 0 q (-1),632
BUF_SIZE 0 q (-1),632
CAPPED_DATA 0 q->type 1
CAPPED_DATA 0 &q->mmap_lock 1
CAPPED_DATA 1 start 1
CAPPED_DATA 2 count 1
DATA_SOURCE 0 q $0
DATA_SOURCE 1 start $1
DATA_SOURCE 2 count $2
NOSPEC 1 start
NOSPEC 1 start
NOSPEC 2 count
NOSPEC 2 count
NOCHECK_CALL
USER_DATA 1 start 0-s32max[c]
USER_DATA 2 count 1-s32max[c]
LOCK2 0 &q->mmap_lock
HALF_LOCKED2 lock
HALF_LOCKED2 req_queue_lock
TYPE_LOCK (struct vb2_queue)->mmap_lock

drivers/media/common/videobuf2/videobuf2-core.c vb2_core_reqbufs() -> __vb2_queue_free()

Type Parameter Key Value
PARAM_VALUE 0 q 4096-ptr_max
PARAM_VALUE 0 q->done_list.next 4096-ptr_max
PARAM_VALUE 0 q->done_list.next->next 4096-ptr_max
PARAM_VALUE 0 q->done_list.prev 4096-ptr_max
PARAM_VALUE 0 q->done_list.prev->next 4096-ptr_max
PARAM_VALUE 0 q->done_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 q->drv_priv->m2m->pipe->available_res 0-255
PARAM_VALUE 0 q->drv_priv->m2m->pipe->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 q->drv_priv->m2m->pipe->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 q->drv_priv->m2m->pipe->use_count 0-4294967295
PARAM_VALUE 0 q->drv_priv->pipe->isi->dev->dma_mem->spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 q->drv_priv->pipe->lock.dep_map->name 0-255
PARAM_VALUE 0 q->drv_priv->pipe->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 q->drv_priv->pipe->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 q->error 0
PARAM_VALUE 0 q->mmap_lock.dep_map->name 0-255
PARAM_VALUE 0 q->mmap_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 q->mmap_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 q->mmap_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 q->mmap_lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 q->mmap_lock.wait_lock.owner (-1)
PARAM_VALUE 0 q->mmap_lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 q->owned_by_drv_count.counter 0
PARAM_VALUE 0 q->queued_count 0
PARAM_VALUE 0 q->queued_list.next 4096-ptr_max
PARAM_VALUE 0 q->queued_list.next->next 4096-ptr_max
PARAM_VALUE 0 q->queued_list.prev 4096-ptr_max
PARAM_VALUE 0 q->queued_list.prev->next 4096-ptr_max
PARAM_VALUE 0 q->queued_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 q->start_streaming_called 0
PARAM_VALUE 0 q->streaming 0
PARAM_VALUE 0 q->uses_qbuf 0
PARAM_VALUE 0 q->uses_requests 0
PARAM_VALUE 1 start 0
BUF_SIZE 0 q (-1),632
BUF_SIZE 0 q (-1),632
BUF_SIZE 0 q->dev (-1),1616
BUF_SIZE 0 q->drv_priv (-1),360,392,488,768,776,784,816,856,872,880,920,928,976,1000,1016,1088,1120,1128,1144,1152,1184,1248,1288,1312,1328,1344,1352,1368,1392,1552,2416,2728,2888,3040,3256,4104,4824,7552,7944,8768,116088
BUF_SIZE 0 q->fileio (-1),808
BUF_SIZE 0 q->lock (-1),152
BUF_SIZE 0 q->mem_ops (-1),120
BUF_SIZE 0 q->ops (-1),96
BUF_SIZE 0 q->owner s32min-(-1),1-s32max
BUF_SIZE 0 q->threadio (-1),32
CAPPED_DATA 0 q->max_num_buffers 1
CAPPED_DATA 0 q->memory 1
CAPPED_DATA 0 &q->mmap_lock 1
CAPPED_DATA 2 count 1
DATA_SOURCE 0 q $0
STR_LEN 0 q->drv_priv (-1),5-9,12
NOSPEC 0 q->memory
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 0 q->memory 1-2,4[c][u]
NO_OVERFLOW_SIMPLE 0 q->max_num_buffers
NO_OVERFLOW_SIMPLE 2 count
LOCK2 0 &q->mmap_lock
HALF_LOCKED2 &dmxdev->mutex
TYPE_LOCK (struct vb2_queue)->mmap_lock

drivers/media/common/videobuf2/videobuf2-core.c vb2_core_reqbufs() -> __vb2_queue_free()

Type Parameter Key Value
PARAM_VALUE 0 q 4096-ptr_max
PARAM_VALUE 0 q->bufs 1-u64max
PARAM_VALUE 0 q->bufs_bitmap 1-u64max
PARAM_VALUE 0 q->max_num_buffers 1-u32max
PARAM_VALUE 0 q->memory 1-2,4
PARAM_VALUE 0 q->mmap_lock.dep_map->name 0-255
PARAM_VALUE 0 q->mmap_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 q->mmap_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 q->mmap_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 q->mmap_lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 q->mmap_lock.wait_lock.owner (-1)
PARAM_VALUE 0 q->mmap_lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 q->ops 4096-ptr_max
PARAM_VALUE 0 q->streaming 0
PARAM_VALUE 0 q->waiting_in_dqbuf 0
PARAM_VALUE 1 start 0-4294967294
PARAM_VALUE 2 count 1-4294967294
BUF_SIZE 0 q (-1),632
BUF_SIZE 0 q (-1),632
BUF_SIZE 0 q->fileio (-1),808
BUF_SIZE 0 q->owner s32min-(-1),1-s32max
CAPPED_DATA 0 q->memory 1
CAPPED_DATA 0 q->min_reqbufs_allocation 1
CAPPED_DATA 0 &q->mmap_lock 1
CAPPED_DATA 2 count 1
DATA_SOURCE 0 q $0
DATA_SOURCE 2 count r __vb2_queue_alloc
STR_LEN 0 q->drv_priv (-1)
BIT_INFO 2 count 0x0,0x7fffffff
NOSPEC 0 q->memory
NOSPEC 1 start
NOSPEC 1 start
MEM_ZERO 0 q->alloc_devs
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 0 q->memory 1-2,4[c][u]
USER_DATA 0 q->non_coherent_mem 0-1[c]
USER_DATA 1 start 0-s32max[c]
NO_OVERFLOW_SIMPLE 0 q->max_num_buffers
NO_OVERFLOW_SIMPLE 1 start
NO_OVERFLOW_SIMPLE 2 count
UNITS 2 count unit_array_size
LOCK2 0 &q->mmap_lock
HALF_LOCKED2 &dmxdev->mutex
TYPE_LOCK (struct vb2_queue)->mmap_lock