Searched refs:work_bufs (Results 1 – 2 of 2) sorted by relevance
107 struct venc_vp8_vpu_buf work_bufs[VENC_VP8_VPU_WORK_BUF_MAX]; member126 struct mtk_vcodec_mem work_bufs[VENC_VP8_VPU_WORK_BUF_MAX]; member148 if (inst->work_bufs[i].size == 0) in vp8_enc_free_work_buf()150 mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]); in vp8_enc_free_work_buf()160 struct venc_vp8_vpu_buf *wb = inst->vsi->work_bufs; in vp8_enc_alloc_work_buf()177 inst->work_bufs[i].size = wb[i].size; in vp8_enc_alloc_work_buf()178 ret = mtk_vcodec_mem_alloc(inst->ctx, &inst->work_bufs[i]); in vp8_enc_alloc_work_buf()198 memcpy(inst->work_bufs[i].va, tmp_va, wb[i].size); in vp8_enc_alloc_work_buf()200 wb[i].iova = inst->work_bufs[i].dma_addr; in vp8_enc_alloc_work_buf()204 i, inst->work_bufs[i].va, in vp8_enc_alloc_work_buf()[all …]
127 struct venc_h264_vpu_buf work_bufs[VENC_H264_VPU_WORK_BUF_MAX]; member147 struct mtk_vcodec_mem work_bufs[VENC_H264_VPU_WORK_BUF_MAX]; member235 mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]); in h264_enc_free_work_buf()247 struct venc_h264_vpu_buf *wb = inst->vsi->work_bufs; in h264_enc_alloc_work_buf()268 inst->work_bufs[i].size = wb[i].size; in h264_enc_alloc_work_buf()273 inst->work_bufs[i].va = in h264_enc_alloc_work_buf()275 inst->work_bufs[i].dma_addr = 0; in h264_enc_alloc_work_buf()278 &inst->work_bufs[i]); in h264_enc_alloc_work_buf()297 memcpy(inst->work_bufs[i].va, tmp_va, in h264_enc_alloc_work_buf()301 wb[i].iova = inst->work_bufs[i].dma_addr; in h264_enc_alloc_work_buf()[all …]