Lines Matching defs:ref
451 dma_addr_t ref;
453 ref = hantro_get_ref(ctx, hdr->last_frame_ts);
454 if (!ref) {
457 ref = vb2_dma_contig_plane_dma_addr(&vb2_dst->vb2_buf, 0);
459 vdpu_write_relaxed(vpu, ref, VDPU_REG_VP8_ADDR_REF0);
461 ref = hantro_get_ref(ctx, hdr->golden_frame_ts);
462 if (!ref && hdr->golden_frame_ts)
465 if (!ref)
466 ref = vb2_dma_contig_plane_dma_addr(&vb2_dst->vb2_buf, 0);
468 ref |= VDPU_REG_VP8_GREF_SIGN_BIAS;
469 vdpu_write_relaxed(vpu, ref, VDPU_REG_VP8_ADDR_REF2_5(2));
471 ref = hantro_get_ref(ctx, hdr->alt_frame_ts);
472 if (!ref && hdr->alt_frame_ts)
475 if (!ref)
476 ref = vb2_dma_contig_plane_dma_addr(&vb2_dst->vb2_buf, 0);
478 ref |= VDPU_REG_VP8_AREF_SIGN_BIAS;
479 vdpu_write_relaxed(vpu, ref, VDPU_REG_VP8_ADDR_REF2_5(3));