Lines Matching refs:cmdbuf
182 pnw_cmdbuf_p cmdbuf, in LoadMPEG4Bias() argument
197 *cmdbuf->cmd_idx++ = cmd_word; in LoadMPEG4Bias()
198 pCount = cmdbuf->cmd_idx; in LoadMPEG4Bias()
199 cmdbuf->cmd_idx++; in LoadMPEG4Bias()
241 pnw_cmdbuf_p cmdbuf, IMG_INT32 i32Core, IMG_UINT8 __maybe_unused ui8THSkip) in LoadH263Bias() argument
253 *cmdbuf->cmd_idx++ = cmd_word; in LoadH263Bias()
254 pCount = cmdbuf->cmd_idx; in LoadH263Bias()
255 cmdbuf->cmd_idx++; in LoadH263Bias()
299 pnw_cmdbuf_p cmdbuf, IMG_INT32 i32Core, IMG_UINT8 ui8THSkip, IMG_INT8 i8QpOff) in LoadH264Bias() argument
310 *cmdbuf->cmd_idx++ = cmd_word; in LoadH264Bias()
311 pCount = cmdbuf->cmd_idx; in LoadH264Bias()
312 cmdbuf->cmd_idx++; in LoadH264Bias()
564 pnw_cmdbuf_p cmdbuf; in pnw_BeginPicture() local
592 cmdbuf = ctx->obj_context->pnw_cmdbuf; in pnw_BeginPicture()
593 memset(cmdbuf->cmd_idx_saved, 0, sizeof(cmdbuf->cmd_idx_saved)); in pnw_BeginPicture()
597 vaStatus = psb_buffer_map(&cmdbuf->pic_params, &cmdbuf->pic_params_p); in pnw_BeginPicture()
601 vaStatus = psb_buffer_map(&cmdbuf->header_mem, &cmdbuf->header_mem_p); in pnw_BeginPicture()
603 psb_buffer_unmap(&cmdbuf->pic_params); in pnw_BeginPicture()
607 vaStatus = psb_buffer_map(&cmdbuf->slice_params, &cmdbuf->slice_params_p); in pnw_BeginPicture()
609 psb_buffer_unmap(&cmdbuf->pic_params); in pnw_BeginPicture()
610 psb_buffer_unmap(&cmdbuf->header_mem); in pnw_BeginPicture()
615 cmdbuf->topaz_above_params_p = NULL; in pnw_BeginPicture()
616 cmdbuf->topaz_below_params_p = NULL; in pnw_BeginPicture()
617 cmdbuf->topaz_in_params_I_p = NULL; in pnw_BeginPicture()
618 cmdbuf->topaz_in_params_P_p = NULL; in pnw_BeginPicture()
624 … *cmdbuf->cmd_idx++ = ((MTX_CMDID_SW_NEW_CODEC & MTX_CMDWORD_ID_MASK) << MTX_CMDWORD_ID_SHIFT) | in pnw_BeginPicture()
643 cmdbuf->cmd_idx_saved[PNW_CMDBUF_START_PIC_IDX] = cmdbuf->cmd_idx; in pnw_BeginPicture()
655 &cmdbuf->pic_params, in pnw_BeginPicture()
670 pnw_cmdbuf_p cmdbuf = (pnw_cmdbuf_p)ctx->obj_context->pnw_cmdbuf; in pnw_set_bias() local
693 LoadH264Bias(cmdbuf, core, THSkip, ctx->sRCParams.QCPOffset); in pnw_set_bias()
698 LoadH263Bias(cmdbuf, core, THSkip); in pnw_set_bias()
703 LoadMPEG4Bias(cmdbuf, core, THSkip); in pnw_set_bias()
719 pnw_cmdbuf_p cmdbuf = ctx->obj_context->pnw_cmdbuf; in pnw_RenderPictureParameter() local
722 psPicParams = (PIC_PARAMS *)(cmdbuf->pic_params_p + ctx->pic_params_size * core); in pnw_RenderPictureParameter()
927 cmdbuf->topaz_below_params); in pnw_RenderPictureParameter()
931 cmdbuf->topaz_below_params); in pnw_RenderPictureParameter()
935 cmdbuf->topaz_above_params); in pnw_RenderPictureParameter()
945 pnw_cmdbuf_p cmdbuf = ctx->obj_context->pnw_cmdbuf; in pnw_SetupRCParam() local
946 PIC_PARAMS *psPicParams = (PIC_PARAMS *)cmdbuf->pic_params_p; in pnw_SetupRCParam()
962 psPicParamsTmp = (PIC_PARAMS *)(cmdbuf->pic_params_p + ctx->pic_params_size * i); in pnw_SetupRCParam()
979 pnw_cmdbuf_p cmdbuf = ctx->obj_context->pnw_cmdbuf; in pnw_EndPicture() local
980 PIC_PARAMS *psPicParams = (PIC_PARAMS *)cmdbuf->pic_params_p; in pnw_EndPicture()
1004 psPicParamsSlave = (PIC_PARAMS *)(cmdbuf->pic_params_p + ctx->pic_params_size * i); in pnw_EndPicture()
1081 psb_buffer_unmap(&cmdbuf->pic_params); in pnw_EndPicture()
1082 psb_buffer_unmap(&cmdbuf->header_mem); in pnw_EndPicture()
1083 psb_buffer_unmap(&cmdbuf->slice_params); in pnw_EndPicture()
1086 if (cmdbuf->topaz_in_params_I_p != NULL) { in pnw_EndPicture()
1087 psb_buffer_unmap(cmdbuf->topaz_in_params_I); in pnw_EndPicture()
1088 cmdbuf->topaz_in_params_I_p = NULL; in pnw_EndPicture()
1091 if (cmdbuf->topaz_in_params_P_p != NULL) { in pnw_EndPicture()
1092 psb_buffer_unmap(cmdbuf->topaz_in_params_P); in pnw_EndPicture()
1093 cmdbuf->topaz_in_params_P_p = NULL; in pnw_EndPicture()
1096 if (cmdbuf->topaz_above_params_p != NULL) { in pnw_EndPicture()
1097 psb_buffer_unmap(cmdbuf->topaz_above_params); in pnw_EndPicture()
1098 cmdbuf->topaz_above_params_p = NULL; in pnw_EndPicture()
1101 if (cmdbuf->topaz_below_params_p != NULL) { in pnw_EndPicture()
1102 psb_buffer_unmap(cmdbuf->topaz_below_params); in pnw_EndPicture()
1103 cmdbuf->topaz_below_params_p = NULL; in pnw_EndPicture()
1619 pnw_cmdbuf_p cmdbuf = ctx->obj_context->pnw_cmdbuf; in pnw__setup_slice_row_params() local
1625 if (IsIntra && cmdbuf->topaz_in_params_I_p == NULL) { in pnw__setup_slice_row_params()
1626 VAStatus vaStatus = psb_buffer_map(cmdbuf->topaz_in_params_I, &cmdbuf->topaz_in_params_I_p); in pnw__setup_slice_row_params()
1633 if ((!IsIntra) && cmdbuf->topaz_in_params_P_p == NULL) { in pnw__setup_slice_row_params()
1634 VAStatus vaStatus = psb_buffer_map(cmdbuf->topaz_in_params_P, &cmdbuf->topaz_in_params_P_p); in pnw__setup_slice_row_params()
1642 psCurrent = (MTX_CURRENT_IN_PARAMS*)(cmdbuf->topaz_in_params_I_p + ctx->in_params_ofs); in pnw__setup_slice_row_params()
1644 psCurrent = (MTX_CURRENT_IN_PARAMS*)(cmdbuf->topaz_in_params_P_p + ctx->in_params_ofs); in pnw__setup_slice_row_params()
1859 pnw_cmdbuf_p cmdbuf = ctx->obj_context->pnw_cmdbuf; in pnw__send_encode_slice_params() local
1870 psSliceParams = (SLICE_PARAMS *)(cmdbuf->slice_params_p + in pnw__send_encode_slice_params()
1953 cmdbuf = ctx->obj_context->pnw_cmdbuf; in pnw__send_encode_slice_params()
1963 cmdbuf->topaz_in_params_I); in pnw__send_encode_slice_params()
1968 cmdbuf->topaz_in_params_P); in pnw__send_encode_slice_params()
1994 &cmdbuf->slice_params, in pnw__send_encode_slice_params()
2010 pnw_cmdbuf_p cmdbuf = ctx->obj_context->pnw_cmdbuf; in pnw_reset_encoder_params() local
2015 if (cmdbuf->topaz_above_params_p == NULL) { in pnw_reset_encoder_params()
2016 … VAStatus vaStatus = psb_buffer_map(cmdbuf->topaz_above_params, &cmdbuf->topaz_above_params_p); in pnw_reset_encoder_params()
2023 if (cmdbuf->topaz_below_params_p == NULL) { in pnw_reset_encoder_params()
2024 … VAStatus vaStatus = psb_buffer_map(cmdbuf->topaz_below_params, &cmdbuf->topaz_below_params_p); in pnw_reset_encoder_params()
2031 Add_Below = cmdbuf->topaz_below_params_p + in pnw_reset_encoder_params()
2036 Add_Above = cmdbuf->topaz_above_params_p + ctx->above_params_ofs; in pnw_reset_encoder_params()