Home
last modified time | relevance | path

Searched refs:work_bufs (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/drivers/media/platform/mediatek/vcodec/venc/
Dvenc_vp8_if.c107 struct venc_vp8_vpu_buf work_bufs[VENC_VP8_VPU_WORK_BUF_MAX]; member
126 struct mtk_vcodec_mem work_bufs[VENC_VP8_VPU_WORK_BUF_MAX]; member
148 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 …]
Dvenc_h264_if.c127 struct venc_h264_vpu_buf work_bufs[VENC_H264_VPU_WORK_BUF_MAX]; member
147 struct mtk_vcodec_mem work_bufs[VENC_H264_VPU_WORK_BUF_MAX]; member
239 mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]); in h264_enc_free_work_buf()
251 struct venc_h264_vpu_buf *wb = inst->vsi->work_bufs; in h264_enc_alloc_work_buf()
272 inst->work_bufs[i].size = wb[i].size; in h264_enc_alloc_work_buf()
277 inst->work_bufs[i].va = in h264_enc_alloc_work_buf()
279 inst->work_bufs[i].dma_addr = 0; in h264_enc_alloc_work_buf()
282 &inst->work_bufs[i]); in h264_enc_alloc_work_buf()
301 memcpy(inst->work_bufs[i].va, tmp_va, in h264_enc_alloc_work_buf()
305 wb[i].iova = inst->work_bufs[i].dma_addr; in h264_enc_alloc_work_buf()
[all …]