Lines Matching refs:cmdbuf

899     psb_cmdbuf_p cmdbuf = ctx->obj_context->cmdbuf;  in psb__MPEG2_write_VLC_tables()  local
901 psb_cmdbuf_skip_start_block(cmdbuf, SKIP_ON_CONTEXT_SWITCH); in psb__MPEG2_write_VLC_tables()
904 psb_cmdbuf_dma_write_cmdbuf(cmdbuf, &ctx->vlc_packed_table, 0, in psb__MPEG2_write_VLC_tables()
910 psb_cmdbuf_reg_start_block(cmdbuf, 0); in psb__MPEG2_write_VLC_tables()
911 … psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC, CR_VEC_VLC_TABLE_ADDR0), ADDR0); in psb__MPEG2_write_VLC_tables()
912 … psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC, CR_VEC_VLC_TABLE_ADDR1), ADDR1); in psb__MPEG2_write_VLC_tables()
913 … psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC, CR_VEC_VLC_TABLE_ADDR2), ADDR2); in psb__MPEG2_write_VLC_tables()
914 … psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC, CR_VEC_VLC_TABLE_ADDR3), ADDR3); in psb__MPEG2_write_VLC_tables()
915 …psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC, CR_VEC_VLC_TABLE_INITIAL_WIDTH0), WIDTH0); in psb__MPEG2_write_VLC_tables()
916 … psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC, CR_VEC_VLC_TABLE_INITIAL_OPCODE0), OPCODE0); in psb__MPEG2_write_VLC_tables()
917 psb_cmdbuf_reg_end_block(cmdbuf); in psb__MPEG2_write_VLC_tables()
919 psb_cmdbuf_skip_end_block(cmdbuf); in psb__MPEG2_write_VLC_tables()
924 psb_cmdbuf_p cmdbuf = ctx->obj_context->cmdbuf; in psb__MPEG2_set_operating_mode() local
927 psb_cmdbuf_rendec_start(cmdbuf, RENDEC_REGISTER_OFFSET(MSVDX_CMDS, DISPLAY_PICTURE_SIZE)); in psb__MPEG2_set_operating_mode()
928 psb_cmdbuf_rendec_write(cmdbuf, ctx->display_picture_size); in psb__MPEG2_set_operating_mode()
929 psb_cmdbuf_rendec_write(cmdbuf, ctx->coded_picture_size); in psb__MPEG2_set_operating_mode()
930 psb_cmdbuf_rendec_write(cmdbuf, ctx->obj_context->operating_mode); in psb__MPEG2_set_operating_mode()
933 psb_cmdbuf_rendec_write_address(cmdbuf, &target_surface->buf, target_surface->buf.buffer_ofs); in psb__MPEG2_set_operating_mode()
936 …psb_cmdbuf_rendec_write_address(cmdbuf, &target_surface->buf, target_surface->buf.buffer_ofs + tar… in psb__MPEG2_set_operating_mode()
938 psb_cmdbuf_rendec_end(cmdbuf); in psb__MPEG2_set_operating_mode()
946 psb_cmdbuf_p cmdbuf = ctx->obj_context->cmdbuf; in psb__MPEG2_set_reference_pictures() local
950 psb_cmdbuf_skip_start_block(cmdbuf, SKIP_ON_CONTEXT_SWITCH); in psb__MPEG2_set_reference_pictures()
952 …psb_cmdbuf_rendec_start(cmdbuf, RENDEC_REGISTER_OFFSET(MSVDX_CMDS, REFERENCE_PICTURE_BASE_ADDRESSE… in psb__MPEG2_set_reference_pictures()
966 psb_cmdbuf_rendec_write(cmdbuf, 0); in psb__MPEG2_set_reference_pictures()
967 psb_cmdbuf_rendec_write(cmdbuf, 0); in psb__MPEG2_set_reference_pictures()
968 psb_cmdbuf_rendec_write(cmdbuf, 0); in psb__MPEG2_set_reference_pictures()
969 psb_cmdbuf_rendec_write(cmdbuf, 0); in psb__MPEG2_set_reference_pictures()
977 …psb_cmdbuf_rendec_write_address(cmdbuf, &ctx->forward_ref_surface->psb_surface->buf, ctx->forward_… in psb__MPEG2_set_reference_pictures()
980 …psb_cmdbuf_rendec_write_address(cmdbuf, &ctx->forward_ref_surface->psb_surface->buf, ctx->forward… in psb__MPEG2_set_reference_pictures()
984 psb_cmdbuf_rendec_write(cmdbuf, 0); in psb__MPEG2_set_reference_pictures()
985 psb_cmdbuf_rendec_write(cmdbuf, 0); in psb__MPEG2_set_reference_pictures()
989 … psb_cmdbuf_rendec_write_address(cmdbuf, &target_surface->buf, target_surface->buf.buffer_ofs); in psb__MPEG2_set_reference_pictures()
992 …psb_cmdbuf_rendec_write_address(cmdbuf, &target_surface->buf, target_surface->buf.buffer_ofs + tar… in psb__MPEG2_set_reference_pictures()
996 …psb_cmdbuf_rendec_write_address(cmdbuf, &ctx->forward_ref_surface->psb_surface->buf, ctx->forward_… in psb__MPEG2_set_reference_pictures()
999 …psb_cmdbuf_rendec_write_address(cmdbuf, &ctx->forward_ref_surface->psb_surface->buf, ctx->forward_… in psb__MPEG2_set_reference_pictures()
1007 …psb_cmdbuf_rendec_write_address(cmdbuf, &ctx->backward_ref_surface->psb_surface->buf, ctx->backwar… in psb__MPEG2_set_reference_pictures()
1010 …psb_cmdbuf_rendec_write_address(cmdbuf, &ctx->backward_ref_surface->psb_surface->buf, ctx->backwar… in psb__MPEG2_set_reference_pictures()
1014 …psb_cmdbuf_rendec_write_address(cmdbuf, &ctx->forward_ref_surface->psb_surface->buf, ctx->forward_… in psb__MPEG2_set_reference_pictures()
1017 …psb_cmdbuf_rendec_write_address(cmdbuf, &ctx->forward_ref_surface->psb_surface->buf, ctx->forward_… in psb__MPEG2_set_reference_pictures()
1021 psb_cmdbuf_rendec_end(cmdbuf); in psb__MPEG2_set_reference_pictures()
1024 psb_cmdbuf_skip_end_block(cmdbuf); in psb__MPEG2_set_reference_pictures()
1030 psb_cmdbuf_p cmdbuf = ctx->obj_context->cmdbuf; in psb__MPEG2_set_picture_header() local
1035 psb_cmdbuf_reg_start_block(cmdbuf, 0); in psb__MPEG2_set_picture_header()
1038 … psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC_MPEG2, CR_VEC_MPEG2_FE_PPS0) , ctx->FE_PPS0); in psb__MPEG2_set_picture_header()
1041 … psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC_MPEG2, CR_VEC_MPEG2_FE_PPS1) , ctx->FE_PPS1); in psb__MPEG2_set_picture_header()
1063 psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC_MPEG2, CR_VEC_MPEG2_FE_SLICE) , FE_slice); in psb__MPEG2_set_picture_header()
1072 psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC_MPEG2, CR_VEC_MPEG2_FE_SPS0) , FE_slice); in psb__MPEG2_set_picture_header()
1074 psb_cmdbuf_reg_end_block(cmdbuf); in psb__MPEG2_set_picture_header()
1078 psb_cmdbuf_rendec_start(cmdbuf, RENDEC_REGISTER_OFFSET(MSVDX_VEC, MPEG2_CR_VEC_MPEG2_BE_SPS0)); in psb__MPEG2_set_picture_header()
1080 psb_cmdbuf_rendec_write(cmdbuf, ctx->BE_SPS0); in psb__MPEG2_set_picture_header()
1081 psb_cmdbuf_rendec_write(cmdbuf, ctx->BE_SPS1); in psb__MPEG2_set_picture_header()
1082 psb_cmdbuf_rendec_write(cmdbuf, ctx->BE_PPS0); /* VEC Control register: Back-End MPEG2 PPS0 */ in psb__MPEG2_set_picture_header()
1083 psb_cmdbuf_rendec_write(cmdbuf, ctx->BE_PPS1); /* VEC Control register: Back-End MPEG2 PPS1 */ in psb__MPEG2_set_picture_header()
1084 psb_cmdbuf_rendec_write(cmdbuf, ctx->BE_PPS2); /* VEC Control register: Back-End MPEG2 PPS2 */ in psb__MPEG2_set_picture_header()
1138 psb_cmdbuf_rendec_write(cmdbuf, BE_slice); in psb__MPEG2_set_picture_header()
1140 psb_cmdbuf_rendec_end(cmdbuf); in psb__MPEG2_set_picture_header()
1147 psb_cmdbuf_p cmdbuf = ctx->obj_context->cmdbuf; in psb__MPEG2_set_slice_params() local
1151 psb_cmdbuf_rendec_start(cmdbuf, RENDEC_REGISTER_OFFSET(MSVDX_CMDS, SLICE_PARAMS)); in psb__MPEG2_set_slice_params()
1166 psb_cmdbuf_rendec_write(cmdbuf, cmd_data); in psb__MPEG2_set_slice_params()
1170 psb_cmdbuf_rendec_end(cmdbuf); in psb__MPEG2_set_slice_params()
1175 psb_cmdbuf_p cmdbuf = ctx->obj_context->cmdbuf; in psb__MPEG2_write_qmatrices() local
1181 psb_cmdbuf_rendec_start(cmdbuf, REG_MSVDX_VEC_IQRAM_OFFSET); in psb__MPEG2_write_qmatrices()
1187 psb_cmdbuf_rendec_write(cmdbuf, ctx->qmatrix_data[NONINTRA_LUMA_Q][i]); in psb__MPEG2_write_qmatrices()
1192 psb_cmdbuf_rendec_write(cmdbuf, ctx->qmatrix_data[INTRA_LUMA_Q][i]); in psb__MPEG2_write_qmatrices()
1196 psb_cmdbuf_rendec_end(cmdbuf); in psb__MPEG2_write_qmatrices()
1201 psb_cmdbuf_p cmdbuf = ctx->obj_context->cmdbuf; in psb__MPEG2_set_ent_dec() local
1205 psb_cmdbuf_reg_start_block(cmdbuf, 0); in psb__MPEG2_set_ent_dec()
1211 psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC, CR_VEC_ENTDEC_FE_CONTROL), cmd_data); in psb__MPEG2_set_ent_dec()
1213 psb_cmdbuf_reg_end_block(cmdbuf); in psb__MPEG2_set_ent_dec()
1215 psb_cmdbuf_rendec_start(cmdbuf, RENDEC_REGISTER_OFFSET(MSVDX_VEC, CR_VEC_ENTDEC_BE_CONTROL)); in psb__MPEG2_set_ent_dec()
1230 psb_cmdbuf_rendec_write(cmdbuf, cmd_data); in psb__MPEG2_set_ent_dec()
1232 psb_cmdbuf_rendec_end(cmdbuf); in psb__MPEG2_set_ent_dec()
1234 psb_cmdbuf_rendec_start(cmdbuf, RENDEC_REGISTER_OFFSET(MSVDX_CMDS, MC_CACHE_CONFIGURATION)); in psb__MPEG2_set_ent_dec()
1238 psb_cmdbuf_rendec_write(cmdbuf, cmd_data); in psb__MPEG2_set_ent_dec()
1239 psb_cmdbuf_rendec_end(cmdbuf); in psb__MPEG2_set_ent_dec()
1287 psb_cmdbuf_p cmdbuf = ctx->obj_context->cmdbuf; in psb__MEPG2_send_highlevel_cmd() local
1291 psb_cmdbuf_reg_start_block(cmdbuf, 0); in psb__MEPG2_send_highlevel_cmd()
1292 …psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_CMDS, DISPLAY_PICTURE_SIZE), ctx->display_picture… in psb__MEPG2_send_highlevel_cmd()
1293 …psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_CMDS, CODED_PICTURE_SIZE), ctx->coded_picture_siz… in psb__MEPG2_send_highlevel_cmd()
1301 psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_CMDS, OPERATING_MODE), cmd); in psb__MEPG2_send_highlevel_cmd()
1303 …psb_cmdbuf_reg_set_RELOC(cmdbuf, REGISTER_OFFSET(MSVDX_CMDS, LUMA_RECONSTRUCTED_PICTURE_BASE_ADDRE… in psb__MEPG2_send_highlevel_cmd()
1306 …psb_cmdbuf_reg_set_RELOC(cmdbuf, REGISTER_OFFSET(MSVDX_CMDS, CHROMA_RECONSTRUCTED_PICTURE_BASE_ADD… in psb__MEPG2_send_highlevel_cmd()
1309 …psb_cmdbuf_reg_set_RELOC(cmdbuf, REGISTER_OFFSET(MSVDX_CMDS, REFERENCE_PICTURE_BASE_ADDRESSES) + (… in psb__MEPG2_send_highlevel_cmd()
1312 …psb_cmdbuf_reg_set_RELOC(cmdbuf, REGISTER_OFFSET(MSVDX_CMDS, REFERENCE_PICTURE_BASE_ADDRESSES) + 4… in psb__MEPG2_send_highlevel_cmd()
1315 …psb_cmdbuf_reg_set_RELOC(cmdbuf, REGISTER_OFFSET(MSVDX_CMDS, REFERENCE_PICTURE_BASE_ADDRESSES) + (… in psb__MEPG2_send_highlevel_cmd()
1318 …psb_cmdbuf_reg_set_RELOC(cmdbuf, REGISTER_OFFSET(MSVDX_CMDS, REFERENCE_PICTURE_BASE_ADDRESSES) + 4… in psb__MEPG2_send_highlevel_cmd()
1324 psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_CMDS, SLICE_PARAMS), cmd); in psb__MEPG2_send_highlevel_cmd()
1326 psb_cmdbuf_reg_end_block(cmdbuf); in psb__MEPG2_send_highlevel_cmd()
1329 psb_cmdbuf_reg_start_block(cmdbuf, 0); in psb__MEPG2_send_highlevel_cmd()
1330 … psb_cmdbuf_reg_set_RELOC(cmdbuf, REGISTER_OFFSET(MSVDX_CMDS, VC1_LUMA_RANGE_MAPPING_BASE_ADDRESS), in psb__MEPG2_send_highlevel_cmd()
1333 …psb_cmdbuf_reg_set_RELOC(cmdbuf, REGISTER_OFFSET(MSVDX_CMDS, VC1_CHROMA_RANGE_MAPPING_BASE_ADDRESS… in psb__MEPG2_send_highlevel_cmd()
1335 psb_cmdbuf_reg_end_block(cmdbuf); in psb__MEPG2_send_highlevel_cmd()
1344 psb_cmdbuf_p cmdbuf = ctx->obj_context->cmdbuf; in psb__MEPG2_send_blit_cmd() local
1347 psb_cmdbuf_reg_start_block(cmdbuf, 0); in psb__MEPG2_send_blit_cmd()
1353 … psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_CMDS, ALTERNATIVE_OUTPUT_PICTURE_ROTATION), cmd); in psb__MEPG2_send_blit_cmd()
1354 psb_cmdbuf_reg_end_block(cmdbuf); in psb__MEPG2_send_blit_cmd()
1356 *cmdbuf->cmd_idx++ = 0x40000000; /* CMD_BLIT_CMD */ in psb__MEPG2_send_blit_cmd()
1357 *cmdbuf->cmd_idx++ = ctx->picture_width_mb; in psb__MEPG2_send_blit_cmd()
1358 *cmdbuf->cmd_idx++ = ctx->picture_height_mb; /* FIXME */ in psb__MEPG2_send_blit_cmd()
1359 *cmdbuf->cmd_idx++ = CMD_COMPLETION; in psb__MEPG2_send_blit_cmd()
1364 psb_cmdbuf_p cmdbuf = ctx->obj_context->cmdbuf; in psb__MPEG2_insert_blit_cmd_to_rotate() local
1367 *cmdbuf->cmd_idx++ = CMD_HEADER_VC1; in psb__MPEG2_insert_blit_cmd_to_rotate()
1369 ctx->dec_ctx.p_range_mapping_base0 = cmdbuf->cmd_idx++; in psb__MPEG2_insert_blit_cmd_to_rotate()
1370 ctx->dec_ctx.p_range_mapping_base1 = cmdbuf->cmd_idx++; in psb__MPEG2_insert_blit_cmd_to_rotate()
1375 ctx->dec_ctx.p_slice_params = cmdbuf->cmd_idx; in psb__MPEG2_insert_blit_cmd_to_rotate()
1376 *cmdbuf->cmd_idx++ = 0; /* ui32SliceParams */ in psb__MPEG2_insert_blit_cmd_to_rotate()
1378 *cmdbuf->cmd_idx++ = 0; /* skip two lldma addr field */ in psb__MPEG2_insert_blit_cmd_to_rotate()
1379 *cmdbuf->cmd_idx++ = 0; in psb__MPEG2_insert_blit_cmd_to_rotate()
1381 ctx->dec_ctx.slice_first_pic_last = cmdbuf->cmd_idx++; in psb__MPEG2_insert_blit_cmd_to_rotate()