/openbmc/linux/drivers/media/platform/qcom/venus/ |
H A D | hfi_plat_bufs_v6.c | 1183 struct hfi_buffer_requirements *bufreq) in bufreq_dec() argument 1218 out_min_count = max(out_min_count, hfi_bufreq_get_count_min(bufreq, version)); in bufreq_dec() 1220 bufreq->type = buftype; in bufreq_dec() 1221 bufreq->region_size = 0; in bufreq_dec() 1222 bufreq->count_actual = 1; in bufreq_dec() 1223 hfi_bufreq_set_count_min(bufreq, version, 1); in bufreq_dec() 1224 hfi_bufreq_set_hold_count(bufreq, version, 1); in bufreq_dec() 1225 bufreq->contiguous = 1; in bufreq_dec() 1226 bufreq->alignment = 256; in bufreq_dec() 1229 hfi_bufreq_set_count_min(bufreq, version, MIN_INPUT_BUFFERS); in bufreq_dec() [all …]
|
H A D | hfi_msgs.c | 33 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_get_count_min(bufreq, ver); in event_seq_changed() 103 data_ptr += sizeof(*bufreq); in event_seq_changed() 381 struct hfi_buffer_requirements *bufreq) in session_get_prop_buf_req() argument 398 memcpy(&bufreq[idx], buf_req, sizeof(*bufreq)); in session_get_prop_buf_req() 427 memset(hprop->bufreq, 0, sizeof(hprop->bufreq)); in hfi_session_prop_info() 428 error = session_get_prop_buf_req(pkt, hprop->bufreq); in hfi_session_prop_info()
|
H A D | vdec_ctrls.c | 53 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_get_count_min(&bufreq, ver); in vdec_op_g_volatile_ctrl()
|
H A D | hfi_platform.h | 55 int (*bufreq)(struct hfi_plat_buffers_params *params, u32 session_type, member 56 u32 buftype, struct hfi_buffer_requirements *bufreq);
|
H A D | vdec.c | 747 struct hfi_buffer_requirements bufreq; in vdec_output_conf() local 827 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_OUTPUT, &bufreq); in vdec_output_conf() 831 if (bufreq.size > inst->output_buf_size) in vdec_output_conf() 836 &bufreq); in vdec_output_conf() 840 if (bufreq.size > inst->output2_buf_size) in vdec_output_conf() 893 struct hfi_buffer_requirements bufreq; in vdec_num_buffers() local 898 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_INPUT, &bufreq); in vdec_num_buffers() 902 *in_num = hfi_bufreq_get_count_min(&bufreq, ver); in vdec_num_buffers() 904 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_OUTPUT, &bufreq); in vdec_num_buffers() 908 *out_num = hfi_bufreq_get_count_min(&bufreq, ver); in vdec_num_buffers() [all …]
|
H A D | helpers.c | 167 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_get_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() 630 if (!hfi_plat || !hfi_plat->bufreq) in platform_get_bufreq() [all …]
|
H A D | hfi_plat_bufs.h | 39 u32 buftype, struct hfi_buffer_requirements *bufreq);
|
H A D | venc.c | 1045 struct hfi_buffer_requirements bufreq; in venc_out_num_buffers() local 1048 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_INPUT, &bufreq); in venc_out_num_buffers() 1052 *num = bufreq.count_actual; in venc_out_num_buffers() 1199 struct hfi_buffer_requirements bufreq; in venc_verify_conf() local 1205 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_OUTPUT, &bufreq); in venc_verify_conf() 1209 if (inst->num_output_bufs < bufreq.count_actual || in venc_verify_conf() 1210 inst->num_output_bufs < hfi_bufreq_get_count_min(&bufreq, ver)) in venc_verify_conf() 1213 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_INPUT, &bufreq); in venc_verify_conf() 1217 if (inst->num_input_bufs < bufreq.count_actual || in venc_verify_conf() 1218 inst->num_input_bufs < hfi_bufreq_get_count_min(&bufreq, ver)) in venc_verify_conf()
|
H A D | venc_ctrls.c | 353 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_get_count_min(&bufreq, ver); in venc_op_g_volatile_ctrl()
|
H A D | hfi.h | 48 struct hfi_buffer_requirements bufreq[HFI_BUFFER_TYPE_MAX]; member
|
H A D | hfi_platform_v6.c | 331 .bufreq = hfi_plat_bufreq_v6,
|