cedrus_write
cedrus_write(dev, luma_reg, cedrus_dst_buf_addr(ctx, buf, 0));
cedrus_write(dev, chroma_reg, cedrus_dst_buf_addr(ctx, buf, 1));
cedrus_write(dev, VE_H264_OUTPUT_FRAME_IDX, position);
cedrus_write(dev, VE_H264_SHS_WP,
cedrus_write(dev, VE_AVC_SRAM_PORT_OFFSET,
cedrus_write(dev, VE_AVC_SRAM_PORT_DATA, val);
cedrus_write(dev, VE_AVC_SRAM_PORT_DATA, val);
cedrus_write(dev, VE_H264_TRIGGER_TYPE,
cedrus_write(dev, VE_H264_VLD_LEN, slice_bytes * 8);
cedrus_write(dev, VE_H264_VLD_OFFSET, 0);
cedrus_write(dev, VE_H264_VLD_END, src_buf_addr + slice_bytes);
cedrus_write(dev, VE_H264_VLD_ADDR,
cedrus_write(dev, VE_BUF_CTRL,
cedrus_write(dev, VE_DBLK_DRAM_BUF_ADDR,
cedrus_write(dev, VE_INTRAPRED_DRAM_BUF_ADDR,
cedrus_write(dev, VE_BUF_CTRL,
cedrus_write(dev, VE_H264_TRIGGER_TYPE,
cedrus_write(dev, VE_H264_PPS, reg);
cedrus_write(dev, VE_H264_SPS, reg);
cedrus_write(dev, VE_H264_SHS, reg);
cedrus_write(dev, VE_H264_SHS2, reg);
cedrus_write(dev, VE_H264_SHS_QP, reg);
cedrus_write(dev, VE_H264_STATUS, cedrus_read(dev, VE_H264_STATUS));
cedrus_write(dev, VE_H264_CTRL,
cedrus_write(dev, VE_H264_STATUS,
cedrus_write(dev, VE_AVC_SRAM_PORT_OFFSET, off << 2);
cedrus_write(dev, VE_H264_CTRL,
cedrus_write(dev, VE_H264_SDROT_CTRL, 0);
cedrus_write(dev, VE_H264_EXTRA_BUFFER1,
cedrus_write(dev, VE_H264_EXTRA_BUFFER2,
cedrus_write(dev, VE_AVC_SRAM_PORT_DATA, *buffer++);
cedrus_write(dev, VE_H264_TRIGGER_TYPE,
cedrus_write(dev, VE_DEC_H265_SRAM_DATA, *word++);
cedrus_write(dev, VE_DEC_H265_TRIGGER,
cedrus_write(dev, VE_DEC_H265_TRIGGER,
cedrus_write(dev, VE_DEC_H265_SCALING_LIST_DC_COEF0,
cedrus_write(dev, VE_DEC_H265_SCALING_LIST_DC_COEF1,
cedrus_write(dev, VE_DEC_H265_SRAM_DATA, val);
cedrus_write(dev, VE_DEC_H265_SRAM_DATA, val);
cedrus_write(dev, VE_DEC_H265_SRAM_DATA, val);
cedrus_write(dev, VE_DEC_H265_SRAM_DATA, val);
cedrus_write(dev, VE_DEC_H265_TILE_START_CTB, (y << 16) | (x << 0));
cedrus_write(dev, VE_DEC_H265_TILE_END_CTB,
cedrus_write(dev, VE_DEC_H265_BITS_OFFSET, 0);
cedrus_write(dev, VE_DEC_H265_BITS_LEN, reg);
cedrus_write(dev, VE_DEC_H265_BITS_ADDR, reg);
cedrus_write(dev, VE_DEC_H265_BITS_END_ADDR, reg);
cedrus_write(dev, VE_DEC_H265_DEC_CTB_ADDR, reg);
cedrus_write(dev, VE_DEC_H265_TILE_START_CTB, 0);
cedrus_write(dev, VE_DEC_H265_TILE_END_CTB, 0);
cedrus_write(dev, VE_DEC_H265_DEC_CTB_NUM, 0);
cedrus_write(dev, VE_DEC_H265_TRIGGER, VE_DEC_H265_TRIGGER_INIT_SWDEC);
cedrus_write(dev, VE_DEC_H265_DEC_NAL_HDR, reg);
cedrus_write(dev, VE_DEC_H265_DEC_SPS_HDR, reg);
cedrus_write(dev, VE_DEC_H265_DEC_PCM_CTRL, reg);
cedrus_write(dev, VE_DEC_H265_DEC_PPS_CTRL0, reg);
cedrus_write(dev, VE_DEC_H265_DEC_PPS_CTRL1, reg);
cedrus_write(dev, VE_DEC_H265_DEC_SLICE_HDR_INFO0, reg);
cedrus_write(dev, VE_DEC_H265_DEC_SLICE_HDR_INFO1, reg);
cedrus_write(dev, VE_DEC_H265_DEC_SLICE_HDR_INFO2, reg);
cedrus_write(dev, VE_DEC_H265_ENTRY_POINT_OFFSET_ADDR,
cedrus_write(dev, VE_DEC_H265_DEC_PIC_SIZE, reg);
cedrus_write(dev, VE_DEC_H265_SCALING_LIST_CTRL0, reg);
cedrus_write(dev, VE_DEC_H265_STATUS, VE_DEC_H265_STATUS_CHECK_MASK);
cedrus_write(dev, VE_DEC_H265_NEIGHBOR_INFO_ADDR, reg);
cedrus_write(dev, VE_DEC_H265_OUTPUT_FRAME_IDX, output_pic_list_index);
cedrus_write(dev, VE_DEC_H265_OFFSET_ADDR_FIRST_OUT, reg);
cedrus_write(dev, VE_DEC_H265_10BIT_CONFIGURE, reg);
cedrus_write(dev, VE_DEC_H265_CTRL, VE_DEC_H265_CTRL_IRQ_MASK);
cedrus_write(dev, VE_DEC_H265_CTRL, reg);
cedrus_write(dev, VE_DEC_H265_TRIGGER, VE_DEC_H265_TRIGGER_DEC_SLICE);
cedrus_write(dev, VE_DEC_H265_SRAM_OFFSET, offset);
cedrus_write(dev, VE_PRIMARY_OUT_FMT, reg);
cedrus_write(dev, VE_PRIMARY_CHROMA_BUF_LEN, reg);
cedrus_write(dev, VE_PRIMARY_FB_LINE_STRIDE, reg);
cedrus_write(dev, VE_PRIMARY_OUT_FMT, reg);
cedrus_write(dev, VE_CHROMA_BUF_LEN, reg);
cedrus_write(ctx->dev, VE_MODE, reg);
cedrus_write(dev, VE_MODE, VE_MODE_DISABLED);
cedrus_write(dev, VE_DEC_MPEG_MP12HDR, reg);
cedrus_write(dev, VE_DEC_MPEG_PICCODEDSIZE, reg);
cedrus_write(dev, VE_DEC_MPEG_PICBOUNDSIZE, reg);
cedrus_write(dev, VE_DEC_MPEG_REC_LUMA, dst_luma_addr);
cedrus_write(dev, VE_DEC_MPEG_REC_CHROMA, dst_chroma_addr);
cedrus_write(dev, VE_DEC_MPEG_VLD_OFFSET, 0);
cedrus_write(dev, VE_DEC_MPEG_VLD_LEN, reg);
cedrus_write(dev, VE_DEC_MPEG_VLD_ADDR, reg);
cedrus_write(dev, VE_DEC_MPEG_VLD_END_ADDR, reg);
cedrus_write(dev, VE_DEC_MPEG_MBADDR, reg);
cedrus_write(dev, VE_DEC_MPEG_ERROR, 0);
cedrus_write(dev, VE_DEC_MPEG_CRTMBADDR, 0);
cedrus_write(dev, VE_DEC_MPEG_CTRL, reg);
cedrus_write(dev, VE_DEC_MPEG_TRIGGER, reg);
cedrus_write(dev, VE_DEC_MPEG_STATUS, VE_DEC_MPEG_STATUS_CHECK_MASK);
cedrus_write(dev, VE_DEC_MPEG_CTRL, reg);
cedrus_write(dev, VE_DEC_MPEG_IQMINPUT, reg);
cedrus_write(dev, VE_DEC_MPEG_IQMINPUT, reg);
cedrus_write(dev, VE_H264_TRIGGER_TYPE,
cedrus_write(dev, VE_H264_STATUS,
cedrus_write(dev, VE_H264_TRIGGER_TYPE, VE_H264_TRIGGER_TYPE_VP8_UPDATE_COEF);
cedrus_write(dev, VE_H264_CTRL,
cedrus_write(dev, VE_H264_CTRL, VE_H264_CTRL_VP8);
cedrus_write(dev, VE_VP8_FIRST_DATA_PART_LEN, reg);
cedrus_write(dev, VE_VP8_PART_SIZE_OFFSET, reg);
cedrus_write(dev, VE_H264_VLD_LEN, reg);
cedrus_write(dev, VE_H264_VLD_OFFSET, reg);
cedrus_write(dev, VE_H264_VLD_END,
cedrus_write(dev, VE_H264_VLD_ADDR,
cedrus_write(dev, VE_H264_TRIGGER_TYPE,
cedrus_write(dev, VE_VP8_ENTROPY_PROBS_ADDR,
cedrus_write(dev, VE_VP8_PPS, reg);
cedrus_write(dev, VE_H264_CUR_MB_NUM, 0);
cedrus_write(dev, VE_H264_MB_ADDR, 0);
cedrus_write(dev, VE_H264_ERROR_CASE, 0);
cedrus_write(dev, VE_VP8_QP_INDEX_DELTA, reg);
cedrus_write(dev, VE_VP8_FSIZE, reg);
cedrus_write(dev, VE_VP8_PICSIZE, reg);
cedrus_write(dev, VE_VP8_SEGMENT_FEAT_MB_LV0, reg);
cedrus_write(dev, VE_VP8_SEGMENT_FEAT_MB_LV1, reg);
cedrus_write(dev, VE_VP8_REF_LF_DELTA, reg);
cedrus_write(dev, VE_VP8_MODE_LF_DELTA, reg);
cedrus_write(dev, VE_VP8_REC_LUMA, luma_addr);
cedrus_write(dev, VE_VP8_REC_CHROMA, chroma_addr);
cedrus_write(dev, VE_H264_CTRL, VE_H264_CTRL_VP8 |
cedrus_write(dev, VE_H264_TRIGGER_TYPE,