| /utopia/UTPA2-700.0.x/modules/mfe/drv/mfe_ex/ |
| H A D | mdrv_mfe.c | 158 static MS_BOOL MDrv_MFE_CheckEncodeDone(MFE_CONFIG *pConfig); 162 void MDrv_MFE_SetOSRegBase(MFE_CONFIG *pConfig, MS_U32 MFE_U32RegBaseAddr ) in MDrv_MFE_SetOSRegBase() argument 173 static void MDrv_MFE_ENC_Continue(MFE_CONFIG *pConfig) in MDrv_MFE_ENC_Continue() argument 175 MS_ASSERT(pConfig->outbitsbuf[pConfig->nOBufIndex].used_size==0); in MDrv_MFE_ENC_Continue() 176 ms_dprintk(DRV_L3, "Continue with buf[%u]\n", (unsigned int)pConfig->nOBufIndex); in MDrv_MFE_ENC_Continue() 177 …MHal_MFE_set_outbitsbuf(&pConfig->mfe_reg, &pConfig->outbitsbuf[pConfig->nOBufIndex],pConfig->ctxB… in MDrv_MFE_ENC_Continue() 178 pConfig->encode_state = WAIT_FRAME_DONE; in MDrv_MFE_ENC_Continue() 182 static void MDrv_MFE_clear_bitsbuf(MFE_CONFIG *pConfig, MS_U32 clear_num) in MDrv_MFE_clear_bitsbuf() argument 185 … "clear rbits_index = %d, state = %d, clear_num = %u\n", (int)pConfig->rbits_index, pConfig->encod… in MDrv_MFE_clear_bitsbuf() 191 pConfig->outbitsbuf[pConfig->rbits_index].used_size = 0; in MDrv_MFE_clear_bitsbuf() [all …]
|
| /utopia/UTPA2-700.0.x/modules/mfe/drv/mfe_ex/cModel/ |
| H A D | bufmng.c | 104 MS_U32 jpeAllocDRAM(MFE_CONFIG* pConfig) in jpeAllocDRAM() argument 106 BufInfo* pBufInfo = &pConfig->ctxBufInfo; in jpeAllocDRAM() 109 MS_PHY pBufEnd = (MS_PHY)(pConfig->dram_base + pConfig->dram_size); in jpeAllocDRAM() 112 …MMAPMalloc(&pConfig->dram_ptr, pBufEnd, pBufInfo->m_OutBufferSize, &pBufInfo->m_nOutBufAddr[i], 25… in jpeAllocDRAM() 114 …peAllocDRAM] Start = 0x%x, End = 0x%x\n", (unsigned int)pConfig->dram_base, (unsigned int)pConfig-… in jpeAllocDRAM() 115 return pConfig->dram_ptr; in jpeAllocDRAM() 126 MS_U32 m4veAllocDRAM(MFE_CONFIG* pConfig) in m4veAllocDRAM() argument 128 BufInfo* pBufInfo = &pConfig->ctxBufInfo; in m4veAllocDRAM() 129 M4VEINFO *pInfo = &pConfig->ctxM4veInfo; in m4veAllocDRAM() 132 MS_PHY pBufEnd = (MS_PHY)(pConfig->dram_base + pConfig->dram_size); in m4veAllocDRAM() [all …]
|
| H A D | mfe_reg_m4ve.c | 142 extern void MHal_MFE_Enable_MIU_Protection(MS_S32 MIU_TEST_MODE,MFE_CONFIG* pConfig); 144 void OutputSwCfg1_Mp4(MS_S32 nFrmNum, MFE_CONFIG* pConfig); 159 void mfeM4VE_DeInit(MFE_CONFIG *pConfig) in mfeM4VE_DeInit() argument 161 IntraUpdateClose(pConfig); in mfeM4VE_DeInit() 164 void mfeM4VE_Init(MFE_CONFIG *pConfig) in mfeM4VE_Init() argument 167 M4VEINFO* pInfo = &pConfig->ctxM4veInfo; in mfeM4VE_Init() 171 switch (pConfig->nCodecType) in mfeM4VE_Init() 175 pConfig->bQuantType = 1; in mfeM4VE_Init() 179 pConfig->bQuantType = 0; in mfeM4VE_Init() 186 switch (pConfig->FrameRatex100) { in mfeM4VE_Init() [all …]
|
| H A D | parset.c | 114 static void _GenerateParameterSets(MFE_CONFIG* pConfig); 117 static NALU_t* _GenerateSeq_parameter_set_NALU (MFE_CONFIG* pConfig); 118 static NALU_t* _GeneratePic_parameter_set_NALU(MFE_CONFIG *pConfig); 122 static MS_S32 _GeneratePic_parameter_set_rbsp (MFE_CONFIG* pConfig, pic_parameter_set_rbsp_t *pps, … 123 static void _GenerateVUIParameters(MFE_CONFIG *pConfig, seq_parameter_set_rbsp_t *sps); 126 void MallocSPSPPSBuf(MFE_CONFIG* pConfig) in MallocSPSPPSBuf() argument 128 …pConfig->active_sps = MfeDrvMemMalloc(sizeof(seq_parameter_set_rbsp_t), (const MS_S8*)("active_sps… in MallocSPSPPSBuf() 129 if (pConfig->active_sps) in MallocSPSPPSBuf() 131 memset(pConfig->active_sps, 0, sizeof(seq_parameter_set_rbsp_t)); in MallocSPSPPSBuf() 138 …pConfig->active_pps = MfeDrvMemMalloc(sizeof(pic_parameter_set_rbsp_t), (const MS_S8*)("active_pps… in MallocSPSPPSBuf() [all …]
|
| H A D | mfe_reg_264e.c | 130 extern void MHal_MFE_Enable_MIU_Protection(MS_S32 MIU_TEST_MODE,MFE_CONFIG* pConfig); 132 void OutputSwCfg1_H264(MS_S32 nFrmNum, MFE_CONFIG* pConfig); 134 void mfeH264_DeInit(MFE_CONFIG* pConfig) in mfeH264_DeInit() argument 137 H264INFO* pInfo = &pConfig->ctxH264Info; in mfeH264_DeInit() 138 FreeSPSPPSBuf(pConfig); in mfeH264_DeInit() 151 IntraUpdateClose(pConfig); in mfeH264_DeInit() 154 void mfeH264_Init(MFE_CONFIG *pConfig) in mfeH264_Init() argument 157 H264INFO* pInfo = &pConfig->ctxH264Info; in mfeH264_Init() 158 MS_S32 FrameSizeInMbs = (pConfig->nBufWidth>>4) * (pConfig->nBufHeight>>4); in mfeH264_Init() 162 if(pConfig->UseCABAC) { in mfeH264_Init() [all …]
|
| H A D | mfe_common.c | 623 void IntraUpdateInit(MFE_CONFIG *pConfig) in IntraUpdateInit() argument 625 IntraUpdateContext *ctx = &pConfig->m_IUContext; in IntraUpdateInit() 627 ctx->nWidth = pConfig->nBufWidth; in IntraUpdateInit() 629 ctx->nHeight = pConfig->nBufHeight; in IntraUpdateInit() 635 if (pConfig->g_intraupdate_enable) { in IntraUpdateInit() 637 ctx->CIR_COUNT = (ctx->nTotalMb/pConfig->g_intraupdate_period)+1; in IntraUpdateInit() 653 void IntraUpdateFrame(MFE_CONFIG *pConfig) in IntraUpdateFrame() argument 655 IntraUpdate_Frame(&pConfig->m_IUContext); in IntraUpdateFrame() 658 void IntraUpdateClose(MFE_CONFIG *pConfig) in IntraUpdateClose() argument 660 IntraUpdateContext *ctx = &pConfig->m_IUContext; in IntraUpdateClose() [all …]
|
| H A D | m4v_header.c | 148 void codeSequenceHead (MFE_CONFIG *pConfig, OutStream* pStream) in codeSequenceHead() argument 168 void codeVOHead (MFE_CONFIG *pConfig, OutStream* pStream) in codeVOHead() argument 177 void codeVOLHead (MFE_CONFIG *pConfig, OutStream* pStream) in codeVOLHead() argument 179 M4VEINFO *pInfo = &pConfig->ctxM4veInfo; in codeVOLHead() 180 CVBRRateControl* rcCtx = &pConfig->ctxRateControl; in codeVOLHead() 218 osPutBits(pStream, pConfig->nBufWidth, NUMBITS_VOP_WIDTH, (MS_S8*)("VOL_Width")); in codeVOLHead() 221 osPutBits(pStream, pConfig->nBufHeight, NUMBITS_VOP_HEIGHT, (MS_S8*)("VOL_Height")); in codeVOLHead() 277 static void codeVOPHeadInitial(MFE_CONFIG *pConfig, OutStream* pStream) in codeVOPHeadInitial() argument 280 M4VEINFO *pInfo = &pConfig->ctxM4veInfo; in codeVOPHeadInitial() 288 …osPutBits(pStream, pConfig->vopPredType==I_VOP?0:(pConfig->vopPredType==P_VOP?1:2), NUMBITS_VOP_PR… in codeVOPHeadInitial() [all …]
|
| H A D | mfe_reg_jpge.c_ | 34 static void OutputSwCfg1_Jpg(MFE_U32 nFrmNum, MFE_CONFIG* pConfig); 77 void mfeJPE_Set_QTABLE(MFE_CONFIG *pConfig) 80 JpgInfo* pInfo = &pConfig->ctxJpgInfo; 81 quality = jpeg_quality_scaling(pConfig->m_quality); 85 void mfeJPE_Init(MFE_CONFIG *pConfig) 88 JpgInfo* pInfo = &pConfig->ctxJpgInfo; 92 pInfo->nFrameMode = pConfig->m_bFrameMode; 97 pInfo->nWidth = pConfig->nBufWidth; 98 pInfo->nHeight = pConfig->nBufHeight; 99 pInfo->fdc_mode = pConfig->m_bFDC_mode; [all …]
|
| H A D | mfe_common.h | 519 void IntraUpdateInit(MFE_CONFIG *pConfig); 520 void IntraUpdateFrame(MFE_CONFIG *pConfig); 521 void IntraUpdateClose(MFE_CONFIG *pConfig); 524 void MfeDrvRateControlInit(MFE_CONFIG* pConfig); 525 void MfeDrvRateControlUpdate(MFE_CONFIG* pConfig, MS_S8 nFieldType); 526 void MfeDrvRateControlDeInit(MFE_CONFIG* pConfig); 528 void mfeM4VE_Init(MFE_CONFIG *pConfig); 529 void mfeM4VE_EncodeFrame(MFE_CONFIG *pConfig, GOPINFO* pGopInfo); 530 void mfeM4VE_UpdateFrame(MFE_CONFIG *pConfig); 531 MS_S32 codeM4vConfigHeaders(MFE_CONFIG *pConfig,MS_BOOL IsSkipHeader); [all …]
|
| H A D | parset.h | 99 void MallocSPSPPSBuf(MFE_CONFIG* pConfig); 100 void FreeSPSPPSBuf(MFE_CONFIG* pConfig); 101 void GenerateSPSPPS(MFE_CONFIG* pConfig); 103 void codeSPSPPS(MFE_CONFIG* pConfig,OutStream* pStream); 104 void codeSliceHeader(MFE_CONFIG* pConfig, OutStream* pStream); 105 void codeDummySliceHeader(MFE_CONFIG* pConfig, OutStream* pStream); 110 void GenerateSequenceParameterSet(MFE_CONFIG* pConfig, seq_parameter_set_rbsp_t *sps, MS_S32 SPS_id… 111 void GeneratePictureParameterSet (MFE_CONFIG* pConfig, pic_parameter_set_rbsp_t *pps, seq_parameter…
|
| H A D | m4v_header.h | 85 void codeSequenceHead (MFE_CONFIG *pConfig, OutStream* pStream); 86 void codeVOHead (MFE_CONFIG *pConfig, OutStream* pStream); 87 void codeVOLHead (MFE_CONFIG *pConfig, OutStream* pStream); 88 void codeVOPHead (MFE_CONFIG *pConfig, OutStream* pStream); 89 void codeNonCodedVOPHead (MFE_CONFIG *pConfig, OutStream* pStream); 90 void codeVOPShortHead (MFE_CONFIG *pConfig, OutStream* pStream); 91 void codeNonCodedVOPShortHead (MFE_CONFIG *pConfig, OutStream* pStream);
|
| H A D | BufMng.h | 82 void mfeSetVopType(MFE_CONFIG* pConfig, GOPINFO* pGOP); 84 MS_S32 m4veAllocDRAM(MFE_CONFIG* pConfig); 85 void m4veGetBufferAddr(MFE_CONFIG* pConfig); 87 MS_S32 h264AllocDRAM(MFE_CONFIG* pConfig); 88 void h264GetBufferAddr(MFE_CONFIG* pConfig); 89 void h264DpbHandling(MFE_CONFIG* pConfig);
|
| /utopia/UTPA2-700.0.x/modules/mfe/drv/mfe/cModel/ |
| H A D | bufmng.c | 111 MFE_U32 m4veAllocDRAM(MFE_CONFIG* pConfig) in m4veAllocDRAM() argument 113 BufInfo* pBufInfo = &pConfig->ctxBufInfo; in m4veAllocDRAM() 114 M4VEINFO *pInfo = &pConfig->ctxM4veInfo; in m4veAllocDRAM() 117 MFE_U32 pBufEnd = (MFE_U32)(pConfig->dram_base + pConfig->dram_size); in m4veAllocDRAM() 119 nMbCount = (pConfig->nBufWidth * pConfig->nBufHeight)>>8; in m4veAllocDRAM() 125 …MMAPMalloc((MFE_U32*)&pConfig->dram_ptr, pBufEnd, nMbCount*16, &pBufInfo->m_nMvStoreAddr, 8,"Mbcou… in m4veAllocDRAM() 133 …MMAPMalloc((MFE_U32*)&pConfig->dram_ptr, pBufEnd, (pConfig->nBufWidth>>4)*64, &pBufInfo->m_nGNAddr… in m4veAllocDRAM() 136 sizeY = pConfig->nBufWidth * pConfig->nBufHeight; in m4veAllocDRAM() 141 …mfe_alloc_addr((MFE_U32*)&pConfig->dram_ptr, pBufEnd, pInfo->m_FrameBuf[M4VE_FRM_CUR_REC], sizeY, … in m4veAllocDRAM() 142 …mfe_alloc_addr((MFE_U32*)&pConfig->dram_ptr, pBufEnd, pInfo->m_FrameBuf[M4VE_FRM_REF0_REC], sizeY,… in m4veAllocDRAM() [all …]
|
| H A D | mfe_reg_m4ve.c | 127 extern void MHal_MFE_Enable_MIU_Protection(int MIU_TEST_MODE,MFE_CONFIG* pConfig); 128 void OutputSwCfg1_Mp4(int nFrmNum, MFE_CONFIG* pConfig); 143 void mfeM4VE_Init(MFE_CONFIG *pConfig) in mfeM4VE_Init() argument 146 M4VEINFO* pInfo = &pConfig->ctxM4veInfo; in mfeM4VE_Init() 150 switch (pConfig->nCodecType) in mfeM4VE_Init() 163 switch (pConfig->FrameRatex100) { in mfeM4VE_Init() 207 if (pConfig->nCodecType==REG_ENC_MODE_MPG4) { in mfeM4VE_Init() 208 pInfo->bInterlacedCoding = pConfig->bInterlace; in mfeM4VE_Init() 211 pInfo->bQuantizerType = pConfig->bQuantType; in mfeM4VE_Init() 235 pConfig->vopPredType = I_VOP; in mfeM4VE_Init() [all …]
|
| H A D | mfe_common.c | 671 void IntraUpdateInit(MFE_CONFIG *pConfig) in IntraUpdateInit() argument 673 IntraUpdateContext *ctx = &pConfig->m_IUContext; in IntraUpdateInit() 675 ctx->nWidth = pConfig->nBufWidth; in IntraUpdateInit() 677 ctx->nHeight = pConfig->nBufHeight; in IntraUpdateInit() 681 ctx->pHwMbMap = pConfig->m_UIHwMap;//new HW_MB_MAP[ctx->nTotalMb]; in IntraUpdateInit() 683 ctx->pSwMbMap = pConfig->m_UISwMap;//new SW_MB_MAP[ctx->nTotalMb]; in IntraUpdateInit() 685 if (pConfig->g_intraupdate_enable) { in IntraUpdateInit() 687 ctx->CIR_COUNT = (ctx->nTotalMb/pConfig->g_intraupdate_period)+1; in IntraUpdateInit() 703 void IntraUpdateFrame(MFE_CONFIG *pConfig) in IntraUpdateFrame() argument 705 IntraUpdate_Frame(&pConfig->m_IUContext); in IntraUpdateFrame() [all …]
|
| H A D | m4v_header.c | 147 void codeSequenceHead (MFE_CONFIG *pConfig, OutStream* pStream) in codeSequenceHead() argument 167 void codeVOHead (MFE_CONFIG *pConfig, OutStream* pStream) in codeVOHead() argument 176 void codeVOLHead (MFE_CONFIG *pConfig, OutStream* pStream) in codeVOLHead() argument 178 M4VEINFO *pInfo = &pConfig->ctxM4veInfo; in codeVOLHead() 179 CVBRRateControl* rcCtx = &pConfig->ctxRateControl; in codeVOLHead() 217 osPutBits(pStream, pConfig->nBufWidth, NUMBITS_VOP_WIDTH, "VOL_Width"); in codeVOLHead() 220 osPutBits(pStream, pConfig->nBufHeight, NUMBITS_VOP_HEIGHT, "VOL_Height"); in codeVOLHead() 276 static void codeVOPHeadInitial(MFE_CONFIG *pConfig, OutStream* pStream) in codeVOPHeadInitial() argument 279 M4VEINFO *pInfo = &pConfig->ctxM4veInfo; in codeVOPHeadInitial() 287 …osPutBits(pStream, pConfig->vopPredType==I_VOP?0:(pConfig->vopPredType==P_VOP?1:2), NUMBITS_VOP_PR… in codeVOPHeadInitial() [all …]
|
| H A D | mfe_reg_264e.c | 100 extern void MHal_MFE_Enable_MIU_Protection(int MIU_TEST_MODE,MFE_CONFIG* pConfig); 101 void OutputSwCfg1_H264(int nFrmNum, MFE_CONFIG* pConfig); 102 extern void MHal_MFE_Enable_MIU_Protection(int MIU_TEST_MODE,MFE_CONFIG* pConfig); 104 void mfeH264_Init(MFE_CONFIG *pConfig) in mfeH264_Init() argument 107 H264INFO* pInfo = &pConfig->ctxH264Info; in mfeH264_Init() 108 int FrameSizeInMbs = (pConfig->nBufWidth>>4) * (pConfig->nBufHeight>>4); in mfeH264_Init() 114 pInfo->PicInterlace = !pConfig->bInterlace ? FRAME_CODING : FIELD_CODING; in mfeH264_Init() 117 MFE_ASSERT((pConfig->nBufHeight&0x1F)==0); in mfeH264_Init() 182 MfeDrvRateControlInit(pConfig); in mfeH264_Init() 185 osCreate(&pConfig->m_OutStream); in mfeH264_Init() [all …]
|
| H A D | parset.c | 116 static void _GenerateParameterSets(MFE_CONFIG* pConfig); 120 static NALU_t* _GeneratePic_parameter_set_NALU(MFE_CONFIG *pConfig); 124 static int _GeneratePic_parameter_set_rbsp (MFE_CONFIG* pConfig, pic_parameter_set_rbsp_t *pps, MFE… 125 static void _GenerateVUIParameters(MFE_CONFIG *pConfig, seq_parameter_set_rbsp_t *sps); 137 void GenerateSPSPPS(MFE_CONFIG* pConfig) in GenerateSPSPPS() argument 139 _GenerateParameterSets(pConfig); in GenerateSPSPPS() 141 _GeneratePic_parameter_set_NALU(pConfig); in GenerateSPSPPS() 155 static void _GenerateParameterSets(MFE_CONFIG* pConfig) in _GenerateParameterSets() argument 160 GenerateSequenceParameterSet(pConfig, active_sps, 0); in _GenerateParameterSets() 161 GeneratePictureParameterSet (pConfig, active_pps, active_sps, 0); in _GenerateParameterSets() [all …]
|
| H A D | mfe_common.h | 410 void IntraUpdateInit(MFE_CONFIG *pConfig); 411 void IntraUpdateFrame(MFE_CONFIG *pConfig); 412 void IntraUpdateClose(MFE_CONFIG *pConfig); 415 void MfeDrvRateControlInit(MFE_CONFIG* pConfig); 416 void MfeDrvRateControlUpdate(MFE_CONFIG* pConfig, char nFieldType); 419 void mfeM4VE_Init(MFE_CONFIG *pConfig); 420 void mfeM4VE_EncodeFrame(MFE_CONFIG *pConfig, GOPINFO* pGopInfo); 421 void mfeM4VE_UpdateFrame(MFE_CONFIG *pConfig); 422 int codeM4vConfigHeaders(MFE_CONFIG *pConfig); 425 void mfeH264_Init(MFE_CONFIG *pConfig); [all …]
|
| H A D | m4v_header.h | 85 void codeSequenceHead (MFE_CONFIG *pConfig, OutStream* pStream); 86 void codeVOHead (MFE_CONFIG *pConfig, OutStream* pStream); 87 void codeVOLHead (MFE_CONFIG *pConfig, OutStream* pStream); 88 void codeVOPHead (MFE_CONFIG *pConfig, OutStream* pStream); 89 void codeNonCodedVOPHead (MFE_CONFIG *pConfig, OutStream* pStream); 90 void codeVOPShortHead (MFE_CONFIG *pConfig, OutStream* pStream); 91 void codeNonCodedVOPShortHead (MFE_CONFIG *pConfig, OutStream* pStream);
|
| H A D | BufMng.h | 82 void mfeSetVopType(MFE_CONFIG* pConfig, GOPINFO* pGOP); 84 int m4veAllocDRAM(MFE_CONFIG* pConfig); 85 void m4veGetBufferAddr(MFE_CONFIG* pConfig); 87 int h264AllocDRAM(MFE_CONFIG* pConfig); 88 void h264GetBufferAddr(MFE_CONFIG* pConfig); 89 void h264DpbHandling(MFE_CONFIG* pConfig);
|
| H A D | mfe_reg_jpge.c | 91 void OutputSwCfg1_Jpg(MFE_CONFIG *pConfig, int nFrmNum, JpgInfo *pJpgInfo, BufInfo* pBufInfo, BitsI… in OutputSwCfg1_Jpg() argument 134 MFE_ASSERT((pBufInfo->m_nOutBufAddr[pConfig->nOBufIndex].miuAddress&0x7)==0); in OutputSwCfg1_Jpg() 160 …mfe_reg.reg_mfe_s_bspobuf_sadr_low = (MFE_U16)((pBufInfo->m_nOutBufAddr[pConfig->nOBufIndex].miuA… in OutputSwCfg1_Jpg() 161 …mfe_reg.reg_mfe_s_bspobuf_sadr_high = (MFE_U16)(pBufInfo->m_nOutBufAddr[pConfig->nOBufIndex].miuAd… in OutputSwCfg1_Jpg() 162 …mfe_reg.reg_mfe_s_bspobuf_eadr_low = (MFE_U16)(((pBufInfo->m_nOutBufAddr[pConfig->nOBufIndex].miu… in OutputSwCfg1_Jpg() 163 …mfe_reg.reg_mfe_s_bspobuf_eadr_high = (MFE_U16)((pBufInfo->m_nOutBufAddr[pConfig->nOBufIndex].miuA… in OutputSwCfg1_Jpg()
|
| H A D | parset.h | 100 void GenerateSPSPPS(MFE_CONFIG* pConfig); 103 void codeSliceHeader(MFE_CONFIG* pConfig, OutStream* pStream); 108 void GenerateSequenceParameterSet(MFE_CONFIG* pConfig, seq_parameter_set_rbsp_t *sps, int SPS_id); 109 void GeneratePictureParameterSet (MFE_CONFIG* pConfig, pic_parameter_set_rbsp_t *pps, seq_parameter…
|
| /utopia/UTPA2-700.0.x/modules/mfe/drv/mfe/ |
| H A D | mdrv_mfe.c | 342 static MFE_BOOL MDrv_MFE_CheckEncodeDone(MFE_CONFIG *pConfig); 437 static void MDrv_MFE_ENC_Continue(MFE_CONFIG *pConfig) in MDrv_MFE_ENC_Continue() argument 439 MFE_ASSERT(outbitsbuf[pConfig->nOBufIndex].used_size==0); in MDrv_MFE_ENC_Continue() 440 ms_dprintk(DRV_L3, "Continue with buf[%d]\n",(unsigned int) pConfig->nOBufIndex); in MDrv_MFE_ENC_Continue() 441 MHal_MFE_set_outbitsbuf(&outbitsbuf[pConfig->nOBufIndex]); in MDrv_MFE_ENC_Continue() 446 static void MDrv_MFE_clear_bitsbuf(MFE_CONFIG *pConfig, MFE_U32 clear_num) in MDrv_MFE_clear_bitsbuf() argument 458 rbits_index = MFE_MUX((rbits_index+1)==pConfig->ctxBufInfo.m_nOutBuffer, 0, rbits_index+1); in MDrv_MFE_clear_bitsbuf() 462 MDrv_MFE_ENC_Continue(pConfig); in MDrv_MFE_clear_bitsbuf() 466 static int MDrv_MFE_GetDispOrder(MFE_CONFIG *pConfig, GOPINFO *pGopInfo, MFE_U32 *pDispOrder) in MDrv_MFE_GetDispOrder() argument 474 mfeSetVopType(pConfig, pGopInfo); in MDrv_MFE_GetDispOrder() [all …]
|
| /utopia/UTPA2-700.0.x/modules/usb/drv/usb_ecos/newhost/ |
| H A D | drvConfig.c | 337 struct usb_host_config *pConfig, in ms_usb_parse_config() argument 344 memcpy(&pConfig->desc, pBuf, USB_DT_CONFIG_SIZE); in ms_usb_parse_config() 345 pConfig->desc.wTotalLength = pConfig->desc.wTotalLength; in ms_usb_parse_config() 346 Desc_size = pConfig->desc.wTotalLength; in ms_usb_parse_config() 351 if (pConfig->desc.bNumInterfaces > USB_MAX_INTERFACES) in ms_usb_parse_config() 353 diag_printf("too many interfaces %d", pConfig->desc.bNumInterfaces); in ms_usb_parse_config() 357 for (i = 0; i < pConfig->desc.bNumInterfaces; i++) in ms_usb_parse_config() 359 …pConfig->interface[i] = (struct usb_interface *) kmalloc(sizeof(struct usb_interface), GFP_KERNEL); in ms_usb_parse_config() 360 if (!pConfig->interface[i]) in ms_usb_parse_config() 366 memset(pConfig->interface[i], 0x00, sizeof(struct usb_interface)); in ms_usb_parse_config() [all …]
|