Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateless.c mtk_vcodec_get_pic_info() -> vdec_if_get_param()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->capture_fourcc 0,808996950,809062486,825380173-825380174,825380185,825381965,842091854,842091865,875967048,875967059,892744275,1177638465,1178095702,1178161238,1379030093,1412584525
PARAM_VALUE 0 ctx->dev 4096-ptr_max
PARAM_VALUE 0 ctx->dev->vdec_pdata->num_formats 4096-ptr_max
PARAM_VALUE 0 ctx->is_10bit_bitstream 1
PARAM_VALUE 0 ctx->q_data 4096-ptr_max
PARAM_VALUE 1 type 2
PARAM_VALUE 2 out 4096-ptr_max
BUF_SIZE 2 out 56
DATA_SOURCE 0 ctx $0
RX_PATH
TASK_NOT_RUNNING

drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateful.c get_display_buffer() -> vdec_if_get_param()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 *ctx->dev->vdec_racing_info 0-4294967295
PARAM_VALUE 1 type 0
PARAM_VALUE 2 out 1962285535184932864
PARAM_VALUE 2 *out 0
BUF_SIZE 0 ctx (-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 ctx (-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 2 out 8
DATA_SOURCE 0 ctx $0
STR_LEN 0 ctx (-1),5-9,12
STR_LEN 0 ctx (-1),5-9,12
RX_PATH
TASK_NOT_RUNNING

drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateful.c get_free_buffer() -> vdec_if_get_param()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->drv_handle->vpu->ctx->dev->fw_handler->scp->ipi_id_ack 0
PARAM_VALUE 0 ctx->lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctx->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ctx->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 *ctx->dev->vdec_racing_info 0-4294967295
PARAM_VALUE 1 type 1
PARAM_VALUE 2 out 8720379349925957632
PARAM_VALUE 2 *out 0
BUF_SIZE 0 ctx (-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 ctx (-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 2 out 8
DATA_SOURCE 0 ctx $0
STR_LEN 0 ctx (-1),5-9,12
STR_LEN 0 ctx (-1),5-9,12
RX_PATH
TASK_NOT_RUNNING

drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateful.c mtk_vdec_pic_info_update() -> vdec_if_get_param()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->dev->curr_ctx->dev 4096-ptr_max
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.dep_map->name 0-255
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ctx->dev->irqlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctx->drv_handle 1-u64max
PARAM_VALUE 0 ctx->drv_handle->vpu.ctx->dev->fw_handler->scp->send_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ctx->drv_handle->vsi_ctx.dec.realloc_mv_buf 1
PARAM_VALUE 0 ctx->lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctx->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ctx->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ctx->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ctx->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 ctx->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ctx->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->m2m_ctx 4096-ptr_max
PARAM_VALUE 0 ctx->m2m_ctx->cap_q_ctx.rdy_spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctx->m2m_ctx->out_q_ctx.rdy_spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctx->picinfo.fb_sz 4096-ptr_max
PARAM_VALUE 0 *ctx->dev->vdec_racing_info 0-4294967295
PARAM_VALUE 1 type 2
PARAM_VALUE 2 out 4096-ptr_max
BUF_SIZE 2 out 56
DATA_SOURCE 0 ctx $0
HALF_LOCKED2 &pool->lock

drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateful.c mtk_vdec_pic_info_update() -> vdec_if_get_param()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->dev->curr_ctx->dev 4096-ptr_max
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.dep_map->name 0-255
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ctx->dev->irqlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctx->drv_handle 1-u64max
PARAM_VALUE 0 ctx->drv_handle->cap_num_planes 0-4294967295
PARAM_VALUE 0 ctx->drv_handle->ctx->picinfo.buf_h 0,64-4294967295
PARAM_VALUE 0 ctx->drv_handle->ctx->picinfo.buf_w 0,64-4294967295
PARAM_VALUE 0 ctx->drv_handle->realloc_mv_buf 1
PARAM_VALUE 0 ctx->drv_handle->resolution_changed 1
PARAM_VALUE 0 ctx->drv_handle->vpu.ctx->dev->fw_handler->scp->send_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ctx->drv_handle->vsi->list_disp.count 0-4294967295
PARAM_VALUE 0 ctx->drv_handle->vsi->list_disp.read_idx 0-16,18-54
PARAM_VALUE 0 ctx->drv_handle->vsi->list_free.count 0-4294967295
PARAM_VALUE 0 ctx->drv_handle->vsi->list_free.read_idx 0-16,18-54
PARAM_VALUE 0 ctx->drv_handle->vsi->pic.buf_h 0,64-4294967295
PARAM_VALUE 0 ctx->drv_handle->vsi->pic.buf_w 0,64-4294967295
PARAM_VALUE 0 ctx->drv_handle->vsi->pic.pic_h 0-4294967295
PARAM_VALUE 0 ctx->drv_handle->vsi->pic.pic_w 0-4294967295
PARAM_VALUE 0 ctx->drv_handle->vsi_ctx.dec.cap_num_planes 0-4294967295
PARAM_VALUE 0 ctx->drv_handle->vsi_ctx.dec.realloc_mv_buf 1
PARAM_VALUE 0 ctx->drv_handle->vsi_ctx.dec.resolution_changed 1
PARAM_VALUE 0 ctx->last_decoded_picinfo.buf_h 1-u32max
PARAM_VALUE 0 ctx->last_decoded_picinfo.buf_w 1-u32max
PARAM_VALUE 0 ctx->last_decoded_picinfo.pic_h 1-u32max
PARAM_VALUE 0 ctx->last_decoded_picinfo.pic_w 1-u32max
PARAM_VALUE 0 ctx->lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctx->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ctx->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ctx->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ctx->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 ctx->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ctx->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->m2m_ctx 4096-ptr_max
PARAM_VALUE 0 ctx->m2m_ctx->cap_q_ctx.rdy_spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctx->m2m_ctx->out_q_ctx.rdy_spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctx->picinfo.fb_sz 4096-ptr_max
PARAM_VALUE 0 *ctx->dev->vdec_racing_info 0-4294967295
PARAM_VALUE 1 type 4
PARAM_VALUE 2 out 8869963894505512960
PARAM_VALUE 2 *out 0
BUF_SIZE 2 out 4
CAPPED_DATA 0 ctx->picinfo.cap_fourcc 1
DATA_SOURCE 0 ctx $0
PARAM_COMPARE 0 ctx->last_decoded_picinfo.cap_fourcc >= $0->picinfo.cap_fourcc
PARAM_COMPARE 0 ctx->last_decoded_picinfo.pic_h != $0->picinfo.pic_h
PARAM_COMPARE 0 ctx->last_decoded_picinfo.pic_w != $0->picinfo.pic_w
HALF_LOCKED2 &pool->lock

drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateful.c vb2ops_vdec_stateful_buf_queue() -> vdec_if_get_param()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->dev->curr_ctx->dev 4096-ptr_max
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.dep_map->name 0-255
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ctx->dev->irqlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctx->drv_handle 1-u64max
PARAM_VALUE 0 ctx->m2m_ctx 4096-ptr_max
PARAM_VALUE 0 ctx->m2m_ctx->out_q_ctx.rdy_spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctx->state 1
PARAM_VALUE 0 *ctx->dev->vdec_racing_info 0-4294967295
PARAM_VALUE 1 type 2
PARAM_VALUE 2 out 4096-ptr_max
BUF_SIZE 0 ctx s32min-(-2),1-s32max
BUF_SIZE 0 ctx s32min-(-2),1-s32max
BUF_SIZE 2 out 56
PARAM_COMPARE 0 &ctx->m2m_ctx->out_q_ctx.rdy_queue != $0->m2m_ctx->out_q_ctx.rdy_queue.next
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dmxdev->mutex
HALF_LOCKED2 vb->vb2_queue->lock

drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_stateful.c vb2ops_vdec_stateful_buf_queue() -> vdec_if_get_param()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->dev->curr_ctx->dev 4096-ptr_max
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.dep_map->name 0-255
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ctx->dev->dec_racing_info_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ctx->dev->irqlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctx->drv_handle 1-u64max
PARAM_VALUE 0 ctx->drv_handle->cap_num_planes 0-4294967295
PARAM_VALUE 0 ctx->drv_handle->ctx->picinfo.buf_h 0,64-4294967295
PARAM_VALUE 0 ctx->drv_handle->ctx->picinfo.buf_w 0,64-4294967295
PARAM_VALUE 0 ctx->drv_handle->realloc_mv_buf 1
PARAM_VALUE 0 ctx->drv_handle->resolution_changed 1
PARAM_VALUE 0 ctx->drv_handle->vsi->list_disp.count 0-4294967295
PARAM_VALUE 0 ctx->drv_handle->vsi->list_disp.read_idx 0-16,18-54
PARAM_VALUE 0 ctx->drv_handle->vsi->list_free.count 0-4294967295
PARAM_VALUE 0 ctx->drv_handle->vsi->list_free.read_idx 0-16,18-54
PARAM_VALUE 0 ctx->drv_handle->vsi->pic.buf_h 0,64-4294967295
PARAM_VALUE 0 ctx->drv_handle->vsi->pic.buf_w 0,64-4294967295
PARAM_VALUE 0 ctx->drv_handle->vsi->pic.pic_h 0-4294967295
PARAM_VALUE 0 ctx->drv_handle->vsi->pic.pic_w 0-4294967295
PARAM_VALUE 0 ctx->drv_handle->vsi_ctx.dec.cap_num_planes 0-4294967295
PARAM_VALUE 0 ctx->drv_handle->vsi_ctx.dec.resolution_changed 1
PARAM_VALUE 0 ctx->m2m_ctx 4096-ptr_max
PARAM_VALUE 0 ctx->m2m_ctx->out_q_ctx.rdy_spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ctx->q_data 4096-ptr_max
PARAM_VALUE 0 ctx->state 1
PARAM_VALUE 0 *ctx->dev->vdec_racing_info 0-4294967295
PARAM_VALUE 1 type 4
PARAM_VALUE 2 out 4902704539203072000
PARAM_VALUE 2 *out 1
BUF_SIZE 0 ctx s32min-(-2),1-s32max
BUF_SIZE 0 ctx s32min-(-2),1-s32max
BUF_SIZE 2 out 4
PARAM_COMPARE 0 &ctx->m2m_ctx->out_q_ctx.rdy_queue != $0->m2m_ctx->out_q_ctx.rdy_queue.next
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dmxdev->mutex
HALF_LOCKED2 vb->vb2_queue->lock

drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec.c vidioc_vdec_g_selection() -> vdec_if_get_param()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->q_data 4096-ptr_max
PARAM_VALUE 1 type 3
PARAM_VALUE 2 out 4096-ptr_max
BUF_SIZE 2 out 16
DATA_SOURCE 0 ctx r file_to_dec_ctx
HALF_LOCKED2 lock
HALF_LOCKED2 req_queue_lock

drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec.c vidioc_vdec_s_fmt() -> vdec_if_get_param()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->capture_fourcc 0,808996950,809062486,825380173-825380174,825380185,825381965,842091854,842091865,875967048,875967059,892744275,1177638465,1178095702,1178161238,1379030093,1412584525
PARAM_VALUE 0 ctx->dev 4096-ptr_max
PARAM_VALUE 0 ctx->dev->vdec_pdata 4096-ptr_max
PARAM_VALUE 0 ctx->dev->vdec_pdata->num_formats 4096-ptr_max
PARAM_VALUE 0 ctx->dev->vdec_pdata->uses_stateless_api 1
PARAM_VALUE 0 *ctx->dev->vdec_pdata->num_formats s32min-(-1),1-s32max
PARAM_VALUE 0 *ctx->dev->vdec_racing_info 0-4294967295
PARAM_VALUE 1 type 2
PARAM_VALUE 2 out 4096-ptr_max
BUF_SIZE 2 out 56
CAPPED_DATA 0 ctx->capture_fourcc 1
DATA_SOURCE 0 ctx r file_to_dec_ctx
USER_DATA 0 ctx->colorspace 0-u32max[u]
USER_DATA 0 ctx->picinfo.pic_h 0-u32max[u]
USER_DATA 0 ctx->picinfo.pic_w 0-u32max[u]
USER_DATA 0 ctx->quantization 0-255[u]
USER_DATA 0 ctx->xfer_func 0-255[u]
USER_DATA 0 ctx->ycbcr_enc 0-255[u]
HALF_LOCKED2 lock
HALF_LOCKED2 req_queue_lock