Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- drivers/media/platform/qcom/iris/iris_buffer.c, line 492
- drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
- drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c, line 159
- drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c, line 657
- drivers/media/platform/qcom/iris/iris_vdec.c
- drivers/media/platform/qcom/iris/iris_venc.c
Smatch caller information:
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c iris_hfi_gen1_read_changed_params() -> iris_vpu_buf_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inst | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer_type | 2 |
| CAPPED_DATA | 0 | inst->session_id | 1 |
| DATA_SOURCE | 0 | inst | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &inst->lock | |
| HALF_LOCKED2 | _T->lock | ||
| TYPE_LOCK | (struct iris_inst)->lock |
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c iris_hfi_gen2_read_input_subcr_params() -> iris_vpu_buf_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inst | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer_type | 2 |
| CAPPED_DATA | 0 | inst->session_id | 1 |
| DATA_SOURCE | 0 | inst | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &inst->lock | |
| HALF_LOCKED2 | _T->lock | ||
| TYPE_LOCK | (struct iris_inst)->lock |
drivers/media/platform/qcom/iris/iris_venc.c iris_venc_inst_init() -> iris_vpu_buf_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inst | 4096-ptr_max |
| PARAM_VALUE | 0 | inst->buffers | 4096-ptr_max |
| PARAM_VALUE | 0 | inst->codec | 875967048 |
| PARAM_VALUE | 0 | inst->domain | 1 |
| PARAM_VALUE | 0 | inst->fmt_dst | 4096-ptr_max |
| PARAM_VALUE | 0 | inst->fmt_dst->fmt.pix_mp.pixelformat | 875967048 |
| PARAM_VALUE | 1 | buffer_type | 2 |
| BUF_SIZE | 0 | inst | 7608 |
| BUF_SIZE | 0 | inst->core | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | inst->fmt_dst | 208 |
| BUF_SIZE | 0 | inst->fmt_src | 208 |
| BUF_SIZE | 0 | inst->m2m_ctx | 1616 |
| BUF_SIZE | 0 | inst->m2m_ctx->m2m_dev | 712 |
| BUF_SIZE | 0 | inst->m2m_ctx->priv | 7608 |
| BUF_SIZE | 0 | inst->m2m_dev | 712 |
| DATA_SOURCE | 0 | inst | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/media/platform/qcom/iris/iris_venc.c iris_venc_inst_init() -> iris_vpu_buf_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inst | 4096-ptr_max |
| PARAM_VALUE | 0 | inst->buffers | 4096-ptr_max |
| PARAM_VALUE | 0 | inst->codec | 875967048 |
| PARAM_VALUE | 0 | inst->domain | 1 |
| PARAM_VALUE | 0 | inst->fmt_dst | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer_type | 1 |
| BUF_SIZE | 0 | inst | 7608 |
| BUF_SIZE | 0 | inst->core | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | inst->fmt_dst | 208 |
| BUF_SIZE | 0 | inst->fmt_src | 208 |
| BUF_SIZE | 0 | inst->m2m_ctx | 1616 |
| BUF_SIZE | 0 | inst->m2m_ctx->m2m_dev | 712 |
| BUF_SIZE | 0 | inst->m2m_ctx->priv | 7608 |
| BUF_SIZE | 0 | inst->m2m_dev | 712 |
| DATA_SOURCE | 0 | inst | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/media/platform/qcom/iris/iris_venc.c iris_venc_s_fmt_input() -> iris_vpu_buf_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inst | 4096-ptr_max |
| PARAM_VALUE | 0 | inst->domain | 1 |
| PARAM_VALUE | 0 | inst->fmt_dst | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer_type | 1 |
| DATA_SOURCE | 0 | inst | $0 |
| LOCK2 | 0 | &inst->lock | |
| HALF_LOCKED2 | lock | ||
| HALF_LOCKED2 | req_queue_lock | ||
| TYPE_LOCK | (struct iris_inst)->lock |
drivers/media/platform/qcom/iris/iris_venc.c iris_venc_s_fmt_output() -> iris_vpu_buf_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inst | 4096-ptr_max |
| PARAM_VALUE | 0 | inst->domain | 1 |
| PARAM_VALUE | 0 | inst->fmt_dst | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer_type | 2 |
| DATA_SOURCE | 0 | inst | $0 |
| USER_DATA | 0 | inst->crop.height | 0-u32max[c] |
| USER_DATA | 0 | inst->crop.width | 0-u32max[c] |
| USER_DATA | 0 | inst->enc_raw_height | 0-u32max |
| USER_DATA | 0 | inst->enc_raw_width | 0-u32max |
| USER_DATA | 0 | inst->enc_scale_height | 0-u32max |
| USER_DATA | 0 | inst->enc_scale_width | 0-u32max |
| USER_DATA | 0 | inst->fmt_dst->fmt.pix_mp.height | 0-s32max[c] |
| USER_DATA | 0 | inst->fmt_dst->fmt.pix_mp.width | 0-s32max[c] |
| HALF_LOCKED2 | lock | ||
| HALF_LOCKED2 | req_queue_lock | ||
| HALF_LOCKED2 | 0 | &inst->lock |
drivers/media/platform/qcom/iris/iris_buffer.c iris_fill_internal_buf_info() -> iris_vpu_buf_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inst | 4096-ptr_max |
| PARAM_VALUE | 0 | inst->buffers | 4096-ptr_max |
| BUF_SIZE | 0 | inst | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | inst | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | inst->core->dev | 1 |
| CAPPED_DATA | 0 | inst->core->iris_platform_data->inst_caps->max_frame_height | 1 |
| CAPPED_DATA | 0 | inst->core->iris_platform_data->inst_caps->max_frame_width | 1 |
| CAPPED_DATA | 0 | inst->core->iris_platform_data->inst_caps->max_mbpf | 1 |
| CAPPED_DATA | 0 | inst->core->iris_platform_data->inst_caps->min_frame_height | 1 |
| CAPPED_DATA | 0 | inst->core->iris_platform_data->inst_caps->min_frame_width | 1 |
| CAPPED_DATA | 0 | inst->fmt_src->fmt.pix_mp.height | 1 |
| CAPPED_DATA | 0 | inst->fmt_src->fmt.pix_mp.width | 1 |
| DATA_SOURCE | 0 | inst | $0 |
| DATA_SOURCE | 1 | buffer_type | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &inst->lock | |
| HALF_LOCKED2 | &dmxdev->mutex | ||
| HALF_LOCKED2 | q->lock | ||
| TYPE_LOCK | (struct iris_inst)->lock |
drivers/media/platform/qcom/iris/iris_vdec.c iris_vdec_inst_init() -> iris_vpu_buf_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inst | 4096-ptr_max |
| PARAM_VALUE | 0 | inst->buffers | 4096-ptr_max |
| PARAM_VALUE | 0 | inst->codec | 875967048 |
| PARAM_VALUE | 0 | inst->domain | 2 |
| PARAM_VALUE | 0 | inst->fmt_dst | 0,4096-ptr_max |
| PARAM_VALUE | 0 | inst->fw_min_count | 0 |
| PARAM_VALUE | 1 | buffer_type | 1 |
| BUF_SIZE | 0 | inst | 7608 |
| BUF_SIZE | 0 | inst->core | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | inst->fmt_dst | 208 |
| BUF_SIZE | 0 | inst->fmt_src | 208 |
| BUF_SIZE | 0 | inst->m2m_ctx | 1616 |
| BUF_SIZE | 0 | inst->m2m_ctx->m2m_dev | 712 |
| BUF_SIZE | 0 | inst->m2m_ctx->priv | 7608 |
| BUF_SIZE | 0 | inst->m2m_dev | 712 |
| DATA_SOURCE | 0 | inst | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/media/platform/qcom/iris/iris_vdec.c iris_vdec_inst_init() -> iris_vpu_buf_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inst | 4096-ptr_max |
| PARAM_VALUE | 0 | inst->buffers | 4096-ptr_max |
| PARAM_VALUE | 0 | inst->codec | 875967048 |
| PARAM_VALUE | 0 | inst->domain | 2 |
| PARAM_VALUE | 0 | inst->fmt_dst | 4096-ptr_max |
| PARAM_VALUE | 0 | inst->fmt_dst->fmt.pix_mp.pixelformat | 842094158 |
| PARAM_VALUE | 0 | inst->fw_min_count | 0 |
| PARAM_VALUE | 1 | buffer_type | 2 |
| BUF_SIZE | 0 | inst | 7608 |
| BUF_SIZE | 0 | inst->core | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | inst->fmt_dst | 208 |
| BUF_SIZE | 0 | inst->fmt_src | 208 |
| BUF_SIZE | 0 | inst->m2m_ctx | 1616 |
| BUF_SIZE | 0 | inst->m2m_ctx->m2m_dev | 712 |
| BUF_SIZE | 0 | inst->m2m_ctx->priv | 7608 |
| BUF_SIZE | 0 | inst->m2m_dev | 712 |
| DATA_SOURCE | 0 | inst | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/media/platform/qcom/iris/iris_vdec.c iris_vdec_s_fmt() -> iris_vpu_buf_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inst | 4096-ptr_max |
| PARAM_VALUE | 0 | inst->domain | 2 |
| PARAM_VALUE | 1 | buffer_type | 1 |
| CAPPED_DATA | 0 | inst->codec | 1 |
| DATA_SOURCE | 0 | inst | $0 |
| USER_DATA | 0 | inst->codec | 0-1129727303,1129727305-u32max[c] |
| LOCK2 | 0 | &inst->lock | |
| HALF_LOCKED2 | lock | ||
| HALF_LOCKED2 | req_queue_lock | ||
| TYPE_LOCK | (struct iris_inst)->lock |
drivers/media/platform/qcom/iris/iris_vdec.c iris_vdec_s_fmt() -> iris_vpu_buf_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inst | 4096-ptr_max |
| PARAM_VALUE | 0 | inst->buffers | 4096-ptr_max |
| PARAM_VALUE | 0 | inst->domain | 2 |
| PARAM_VALUE | 0 | inst->fmt_dst | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer_type | 2 |
| CAPPED_DATA | 0 | inst->codec | 1 |
| DATA_SOURCE | 0 | inst | $0 |
| USER_DATA | 0 | inst->codec | 0-1129727303,1129727305-u32max[c] |
| LOCK2 | 0 | &inst->lock | |
| HALF_LOCKED2 | lock | ||
| HALF_LOCKED2 | req_queue_lock | ||
| TYPE_LOCK | (struct iris_inst)->lock |
drivers/media/platform/qcom/iris/iris_vdec.c iris_vdec_s_fmt() -> iris_vpu_buf_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inst | 4096-ptr_max |
| PARAM_VALUE | 0 | inst->domain | 2 |
| PARAM_VALUE | 0 | inst->fmt_dst | 4096-ptr_max |
| PARAM_VALUE | 1 | buffer_type | 2 |
| DATA_SOURCE | 0 | inst | $0 |
| LOCK2 | 0 | &inst->lock | |
| HALF_LOCKED2 | lock | ||
| HALF_LOCKED2 | req_queue_lock | ||
| TYPE_LOCK | (struct iris_inst)->lock |
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c iris_hfi_gen1_set_num_bufs() -> iris_vpu_buf_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inst | 4096-ptr_max |
| PARAM_VALUE | 0 | inst->domain | 2 |
| PARAM_VALUE | 0 | inst->fmt_dst | 4096-ptr_max |
| PARAM_VALUE | 0 | inst->fmt_dst->fmt.pix_mp.pixelformat | 808530000,842094158,1127231825,1127755857 |
| PARAM_VALUE | 1 | buffer_type | 8 |
| BUF_SIZE | 0 | inst | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | inst | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | inst->core->dev | 1 |
| CAPPED_DATA | 0 | inst->core->iris_platform_data->inst_caps->max_frame_height | 1 |
| CAPPED_DATA | 0 | inst->core->iris_platform_data->inst_caps->max_frame_width | 1 |
| CAPPED_DATA | 0 | inst->core->iris_platform_data->inst_caps->max_mbpf | 1 |
| CAPPED_DATA | 0 | inst->core->iris_platform_data->inst_caps->min_frame_height | 1 |
| CAPPED_DATA | 0 | inst->core->iris_platform_data->inst_caps->min_frame_width | 1 |
| CAPPED_DATA | 0 | inst->fmt_src->fmt.pix_mp.height | 1 |
| CAPPED_DATA | 0 | inst->fmt_src->fmt.pix_mp.width | 1 |
| DATA_SOURCE | 0 | inst | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &inst->lock | |
| HALF_LOCKED2 | &dmxdev->mutex | ||
| HALF_LOCKED2 | q->lock | ||
| TYPE_LOCK | (struct iris_inst)->lock |
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c iris_hfi_gen1_set_num_bufs() -> iris_vpu_buf_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inst | 4096-ptr_max |
| PARAM_VALUE | 0 | inst->domain | 2 |
| PARAM_VALUE | 0 | inst->fmt_dst | 4096-ptr_max |
| PARAM_VALUE | 0 | inst->fmt_dst->fmt.pix_mp.pixelformat | 808530000,842094158,1127231825,1127755857 |
| PARAM_VALUE | 1 | buffer_type | 8 |
| BUF_SIZE | 0 | inst | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | inst | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | inst->core->dev | 1 |
| CAPPED_DATA | 0 | inst->core->iris_platform_data->inst_caps->max_frame_height | 1 |
| CAPPED_DATA | 0 | inst->core->iris_platform_data->inst_caps->max_frame_width | 1 |
| CAPPED_DATA | 0 | inst->core->iris_platform_data->inst_caps->max_mbpf | 1 |
| CAPPED_DATA | 0 | inst->core->iris_platform_data->inst_caps->min_frame_height | 1 |
| CAPPED_DATA | 0 | inst->core->iris_platform_data->inst_caps->min_frame_width | 1 |
| CAPPED_DATA | 0 | inst->fmt_src->fmt.pix_mp.height | 1 |
| CAPPED_DATA | 0 | inst->fmt_src->fmt.pix_mp.width | 1 |
| DATA_SOURCE | 0 | inst | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &inst->lock | |
| HALF_LOCKED2 | &dmxdev->mutex | ||
| HALF_LOCKED2 | q->lock | ||
| TYPE_LOCK | (struct iris_inst)->lock |