Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/media/platform/qcom/venus/
Dhfi_plat_bufs_v6.c1183 struct hfi_buffer_requirements *bufreq) in bufreq_dec() argument
1217 out_min_count = max(out_min_count, bufreq->count_min); in bufreq_dec()
1219 bufreq->type = buftype; in bufreq_dec()
1220 bufreq->region_size = 0; in bufreq_dec()
1221 bufreq->count_min = 1; in bufreq_dec()
1222 bufreq->count_actual = 1; in bufreq_dec()
1223 bufreq->hold_count = 1; in bufreq_dec()
1224 bufreq->contiguous = 1; in bufreq_dec()
1225 bufreq->alignment = 256; in bufreq_dec()
1228 bufreq->count_min = MIN_INPUT_BUFFERS; in bufreq_dec()
[all …]
Dhfi_msgs.c33 struct hfi_buffer_requirements *bufreq; in event_seq_changed() local
101 bufreq = (struct hfi_buffer_requirements *)data_ptr; in event_seq_changed()
102 event.buf_count = HFI_BUFREQ_COUNT_MIN(bufreq, ver); in event_seq_changed()
103 data_ptr += sizeof(*bufreq); in event_seq_changed()
357 struct hfi_buffer_requirements *bufreq) in session_get_prop_buf_req() argument
374 memcpy(&bufreq[idx], buf_req, sizeof(*bufreq)); in session_get_prop_buf_req()
403 memset(hprop->bufreq, 0, sizeof(hprop->bufreq)); in hfi_session_prop_info()
404 error = session_get_prop_buf_req(pkt, hprop->bufreq); in hfi_session_prop_info()
Dhfi_platform.h55 int (*bufreq)(struct hfi_plat_buffers_params *params, u32 session_type, member
56 u32 buftype, struct hfi_buffer_requirements *bufreq);
Dvdec_ctrls.c53 struct hfi_buffer_requirements bufreq; in vdec_op_g_volatile_ctrl() local
80 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_OUTPUT, &bufreq); in vdec_op_g_volatile_ctrl()
82 ctrl->val = HFI_BUFREQ_COUNT_MIN(&bufreq, ver); in vdec_op_g_volatile_ctrl()
Dhfi_helper.h1154 #define HFI_BUFREQ_HOLD_COUNT(bufreq, ver) \ argument
1155 ((ver) == HFI_VERSION_4XX ? 0 : (bufreq)->hold_count)
1156 #define HFI_BUFREQ_COUNT_MIN(bufreq, ver) \ argument
1157 ((ver) == HFI_VERSION_4XX ? (bufreq)->hold_count : (bufreq)->count_min)
1158 #define HFI_BUFREQ_COUNT_MIN_HOST(bufreq, ver) \ argument
1159 ((ver) == HFI_VERSION_4XX ? (bufreq)->count_min : 0)
Dvdec.c705 struct hfi_buffer_requirements bufreq; in vdec_output_conf() local
785 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_OUTPUT, &bufreq); in vdec_output_conf()
789 if (bufreq.size > inst->output_buf_size) in vdec_output_conf()
794 &bufreq); in vdec_output_conf()
798 if (bufreq.size > inst->output2_buf_size) in vdec_output_conf()
851 struct hfi_buffer_requirements bufreq; in vdec_num_buffers() local
856 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_INPUT, &bufreq); in vdec_num_buffers()
860 *in_num = HFI_BUFREQ_COUNT_MIN(&bufreq, ver); in vdec_num_buffers()
862 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_OUTPUT, &bufreq); in vdec_num_buffers()
866 *out_num = HFI_BUFREQ_COUNT_MIN(&bufreq, ver); in vdec_num_buffers()
[all …]
Dhelpers.c167 struct hfi_buffer_requirements bufreq; in venus_helper_alloc_dpb_bufs() local
188 ret = venus_helper_get_bufreq(inst, buftype, &bufreq); in venus_helper_alloc_dpb_bufs()
192 count = HFI_BUFREQ_COUNT_MIN(&bufreq, ver); in venus_helper_alloc_dpb_bufs()
237 struct hfi_buffer_requirements bufreq; in intbufs_set_buffer() local
243 ret = venus_helper_get_bufreq(inst, type, &bufreq); in intbufs_set_buffer()
247 if (!bufreq.size) in intbufs_set_buffer()
250 for (i = 0; i < bufreq.count_actual; i++) { in intbufs_set_buffer()
257 buf->type = bufreq.type; in intbufs_set_buffer()
258 buf->size = bufreq.size; in intbufs_set_buffer()
633 if (!hfi_plat || !hfi_plat->bufreq) in platform_get_bufreq()
[all …]
Dhfi_plat_bufs.h36 u32 buftype, struct hfi_buffer_requirements *bufreq);
Dvenc.c969 struct hfi_buffer_requirements bufreq; in venc_out_num_buffers() local
972 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_INPUT, &bufreq); in venc_out_num_buffers()
976 *num = bufreq.count_actual; in venc_out_num_buffers()
1123 struct hfi_buffer_requirements bufreq; in venc_verify_conf() local
1129 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_OUTPUT, &bufreq); in venc_verify_conf()
1133 if (inst->num_output_bufs < bufreq.count_actual || in venc_verify_conf()
1134 inst->num_output_bufs < HFI_BUFREQ_COUNT_MIN(&bufreq, ver)) in venc_verify_conf()
1137 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_INPUT, &bufreq); in venc_verify_conf()
1141 if (inst->num_input_bufs < bufreq.count_actual || in venc_verify_conf()
1142 inst->num_input_bufs < HFI_BUFREQ_COUNT_MIN(&bufreq, ver)) in venc_verify_conf()
Dvenc_ctrls.c353 struct hfi_buffer_requirements bufreq; in venc_op_g_volatile_ctrl() local
359 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_INPUT, &bufreq); in venc_op_g_volatile_ctrl()
361 ctrl->val = HFI_BUFREQ_COUNT_MIN(&bufreq, ver); in venc_op_g_volatile_ctrl()
Dhfi.h48 struct hfi_buffer_requirements bufreq[HFI_BUFFER_TYPE_MAX]; member
Dhfi_platform_v6.c331 .bufreq = hfi_plat_bufreq_v6,