vpu_buf
struct vpu_vb2_buffer *vpu_buf;
vpu_buf = to_vpu_vb2_buffer(vbuf);
if (vpu_buf->fs_id < 0 || vpu_buf->fs_id >= vdec->slot_count) {
vpu_buf->fs_id, vbuf->vb2_buf.index);
if (vdec->slots[vpu_buf->fs_id].curr) {
if (vdec->slots[vpu_buf->fs_id].curr != vpu_buf) {
vdec->slots[vpu_buf->fs_id].pend = vpu_buf;
vpu_set_buffer_state(vbuf, vdec->slots[vpu_buf->fs_id].state);
inst->id, vpu_buf->fs_id, vbuf->vb2_buf.index);
info.id = vpu_buf->fs_id;
vpu_buf->luma = info.luma_addr;
vpu_buf->chroma_u = info.chroma_addr;
vpu_buf->chroma_v = 0;
vdec->slots[info.id].curr = vpu_buf;
struct vpu_vb2_buffer *vpu_buf;
vpu_buf = vdec->slots[id].curr;
vbuf = &vpu_buf->m2m_buf.vb;
if (vpu_buf->fs_id == id) {
if (vpu_buf->state != VPU_BUF_STATE_READY)
struct vpu_vb2_buffer *vpu_buf;
vpu_buf = vdec->slots[i].curr;
if (vpu_buf) {
vpu_buf->m2m_buf.vb.vb2_buf.index);
struct vpu_vb2_buffer *vpu_buf = to_vpu_vb2_buffer(vbuf);
if (vdec->slots[i].curr && vdec->slots[i].curr != vpu_buf) {
vdec->slots[i].pend = vpu_buf;
vpu_buf->fs_id = i;
vpu_buf->fs_id = i;
vpu_buf->fs_id = i;
struct vpu_vb2_buffer *vpu_buf;
vpu_buf = vdec->slots[info->id].curr;
if (!vpu_buf) {
vbuf = &vpu_buf->m2m_buf.vb;
struct vpu_vb2_buffer *vpu_buf;
vpu_buf = vdec_find_buffer(inst, frame->luma);
if (!vpu_buf) {
vbuf = &vpu_buf->m2m_buf.vb;
if (vpu_buf->fs_id != frame->id)
inst->id, vpu_buf->fs_id, vbuf->vb2_buf.index, frame->id);
vdec->slots[vpu_buf->fs_id].state = VPU_BUF_STATE_READY;
struct vpu_vb2_buffer *vpu_buf;
vpu_buf = to_vpu_vb2_buffer(vbuf);
if (vpu_buf->fs_id >= 0) {
num = scnprintf(str, sizeof(str), "; fs %d", vpu_buf->fs_id);
struct vpu_vb2_buffer *vpu_buf = to_vpu_vb2_buffer(vbuf);
vpu_buf->fs_id = -1;
struct vpu_vb2_buffer *vpu_buf = to_vpu_vb2_buffer(vbuf);
v4l2_ctrl_s_ctrl(ctrl, vpu_buf->average_qp);
struct vpu_vb2_buffer *vpu_buf = to_vpu_vb2_buffer(vbuf);
vpu_buf->state = state;
struct vpu_vb2_buffer *vpu_buf = to_vpu_vb2_buffer(vbuf);
return vpu_buf->state;
struct vpu_vb2_buffer *vpu_buf = to_vpu_vb2_buffer(vbuf);
vpu_buf->average_qp = qp;
struct vpu_buf *common_vb;
struct vpu_buf *common_vb;
struct vpu_buf vb_mv = {0};
struct vpu_buf vb_fbc_y_tbl = {0};
struct vpu_buf vb_fbc_c_tbl = {0};
struct vpu_buf vb_sub_sam_buf = {0};
struct vpu_buf vb_task = {0};
struct vpu_buf *common_vb;
struct vpu_buf vb_buf;
int wave5_vdi_allocate_dma_memory(struct vpu_device *vpu_dev, struct vpu_buf *vb)
int wave5_vdi_free_dma_memory(struct vpu_device *vpu_dev, struct vpu_buf *vb)
int wave5_vdi_allocate_array(struct vpu_device *vpu_dev, struct vpu_buf *array, unsigned int count,
struct vpu_buf vb_buf;
struct vpu_buf *vb = &vpu_dev->sram_buf;
struct vpu_buf *vb = &vpu_dev->sram_buf;
int wave5_vdi_clear_memory(struct vpu_device *vpu_dev, struct vpu_buf *vb)
int wave5_vdi_write_memory(struct vpu_device *vpu_dev, struct vpu_buf *vb, size_t offset,
struct vpu_buf *vframe = &inst->frame_vbuf[i];
struct vpu_buf *ring_buffer, dma_addr_t wr_ptr)
struct vpu_src_buffer *vpu_buf;
struct vpu_src_buffer *vpu_buf = wave5_to_vpu_src_buf(m2m_ctx->last_src_buf);
if (vpu_buf->consumed) {
while ((vpu_buf = inst_src_buf_remove(inst)) != NULL) {
struct vb2_v4l2_buffer *vbuf = &vpu_buf->v4l2_m2m_buf.vb;
struct vpu_buf *ring_buffer = &inst->bitstream_vbuf;
if (vpu_buf->consumed) {
vpu_buf->consumed = true;
struct vpu_src_buffer *vpu_buf = wave5_to_vpu_src_buf(vbuf);
vpu_buf->consumed = false;
INIT_LIST_HEAD(&vpu_buf->list);
list_add_tail(&vpu_buf->list, &inst->avail_src_bufs);
struct vpu_dst_buffer *vpu_buf = wave5_to_vpu_dst_buf(vbuf);
vpu_buf->display = false;
struct vpu_buf *ring_buffer = &inst->bitstream_vbuf;
struct vpu_src_buffer *vpu_buf;
while ((vpu_buf = inst_src_buf_remove(inst)) != NULL)
struct vpu_src_buffer *vpu_buf;
vpu_buf = wave5_to_vpu_src_buf(m2m_ctx->last_src_buf);
return vpu_buf->consumed;
struct vpu_buf vb_mv[MAX_REG_FRAME];
struct vpu_buf vb_fbc_y_tbl[MAX_REG_FRAME];
struct vpu_buf vb_fbc_c_tbl[MAX_REG_FRAME];
struct vpu_buf vb_work;
struct vpu_buf vb_task;
struct vpu_buf vb_work;
struct vpu_buf vb_mv; /* col_mv buffer */
struct vpu_buf vb_fbc_y_tbl; /* FBC luma table buffer */
struct vpu_buf vb_fbc_c_tbl; /* FBC chroma table buffer */
struct vpu_buf vb_sub_sam_buf; /* sub-sampled buffer for ME */
struct vpu_buf vb_task;
struct vpu_buf common_mem;
struct vpu_buf sram_buf;
struct vpu_buf frame_vbuf[MAX_REG_FRAME];
struct vpu_buf bitstream_vbuf;
int wave5_vdi_clear_memory(struct vpu_device *vpu_dev, struct vpu_buf *vb);
int wave5_vdi_allocate_dma_memory(struct vpu_device *vpu_dev, struct vpu_buf *vb);
int wave5_vdi_allocate_array(struct vpu_device *vpu_dev, struct vpu_buf *array, unsigned int count,
int wave5_vdi_write_memory(struct vpu_device *vpu_dev, struct vpu_buf *vb, size_t offset,
int wave5_vdi_free_dma_memory(struct vpu_device *vpu_dev, struct vpu_buf *vb);