Searched refs:bufreq (Results 1 – 7 of 7) sorted by relevance
/drivers/media/platform/qcom/venus/ |
D | hfi_msgs.c | 28 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() 334 struct hfi_buffer_requirements *bufreq) in session_get_prop_buf_req() argument 351 memcpy(&bufreq[idx], buf_req, sizeof(*bufreq)); in session_get_prop_buf_req() 380 memset(hprop->bufreq, 0, sizeof(hprop->bufreq)); in hfi_session_prop_info() 381 error = session_get_prop_buf_req(pkt, hprop->bufreq); in hfi_session_prop_info()
|
D | vdec_ctrls.c | 44 struct hfi_buffer_requirements bufreq; in vdec_op_g_volatile_ctrl() local 71 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_OUTPUT, &bufreq); in vdec_op_g_volatile_ctrl() 73 ctrl->val = HFI_BUFREQ_COUNT_MIN(&bufreq, ver); in vdec_op_g_volatile_ctrl()
|
D | hfi_helper.h | 1060 #define HFI_BUFREQ_HOLD_COUNT(bufreq, ver) \ argument 1061 ((ver) == HFI_VERSION_4XX ? 0 : (bufreq)->hold_count) 1062 #define HFI_BUFREQ_COUNT_MIN(bufreq, ver) \ argument 1063 ((ver) == HFI_VERSION_4XX ? (bufreq)->hold_count : (bufreq)->count_min) 1064 #define HFI_BUFREQ_COUNT_MIN_HOST(bufreq, ver) \ argument 1065 ((ver) == HFI_VERSION_4XX ? (bufreq)->count_min : 0)
|
D | vdec.c | 649 struct hfi_buffer_requirements bufreq; in vdec_output_conf() local 725 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_OUTPUT, &bufreq); in vdec_output_conf() 729 if (bufreq.size > inst->output_buf_size) in vdec_output_conf() 734 &bufreq); in vdec_output_conf() 738 if (bufreq.size > inst->output2_buf_size) in vdec_output_conf() 795 struct hfi_buffer_requirements bufreq; in vdec_num_buffers() local 800 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_INPUT, &bufreq); in vdec_num_buffers() 804 *in_num = HFI_BUFREQ_COUNT_MIN(&bufreq, ver); in vdec_num_buffers() 806 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_OUTPUT, &bufreq); in vdec_num_buffers() 810 *out_num = HFI_BUFREQ_COUNT_MIN(&bufreq, ver); in vdec_num_buffers() [all …]
|
D | venc.c | 764 struct hfi_buffer_requirements bufreq; in venc_out_num_buffers() local 771 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_INPUT, &bufreq); in venc_out_num_buffers() 773 *num = bufreq.count_actual; in venc_out_num_buffers() 846 struct hfi_buffer_requirements bufreq; in venc_verify_conf() local 852 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_OUTPUT, &bufreq); in venc_verify_conf() 856 if (inst->num_output_bufs < bufreq.count_actual || in venc_verify_conf() 857 inst->num_output_bufs < HFI_BUFREQ_COUNT_MIN(&bufreq, ver)) in venc_verify_conf() 860 ret = venus_helper_get_bufreq(inst, HFI_BUFFER_INPUT, &bufreq); in venc_verify_conf() 864 if (inst->num_input_bufs < bufreq.count_actual || in venc_verify_conf() 865 inst->num_input_bufs < HFI_BUFREQ_COUNT_MIN(&bufreq, ver)) in venc_verify_conf()
|
D | helpers.c | 125 struct hfi_buffer_requirements bufreq; in venus_helper_alloc_dpb_bufs() local 145 ret = venus_helper_get_bufreq(inst, buftype, &bufreq); in venus_helper_alloc_dpb_bufs() 149 count = HFI_BUFREQ_COUNT_MIN(&bufreq, ver); in venus_helper_alloc_dpb_bufs() 185 struct hfi_buffer_requirements bufreq; in intbufs_set_buffer() local 191 ret = venus_helper_get_bufreq(inst, type, &bufreq); in intbufs_set_buffer() 195 if (!bufreq.size) in intbufs_set_buffer() 198 for (i = 0; i < bufreq.count_actual; i++) { in intbufs_set_buffer() 205 buf->type = bufreq.type; in intbufs_set_buffer() 206 buf->size = bufreq.size; in intbufs_set_buffer() 573 if (hprop.bufreq[i].type != type) in venus_helper_get_bufreq() [all …]
|
D | hfi.h | 48 struct hfi_buffer_requirements bufreq[HFI_BUFFER_TYPE_MAX]; member
|