Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/media/platform/mtk-vcodec/venc/
Dvenc_vp8_if.c108 struct venc_vp8_vpu_buf work_bufs[VENC_VP8_VPU_WORK_BUF_MAX]; member
127 struct mtk_vcodec_mem work_bufs[VENC_VP8_VPU_WORK_BUF_MAX]; member
149 if (inst->work_bufs[i].size == 0) in vp8_enc_free_work_buf()
151 mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]); in vp8_enc_free_work_buf()
161 struct venc_vp8_vpu_buf *wb = inst->vsi->work_bufs; in vp8_enc_alloc_work_buf()
178 inst->work_bufs[i].size = wb[i].size; in vp8_enc_alloc_work_buf()
179 ret = mtk_vcodec_mem_alloc(inst->ctx, &inst->work_bufs[i]); in vp8_enc_alloc_work_buf()
197 memcpy(inst->work_bufs[i].va, tmp_va, wb[i].size); in vp8_enc_alloc_work_buf()
199 wb[i].iova = inst->work_bufs[i].dma_addr; in vp8_enc_alloc_work_buf()
203 i, inst->work_bufs[i].va, in vp8_enc_alloc_work_buf()
[all …]
Dvenc_h264_if.c118 struct venc_h264_vpu_buf work_bufs[VENC_H264_VPU_WORK_BUF_MAX]; member
138 struct mtk_vcodec_mem work_bufs[VENC_H264_VPU_WORK_BUF_MAX]; member
225 mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]); in h264_enc_free_work_buf()
237 struct venc_h264_vpu_buf *wb = inst->vsi->work_bufs; in h264_enc_alloc_work_buf()
258 inst->work_bufs[i].size = wb[i].size; in h264_enc_alloc_work_buf()
260 inst->work_bufs[i].va = vpu_mapping_dm_addr( in h264_enc_alloc_work_buf()
262 inst->work_bufs[i].dma_addr = 0; in h264_enc_alloc_work_buf()
265 &inst->work_bufs[i]); in h264_enc_alloc_work_buf()
282 memcpy(inst->work_bufs[i].va, tmp_va, in h264_enc_alloc_work_buf()
286 wb[i].iova = inst->work_bufs[i].dma_addr; in h264_enc_alloc_work_buf()
[all …]