Home
last modified time | relevance | path

Searched refs:cmd_idx (Results 1 – 25 of 33) sorted by relevance

12

/hardware/intel/img/psb_video/src/
Dvsp_cmdbuf.h49 unsigned int *cmd_idx; member
89 do { *cmdbuf->cmd_idx++ = context_id; *cmdbuf->cmd_idx++ = type;\
90 VSP_RELOC_CMDBUF(cmdbuf->cmd_idx++, offset, ref_buf);\
91 *cmdbuf->cmd_idx++ = size; *cmdbuf->cmd_idx++ = 0;\
92 *cmdbuf->cmd_idx++ = 0; *cmdbuf->cmd_idx++ = 0; \
93 *cmdbuf->cmd_idx++ = wsbmKBufHandle(wsbmKBuf((ref_buf)->drm_buf));} while(0)
99cmd_idx++ = 0; *cmdbuf->cmd_idx++ = VspFencePictureParamCommand; *cmdbuf->cmd_idx++ = pic_param_ha…
102 do { *cmdbuf->cmd_idx++ = VSP_API_GENERIC_CONTEXT_ID; \
103 *cmdbuf->cmd_idx++ = type; \
104 *cmdbuf->cmd_idx++ = buffer; \
[all …]
Dtng_cmdbuf.c134 cmdbuf->cmd_idx = NULL; in tng_cmdbuf_create()
235 cmdbuf->cmd_idx = NULL; in tng_cmdbuf_reset()
250 cmdbuf->cmd_idx = (IMG_UINT32 *) cmdbuf->cmd_base; in tng_cmdbuf_reset()
269 cmdbuf->cmd_idx = NULL; in tng_cmdbuf_unmap()
411 *cmdbuf->cmd_idx++ = cmd_word; in tng_cmdbuf_insert_command()
415 *cmdbuf->cmd_idx++ = cmd_data; in tng_cmdbuf_insert_command()
419 *cmdbuf->cmd_idx++ = (IMG_UINT32)data_addr; in tng_cmdbuf_insert_command()
422 __FUNCTION__, *(cmdbuf->cmd_idx)); in tng_cmdbuf_insert_command()
426 TNG_RELOC_CMDBUF_START(cmdbuf->cmd_idx, offset, data_addr); in tng_cmdbuf_insert_command()
428 tng_cmdbuf_set_phys(cmdbuf->cmd_idx, 0, data_addr, offset, 0); in tng_cmdbuf_insert_command()
[all …]
Dpsb_drv_debug.c616 void debug_dump_cmdbuf(uint32_t *cmd_idx, uint32_t cmd_size_in_bytes) in debug_dump_cmdbuf() argument
619 uint32_t *cmd_end = cmd_idx + cmd_size; in debug_dump_cmdbuf()
620 unsigned char *cmd_start = (unsigned char *)cmd_idx; in debug_dump_cmdbuf()
638 …DBH("CMD BUFFER [%08x] - [%08x], %08x bytes, %08x dwords\n", (uint32_t) cmd_idx, cmd_end, cmd_size… in debug_dump_cmdbuf()
639 while (cmd_idx < cmd_end) { in debug_dump_cmdbuf()
640 uint32_t cmd = *cmd_idx; in debug_dump_cmdbuf()
645 DB("CMD_NOPE\n", cmd_idx); in debug_dump_cmdbuf()
646 cmd_idx++; in debug_dump_cmdbuf()
652 DB("CMD_REGVALPAIR_WRITE count = 0x%08x\n", cmd_idx, count); in debug_dump_cmdbuf()
653 cmd_idx++; in debug_dump_cmdbuf()
[all …]
Dpsb_cmdbuf.c111 cmdbuf->cmd_idx = NULL; in psb_cmdbuf_create()
184 cmdbuf->cmd_idx = NULL; in psb_cmdbuf_reset()
212 cmdbuf->cmd_idx = (uint32_t *) cmdbuf->cmd_base; in psb_cmdbuf_reset()
236 cmdbuf->cmd_idx = NULL; in psb_cmdbuf_unmap()
621 uint32_t bytes_used = ((unsigned char *) cmdbuf->cmd_idx - cmdbuf->cmd_start) % MTX_SEG_SIZE; in psb_cmdbuf_close_segment()
622 unsigned char *segment_start = (unsigned char *) cmdbuf->cmd_idx - bytes_used; in psb_cmdbuf_close_segment()
743 uint32_t cmdbuffer_size = (unsigned char *) cmdbuf->cmd_idx - cmdbuf->cmd_start; // In bytes in psb_context_submit_cmdbuf()
755 debug_cmd_size[cmdbuf->cmd_count] = (unsigned char *) cmdbuf->cmd_idx - cmdbuf->cmd_start; in psb_context_submit_cmdbuf()
777 *cmdbuf->cmd_idx = 0; // Add a trailing 0 just in case. in psb_context_submit_cmdbuf()
779 ASSERT((unsigned char *) cmdbuf->cmd_idx < CMD_END(cmdbuf)); in psb_context_submit_cmdbuf()
[all …]
Dtng_cmdbuf.h84 IMG_UINT32 *cmd_idx; member
228 do { *cmdbuf->cmd_idx++ = param; } while(0)
232 …do { *cmdbuf->cmd_idx++ = topaz_reg; *cmdbuf->cmd_idx++ = base + offset; *cmdbuf->cmd_idx++ = valu…
Dpnw_cmdbuf.h74 uint32_t *cmd_idx; member
184 do { *cmdbuf->cmd_idx++ = param; } while(0)
188 do { *cmdbuf->cmd_idx++ = base + offset; *cmdbuf->cmd_idx++ = value; count++; } while(0)
Dpnw_cmdbuf.c84 cmdbuf->cmd_idx = NULL; in pnw_cmdbuf_create()
174 cmdbuf->cmd_idx = NULL; in pnw_cmdbuf_reset()
187 cmdbuf->cmd_idx = (uint32_t *) cmdbuf->cmd_base; in pnw_cmdbuf_reset()
206 cmdbuf->cmd_idx = NULL; in pnw_cmdbuf_unmap()
333 *cmdbuf->cmd_idx++ = cmd_word; in pnw_cmdbuf_insert_command_package()
337 RELOC_CMDBUF_PNW(cmdbuf->cmd_idx, offset, command_data); in pnw_cmdbuf_insert_command_package()
338 cmdbuf->cmd_idx++; in pnw_cmdbuf_insert_command_package()
340 *cmdbuf->cmd_idx++ = 0; in pnw_cmdbuf_insert_command_package()
344 *cmdbuf->cmd_idx++ = 0; /* Write back buffer address */ in pnw_cmdbuf_insert_command_package()
346 *cmdbuf->cmd_idx++ = 0; /*ctx->CmdCount; */ /* Write back value */ in pnw_cmdbuf_insert_command_package()
[all …]
Dvsp_vp8.c481 *cmdbuf->cmd_idx++ = CONTEXT_VP8_ID; in vsp_vp8_process_picture_param()
482 *cmdbuf->cmd_idx++ = VssVp8encEncodeFrameCommand; in vsp_vp8_process_picture_param()
483 VSP_RELOC_CMDBUF(cmdbuf->cmd_idx++, ctx->pic_param_offset, &cmdbuf->param_mem); in vsp_vp8_process_picture_param()
484 *cmdbuf->cmd_idx++ = sizeof(struct VssVp8encPictureParameterBuffer); in vsp_vp8_process_picture_param()
485 *cmdbuf->cmd_idx++ = 0; in vsp_vp8_process_picture_param()
486 *cmdbuf->cmd_idx++ = 0; in vsp_vp8_process_picture_param()
487 *cmdbuf->cmd_idx++ = wsbmKBufHandle(wsbmKBuf(pObj->psb_buffer->drm_buf)) ; in vsp_vp8_process_picture_param()
488 *cmdbuf->cmd_idx++ = wsbmKBufHandle(wsbmKBuf((&cmdbuf->param_mem)->drm_buf)); in vsp_vp8_process_picture_param()
793 unsigned int i, cmd_idx; in vsp_vp8_dump_commands() local
794 … unsigned int cmdbuffer_size = (unsigned char *)cmdbuf->cmd_idx - cmdbuf->cmd_start; /* In bytes */ in vsp_vp8_dump_commands()
[all …]
Dpsb_cmdbuf.h78 uint32_t *cmd_idx; member
269 do { *cmdbuf->cmd_idx++ = reg; RELOC(*cmdbuf->cmd_idx++, buffer_offset, buffer); } while (0)
287 do { *cmdbuf->cmd_idx++ = val; } while(0)
Dtng_hostbias.c516 *cmdbuf->cmd_idx++ = cmd_word; in tng__H263ES_load_bias_tables()
517 pCount = cmdbuf->cmd_idx; in tng__H263ES_load_bias_tables()
518 cmdbuf->cmd_idx++; in tng__H263ES_load_bias_tables()
572 *cmdbuf->cmd_idx++ = cmd_word; in tng__MPEG4_load_bias_tables()
573 pCount = cmdbuf->cmd_idx; in tng__MPEG4_load_bias_tables()
574 cmdbuf->cmd_idx++; in tng__MPEG4_load_bias_tables()
635 *cmdbuf->cmd_idx++ = cmd_word; in tng__H264ES_load_bias_tables()
636 pCount = cmdbuf->cmd_idx; in tng__H264ES_load_bias_tables()
637 cmdbuf->cmd_idx++; in tng__H264ES_load_bias_tables()
Dvsp_cmdbuf.c58 cmdbuf->cmd_idx = NULL; in vsp_cmdbuf_create()
118 cmdbuf->cmd_idx = NULL; in vsp_cmdbuf_reset()
131 cmdbuf->cmd_idx = (uint32_t *) cmdbuf->cmd_base; in vsp_cmdbuf_reset()
151 cmdbuf->cmd_idx = NULL; in vsp_cmdbuf_unmap()
409 unsigned int cmdbuffer_size = (unsigned char *)cmdbuf->cmd_idx - cmdbuf->cmd_start; /* In bytes */ in vsp_context_flush_cmdbuf()
412 ASSERT((void *) cmdbuf->cmd_idx < CMD_END(cmdbuf)); in vsp_context_flush_cmdbuf()
Dtng_yuv_processor.c183 *cmdbuf->cmd_idx++ = CMD_DEBLOCK | CMD_DEBLOCK_TYPE_SKIP; in tng__yuv_processor_process()
184 *cmdbuf->cmd_idx++ = 0; in tng__yuv_processor_process()
185 *cmdbuf->cmd_idx++ = ctx->coded_width / 16; in tng__yuv_processor_process()
186 *cmdbuf->cmd_idx++ = ctx->coded_height / 16; in tng__yuv_processor_process()
187 *cmdbuf->cmd_idx++ = 0; in tng__yuv_processor_process()
188 *cmdbuf->cmd_idx++ = 0; in tng__yuv_processor_process()
Dpnw_MPEG2.c1356 *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()
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()
[all …]
Dpsb_drv_debug.h133 void debug_dump_cmdbuf(uint32_t *cmd_idx, uint32_t cmd_size_in_bytes);
Dpnw_hostcode.c197 *cmdbuf->cmd_idx++ = cmd_word; in LoadMPEG4Bias()
198 pCount = cmdbuf->cmd_idx; in LoadMPEG4Bias()
199 cmdbuf->cmd_idx++; in LoadMPEG4Bias()
253 *cmdbuf->cmd_idx++ = cmd_word; in LoadH263Bias()
254 pCount = cmdbuf->cmd_idx; in LoadH263Bias()
255 cmdbuf->cmd_idx++; in LoadH263Bias()
310 *cmdbuf->cmd_idx++ = cmd_word; in LoadH264Bias()
311 pCount = cmdbuf->cmd_idx; in LoadH264Bias()
312 cmdbuf->cmd_idx++; in LoadH264Bias()
624 … *cmdbuf->cmd_idx++ = ((MTX_CMDID_SW_NEW_CODEC & MTX_CMDWORD_ID_MASK) << MTX_CMDWORD_ID_SHIFT) | in pnw_BeginPicture()
[all …]
/hardware/intel/img/psb_video/src/mrst/
Dlnc_cmdbuf.h59 uint32_t *cmd_idx; member
158 do { *cmdbuf->cmd_idx++ = ((cmdhdr) << 1) | ((size)<<8) | ((hint)<<16); } while(0)
161 do { *cmdbuf->cmd_idx++ = param; } while(0)
Dlnc_cmdbuf.c83 cmdbuf->cmd_idx = NULL; in lnc_cmdbuf_create()
170 cmdbuf->cmd_idx = NULL; in lnc_cmdbuf_reset()
183 cmdbuf->cmd_idx = (uint32_t *) cmdbuf->cmd_base; in lnc_cmdbuf_reset()
202 cmdbuf->cmd_idx = NULL; in lnc_cmdbuf_unmap()
531 …unsigned int cmdbuffer_size = (unsigned char *) cmdbuf->cmd_idx - cmdbuf->cmd_start; /* In bytes */ in lnc_context_flush_cmdbuf()
534 ASSERT((unsigned char *) cmdbuf->cmd_idx < CMD_END(cmdbuf)); in lnc_context_flush_cmdbuf()
Dpsb_MPEG2MC.c541 uint32_t *save_idx = ctx->obj_context->cmdbuf->cmd_idx; in psb__MPEG2MC_finalise_residDMA()
542 ctx->obj_context->cmdbuf->cmd_idx = ctx->lldma_idx; in psb__MPEG2MC_finalise_residDMA()
562 *ctx->obj_context->cmdbuf->cmd_idx = 0xf000000; in psb__MPEG2MC_finalise_residDMA()
564 ctx->obj_context->cmdbuf->cmd_idx = save_idx; in psb__MPEG2MC_finalise_residDMA()
579 … ctx->lldma_idx = ctx->obj_context->cmdbuf->cmd_idx++; /* Insert the LLDMA record here later */ in psb__MPEG2MC_check_segment_residDMA()
614 ctx->lldma_idx = ctx->obj_context->cmdbuf->cmd_idx++; /* Insert the LLDMA record here later */ in psb__MPEG2MC_send_slice_parameters()
870 cmd_start = (unsigned char *) cmdbuf->cmd_idx; in psb__MPEG2MC_process_mbs_interPB()
919 *cmdbuf->cmd_idx++ = CMD_COMPLETION; in psb__MPEG2MC_process_mbs_interPB()
928 …(1 || (cmdbuf->lldma_base - (unsigned char *) cmdbuf->cmd_idx) < ((unsigned char *) cmdbuf->cmd_id… in psb__MPEG2MC_process_mbs_interPB()
1066 cmd_start = (unsigned char *) cmdbuf->cmd_idx; in psb__MPEG2MC_process_mbs_intra()
[all …]
Dpsb_MPEG2.c1266 *cmdbuf->cmd_idx++ = CMD_COMPLETION; in psb__MPEG2_write_kick()
1274 *cmdbuf->cmd_idx++ = CMD_HEADER; in psb__MPEG2_FE_state()
1276 ctx->p_slice_params = cmdbuf->cmd_idx; in psb__MPEG2_FE_state()
1277 *cmdbuf->cmd_idx++ = 0; /* ui32SliceParams */ in psb__MPEG2_FE_state()
1279 cmdbuf->cmd_idx++; /* skip two lldma addr field */ in psb__MPEG2_FE_state()
1281 cmdbuf->cmd_idx++; in psb__MPEG2_FE_state()
1482 *cmdbuf->cmd_idx++ = 0x40000000; /* CMD_BLIT_CMD */ in psb__MEPG2_send_blit_cmd()
1483 *cmdbuf->cmd_idx++ = ctx->picture_width_mb; in psb__MEPG2_send_blit_cmd()
1484 *cmdbuf->cmd_idx++ = ctx->picture_height_mb * 2; /* FIXME */ in psb__MEPG2_send_blit_cmd()
1492 *cmdbuf->cmd_idx++ = CMD_HEADER; /* FIXME use CMD_HEADER_VC1? */ in psb__MPEG2_insert_blit_cmd_to_rotate()
[all …]
Dlnc_hostcode.c238 RELOC_CMDBUF(cmdbuf->cmd_idx, 0, &cmdbuf->pic_params); in lnc_BeginPicture()
239 cmdbuf->cmd_idx++; in lnc_BeginPicture()
240 ctx->initial_qp_in_cmdbuf = cmdbuf->cmd_idx; /* remember the place */ in lnc_BeginPicture()
241 cmdbuf->cmd_idx++; in lnc_BeginPicture()
494 cmdbuf->cmd_idx = cmdbuf->cmd_idx_saved_frameskip; in lnc_RedoRenderPictureSkippedFrame()
535 RELOC_CMDBUF(cmdbuf->cmd_idx++, in lnc_RedoRenderPictureSkippedFrame()
551 RELOC_CMDBUF(cmdbuf->cmd_idx++, ctx->pic_header_ofs, &cmdbuf->header_mem); in lnc_RedoRenderPictureSkippedFrame()
1448 RELOC_CMDBUF(cmdbuf->cmd_idx++, in lnc__send_encode_slice_params()
Dlnc_H264ES.c294 RELOC_CMDBUF(cmdbuf->cmd_idx++, ctx->seq_header_ofs, &cmdbuf->header_mem); in lnc__H264ES_process_sequence_param()
381 RELOC_CMDBUF(cmdbuf->cmd_idx++, ctx->seq_header_ofs, &cmdbuf->header_mem); in lnc__H264ES_process_picture_param()
387 RELOC_CMDBUF(cmdbuf->cmd_idx++, ctx->pic_header_ofs, &cmdbuf->header_mem); in lnc__H264ES_process_picture_param()
437 cmdbuf->cmd_idx_saved_frameskip = cmdbuf->cmd_idx; in lnc__H264ES_process_slice_param()
513 RELOC_CMDBUF(cmdbuf->cmd_idx++, in lnc__H264ES_process_slice_param()
Dlnc_H263ES.c294 cmdbuf->cmd_idx_saved_frameskip = cmdbuf->cmd_idx; in lnc__H263ES_process_picture_param()
306 RELOC_CMDBUF(cmdbuf->cmd_idx++, ctx->pic_header_ofs, &cmdbuf->header_mem); in lnc__H263ES_process_picture_param()
381 RELOC_CMDBUF(cmdbuf->cmd_idx++, in lnc__H263ES_process_slice_param()
Dlnc_MPEG4ES.c272 RELOC_CMDBUF(cmdbuf->cmd_idx++, ctx->seq_header_ofs, &cmdbuf->header_mem); in lnc__MPEG4ES_process_sequence_param()
312 cmdbuf->cmd_idx_saved_frameskip = cmdbuf->cmd_idx; in lnc__MPEG4ES_process_picture_param()
322 RELOC_CMDBUF(cmdbuf->cmd_idx++, ctx->pic_header_ofs, &cmdbuf->header_mem); in lnc__MPEG4ES_process_picture_param()
Dpsb_H264.c1449 *cmdbuf->cmd_idx++ = CMD_COMPLETION; in psb__H264_write_kick()
1458 *cmdbuf->cmd_idx++ = CMD_HEADER; in psb__H264_FE_state()
1460 ctx->p_slice_params = cmdbuf->cmd_idx; in psb__H264_FE_state()
1461 *cmdbuf->cmd_idx++ = 0; /* ui32SliceParams */ in psb__H264_FE_state()
1465 RELOC(*cmdbuf->cmd_idx, lldma_record_offset, &(cmdbuf->buf)); in psb__H264_FE_state()
1466 cmdbuf->cmd_idx++; in psb__H264_FE_state()
1470 RELOC(*cmdbuf->cmd_idx, lldma_record_offset, &(cmdbuf->buf)); in psb__H264_FE_state()
1471 cmdbuf->cmd_idx++; in psb__H264_FE_state()
Dpsb_MPEG4.c937 *cmdbuf->cmd_idx++ = CMD_COMPLETION; in psb__MPEG4_write_kick()
1236 *cmdbuf->cmd_idx++ = CMD_HEADER; in psb__MPEG4_FE_state()
1238 ctx->p_slice_params = cmdbuf->cmd_idx; in psb__MPEG4_FE_state()
1239 *cmdbuf->cmd_idx++ = 0; /* ui32SliceParams */ in psb__MPEG4_FE_state()
1243 RELOC(*cmdbuf->cmd_idx, lldma_record_offset, &(cmdbuf->buf)); in psb__MPEG4_FE_state()
1244 cmdbuf->cmd_idx++; in psb__MPEG4_FE_state()
1248 RELOC(*cmdbuf->cmd_idx, lldma_record_offset, &(cmdbuf->buf)); in psb__MPEG4_FE_state()
1249 cmdbuf->cmd_idx++; in psb__MPEG4_FE_state()

12