Home
last modified time | relevance | path

Searched refs:bufreq (Results 1 – 7 of 7) sorted by relevance

/drivers/media/platform/qcom/venus/
Dhfi_msgs.c28 struct hfi_buffer_requirements *bufreq; in event_seq_changed() local
95 bufreq = (struct hfi_buffer_requirements *)data_ptr; in event_seq_changed()
96 event.buf_count = HFI_BUFREQ_COUNT_MIN(bufreq, ver); in event_seq_changed()
97 data_ptr += sizeof(*bufreq); in event_seq_changed()
333 struct hfi_buffer_requirements *bufreq) in session_get_prop_buf_req() argument
350 memcpy(&bufreq[idx], buf_req, sizeof(*bufreq)); in session_get_prop_buf_req()
379 memset(hprop->bufreq, 0, sizeof(hprop->bufreq)); in hfi_session_prop_info()
380 error = session_get_prop_buf_req(pkt, hprop->bufreq); in hfi_session_prop_info()
Dvdec_ctrls.c42 struct hfi_buffer_requirements bufreq; in vdec_op_g_volatile_ctrl() local
68 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_OUTPUT, &bufreq); in vdec_op_g_volatile_ctrl()
70 ctrl->val = HFI_BUFREQ_COUNT_MIN(&bufreq, ver); in vdec_op_g_volatile_ctrl()
Dhfi_helper.h1028 #define HFI_BUFREQ_HOLD_COUNT(bufreq, ver) \ argument
1029 ((ver) == HFI_VERSION_4XX ? 0 : (bufreq)->hold_count)
1030 #define HFI_BUFREQ_COUNT_MIN(bufreq, ver) \ argument
1031 ((ver) == HFI_VERSION_4XX ? (bufreq)->hold_count : (bufreq)->count_min)
1032 #define HFI_BUFREQ_COUNT_MIN_HOST(bufreq, ver) \ argument
1033 ((ver) == HFI_VERSION_4XX ? (bufreq)->count_min : 0)
Dhelpers.c127 struct hfi_buffer_requirements bufreq; in venus_helper_alloc_dpb_bufs() local
147 ret = venus_helper_get_bufreq(inst, buftype, &bufreq); in venus_helper_alloc_dpb_bufs()
151 count = HFI_BUFREQ_COUNT_MIN(&bufreq, ver); in venus_helper_alloc_dpb_bufs()
187 struct hfi_buffer_requirements bufreq; in intbufs_set_buffer() local
193 ret = venus_helper_get_bufreq(inst, type, &bufreq); in intbufs_set_buffer()
197 if (!bufreq.size) in intbufs_set_buffer()
200 for (i = 0; i < bufreq.count_actual; i++) { in intbufs_set_buffer()
207 buf->type = bufreq.type; in intbufs_set_buffer()
208 buf->size = bufreq.size; in intbufs_set_buffer()
653 if (hprop.bufreq[i].type != type) in venus_helper_get_bufreq()
[all …]
Dvdec.c698 struct hfi_buffer_requirements bufreq; in vdec_num_buffers() local
703 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_INPUT, &bufreq); in vdec_num_buffers()
707 *in_num = HFI_BUFREQ_COUNT_MIN(&bufreq, ver); in vdec_num_buffers()
709 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_OUTPUT, &bufreq); in vdec_num_buffers()
713 *out_num = HFI_BUFREQ_COUNT_MIN(&bufreq, ver); in vdec_num_buffers()
793 struct hfi_buffer_requirements bufreq; in vdec_verify_conf() local
799 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_OUTPUT, &bufreq); in vdec_verify_conf()
803 if (inst->num_output_bufs < bufreq.count_actual || in vdec_verify_conf()
804 inst->num_output_bufs < HFI_BUFREQ_COUNT_MIN(&bufreq, ver)) in vdec_verify_conf()
807 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_INPUT, &bufreq); in vdec_verify_conf()
[all …]
Dvenc.c857 struct hfi_buffer_requirements bufreq; in venc_out_num_buffers() local
864 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_INPUT, &bufreq); in venc_out_num_buffers()
866 *num = bufreq.count_actual; in venc_out_num_buffers()
939 struct hfi_buffer_requirements bufreq; in venc_verify_conf() local
945 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_OUTPUT, &bufreq); in venc_verify_conf()
949 if (inst->num_output_bufs < bufreq.count_actual || in venc_verify_conf()
950 inst->num_output_bufs < HFI_BUFREQ_COUNT_MIN(&bufreq, ver)) in venc_verify_conf()
953 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_INPUT, &bufreq); in venc_verify_conf()
957 if (inst->num_input_bufs < bufreq.count_actual || in venc_verify_conf()
958 inst->num_input_bufs < HFI_BUFREQ_COUNT_MIN(&bufreq, ver)) in venc_verify_conf()
Dhfi.h48 struct hfi_buffer_requirements bufreq[HFI_BUFFER_TYPE_MAX]; member