Lines Matching refs:u8GOP
979 static MS_BOOL bCursorSupport(void* pInstance,MS_U8 u8GOP) in bCursorSupport() argument
983 if(u8GOP == 3) in bCursorSupport()
993 static void _GOP_GWIN_Align_StretchWin(void* pInstance, MS_U8 u8GOP, EN_GOP_DST_TYPE eDstType, MS_U… in _GOP_GWIN_Align_StretchWin() argument
1003 u16GOP_Unit = MDrv_GOP_GetWordUnit(g_pGOPCtxLocal, u8GOP); in _GOP_GWIN_Align_StretchWin()
1026 …_DST_FRC) || (eDstType == E_GOP_DST_BYPASS)) && !MDrv_GOP_GWIN_IsProgressive(g_pGOPCtxLocal,u8GOP)) in _GOP_GWIN_Align_StretchWin()
1595 MS_U8 u8GOP; in GOP_GetWinInfo() local
1607 u8GOP = MDrv_DumpGopByGwinId(g_pGOPCtxLocal,u32win); in GOP_GetWinInfo()
1609 if(u8GOP == GOPTYPE.GOP0) in GOP_GetWinInfo()
1613 else if (u8GOP == GOPTYPE.GOP1) in GOP_GetWinInfo()
2010 MS_U8 u8GOP=0; in _SetGop23WinInfo() local
2024 u8GOP=MDrv_DumpGopByGwinId(g_pGOPCtxLocal,u8win); in _SetGop23WinInfo()
2025 MDrv_GOP_GWIN_GetDstPlane(g_pGOPCtxLocal, u8GOP, &Gop23Dst); in _SetGop23WinInfo()
2032 if(g_pGOPCtxLocal->pGOPCtxShared->bTLB[u8GOP]) in _SetGop23WinInfo()
2035 for(i=0;i<u8GOP;i++) in _SetGop23WinInfo()
2047 if((-1)==g_pGOPCtxLocal->pGOPCtxShared->s32OutputColorType[u8GOP]) in _SetGop23WinInfo()
2053 gopOut = (GOP_OupputColor)g_pGOPCtxLocal->pGOPCtxShared->s32OutputColorType[u8GOP]; in _SetGop23WinInfo()
2056 MDrv_GOP_GWIN_OutputColor(g_pGOPCtxLocal,u8GOP, gopOut); in _SetGop23WinInfo()
2060 MDrv_GOP_GWIN_EnableProgressive(g_pGOPCtxLocal, u8GOP, FALSE); in _SetGop23WinInfo()
2064 MDrv_GOP_GWIN_EnableProgressive(g_pGOPCtxLocal, u8GOP, TRUE); in _SetGop23WinInfo()
2072 if((-1)==g_pGOPCtxLocal->pGOPCtxShared->s32OutputColorType[u8GOP]) in _SetGop23WinInfo()
2078 gopOut = (GOP_OupputColor)g_pGOPCtxLocal->pGOPCtxShared->s32OutputColorType[u8GOP]; in _SetGop23WinInfo()
2083 MDrv_GOP_GWIN_OutputColor(g_pGOPCtxLocal,u8GOP, gopOut); in _SetGop23WinInfo()
2084 MDrv_GOP_GWIN_EnableProgressive(g_pGOPCtxLocal, u8GOP, FALSE); in _SetGop23WinInfo()
2088 MDrv_GOP_GWIN_OutputColor(g_pGOPCtxLocal,u8GOP, gopOut); in _SetGop23WinInfo()
2089 MDrv_GOP_GWIN_EnableProgressive(g_pGOPCtxLocal, u8GOP, TRUE); in _SetGop23WinInfo()
2094 if((-1)==g_pGOPCtxLocal->pGOPCtxShared->s32OutputColorType[u8GOP]) in _SetGop23WinInfo()
2100 gopOut = (GOP_OupputColor)g_pGOPCtxLocal->pGOPCtxShared->s32OutputColorType[u8GOP]; in _SetGop23WinInfo()
2104 …MDrv_GOP_GWIN_EnableProgressive(g_pGOPCtxLocal, u8GOP, TRUE); //progressive output in FPGA enviro… in _SetGop23WinInfo()
2105 MDrv_GOP_GWIN_OutputColor(g_pGOPCtxLocal,u8GOP, DRV_GOPOUT_RGB); in _SetGop23WinInfo()
2107 MDrv_GOP_GWIN_OutputColor(g_pGOPCtxLocal,u8GOP, DRV_GOPOUT_YUV); in _SetGop23WinInfo()
2109 MDrv_GOP_GWIN_EnableProgressive(g_pGOPCtxLocal, u8GOP, TRUE); in _SetGop23WinInfo()
2111 MDrv_GOP_GWIN_EnableProgressive(g_pGOPCtxLocal, u8GOP, FALSE); in _SetGop23WinInfo()
2119 if(g_pGOPCtxLocal->pGOPCtxShared->bTLB[u8GOP]) in _SetGop23WinInfo()
2129 MDrv_GOP_IsGOPMirrorEnable(g_pGOPCtxLocal ,u8GOP, &bRIUHMirror , &bRIUVMirror); in _SetGop23WinInfo()
2137 MDrv_GOP_GWIN_EnableHMirror(g_pGOPCtxLocal, u8GOP, TRUE); in _SetGop23WinInfo()
2139 if(!bCursorSupport(pInstance,u8GOP)) in _SetGop23WinInfo()
2146 MDrv_GOP_GWIN_EnableHMirror(g_pGOPCtxLocal, u8GOP, FALSE); in _SetGop23WinInfo()
2156 MDrv_GOP_GWIN_EnableVMirror(g_pGOPCtxLocal, u8GOP, TRUE); in _SetGop23WinInfo()
2158 if(!bCursorSupport(pInstance,u8GOP)) in _SetGop23WinInfo()
2165 MDrv_GOP_GWIN_EnableVMirror(g_pGOPCtxLocal, u8GOP, FALSE); in _SetGop23WinInfo()
2192 …_FRC) || (Gop23Dst == E_DRV_GOP_DST_BYPASS)) && !MDrv_GOP_GWIN_IsProgressive(g_pGOPCtxLocal,u8GOP)) in _SetGop23WinInfo()
2200 if(g_pGOPCtxLocal->pGOPCtxShared->bTLB[u8GOP]) in _SetGop23WinInfo()
2202 …2DRAMRBlkStart/PAGE_SIZE)*TLB_PER_ENTRY_SIZE + g_pGOPCtxLocal->pGOPCtxShared->u64TLBAddress[u8GOP]; in _SetGop23WinInfo()
2203 …MDrv_GOP_SetTLBAddr(g_pGOPCtxLocal,u8GOP,TLBMainAddr,g_pGOPCtxLocal->pGOPCtxShared->bHMirror,g_pGO… in _SetGop23WinInfo()
2204 …pinfo->u32DRAMRBlkStart= g_pGOPCtxLocal->pGOPCtxShared->u64TLBAddress[u8GOP] % (PAGE_SIZE*PER_MIU_… in _SetGop23WinInfo()
2221 MS_U8 u8GOP; in _GOP_ArrangePoolMem() local
2304 u8GOP = MDrv_DumpGopByGwinId(g_pGOPCtxLocal,u8WinID); in _GOP_ArrangePoolMem()
2306 if(u8GOP == GOPTYPE.GOP0) in _GOP_ArrangePoolMem()
2310 else if(u8GOP == GOPTYPE.GOP1) in _GOP_ArrangePoolMem()
2318 MDrv_GOP_GWIN_UpdateReg(g_pGOPCtxLocal,u8GOP); in _GOP_ArrangePoolMem()
2851 static void _GOP_SetOCCapability(void* pInstance,MS_U8 u8GOP, DRV_GOPDstType GopDst) in _GOP_SetOCCapability() argument
2858 if (!_GOP_IsGopNumValid(pInstance,u8GOP)) in _GOP_SetOCCapability()
2860 GOP_M_ERR("[%s][%d]GOP %d is out of range\n",__FUNCTION__,__LINE__,u8GOP); in _GOP_SetOCCapability()
2867 MDrv_GOP_GWIN_SetAlphaInverse(g_pGOPCtxLocal, u8GOP, FALSE); in _GOP_SetOCCapability()
2868 MDrv_GOP_OC_SetOCEn(g_pGOPCtxLocal, u8GOP, FALSE); in _GOP_SetOCCapability()
2872 MDrv_GOP_OC_SetOCEn(g_pGOPCtxLocal, u8GOP, FALSE); in _GOP_SetOCCapability()
2879 MDrv_GOP_GWIN_SetAlphaInverse(g_pGOPCtxLocal, u8GOP, TRUE); in _GOP_SetOCCapability()
2880 MDrv_GOP_OC_SetOCEn(g_pGOPCtxLocal, u8GOP, FALSE); in _GOP_SetOCCapability()
2884 MDrv_GOP_GWIN_SetAlphaInverse(g_pGOPCtxLocal, u8GOP, TRUE); in _GOP_SetOCCapability()
2885 MDrv_GOP_OC_SetOCEn(g_pGOPCtxLocal, u8GOP, TRUE); in _GOP_SetOCCapability()
2976 MS_U8 u8GOP; in GOP_SetWinInfo() local
2988 u8GOP = MDrv_DumpGopByGwinId(g_pGOPCtxLocal,u32Gwin); in GOP_SetWinInfo()
2991 switch(u8GOP) in GOP_SetWinInfo()
3009 MDrv_GOP_GWIN_UpdateReg(g_pGOPCtxLocal,u8GOP); in GOP_SetWinInfo()
3019 MS_U8 u8GOP,u8MIU; in GOP_Win_Destroy() local
3062 u8GOP = MDrv_DumpGopByGwinId(g_pGOPCtxLocal,(gId)); in GOP_Win_Destroy()
3063 u8MIU = MDrv_GOP_Get_MIU_Sel(g_pGOPCtxLocal,u8GOP); in GOP_Win_Destroy()
3064 if(g_pGOPCtxLocal->pGOPCtxShared->bTLB[u8GOP] != TRUE) in GOP_Win_Destroy()
3313 MS_U8 u8GOP=0; in GOP_MapFB2Win() local
3406 u8GOP = MDrv_DumpGopByGwinId(g_pGOPCtxLocal,GwinId); in GOP_MapFB2Win()
3407 if(g_pGOPCtxLocal->pGopChipProperty->bAFBC_Support[u8GOP]==TRUE) in GOP_MapFB2Win()
3418 MDrv_GOP_GWIN_AFBCSetWindow(g_pGOPCtxLocal, u8GOP, &sAFBCWinProperty, TRUE); in GOP_MapFB2Win()
3420 MDrv_GOP_GWIN_AFBCMode(g_pGOPCtxLocal, u8GOP, bAFBC_Enable,eAFBC_cmd); in GOP_MapFB2Win()
3426 MS_U32 GOP_Set_Hscale(void* pInstance,MS_U8 u8GOP,MS_BOOL bEnable, MS_U16 src, MS_U16 dst) in GOP_Set_Hscale() argument
3445 g_pGOPCtxLocal->pGOPCtxShared->u16HScaleDst[u8GOP] = dst; in GOP_Set_Hscale()
3449 g_pGOPCtxLocal->pGOPCtxShared->u16HScaleDst[u8GOP] = 0; in GOP_Set_Hscale()
3451 MDrv_GOP_GWIN_Set_HSCALE(g_pGOPCtxLocal,u8GOP, bEnable, src, dst); in GOP_Set_Hscale()
3452 MDrv_GOP_Set3DOSD_Middle(g_pGOPCtxLocal, u8GOP); in GOP_Set_Hscale()
3453 MDrv_GOP_GWIN_UpdateReg(g_pGOPCtxLocal,u8GOP); in GOP_Set_Hscale()
3485 MS_U32 GOP_Set_Vscale(void* pInstance,MS_U8 u8GOP,MS_BOOL bEnable, MS_U16 src, MS_U16 dst) in GOP_Set_Vscale() argument
3504 g_pGOPCtxLocal->pGOPCtxShared->u16VScaleDst[u8GOP] = dst; in GOP_Set_Vscale()
3508 g_pGOPCtxLocal->pGOPCtxShared->u16VScaleDst[u8GOP] = 0; in GOP_Set_Vscale()
3510 MDrv_GOP_GWIN_Set_VSCALE(g_pGOPCtxLocal, u8GOP,bEnable, src, dst); in GOP_Set_Vscale()
3511 MDrv_GOP_Set3DOSD_Middle(g_pGOPCtxLocal, u8GOP); in GOP_Set_Vscale()
3512 MDrv_GOP_GWIN_UpdateReg(g_pGOPCtxLocal,u8GOP); in GOP_Set_Vscale()
4088 MS_U32 GOP_MIUSel(void* pInstance,MS_U8 u8GOP, EN_GOP_SEL_TYPE MiuSel ) in GOP_MIUSel() argument
4095 MDrv_GOP_MIU_Sel(g_pGOPCtxLocal,u8GOP,(E_DRV_GOP_SEL_TYPE)MiuSel); in GOP_MIUSel()
4100 MS_U8 GOP_GetMIUSel(void* pInstance,MS_U8 u8GOP) in GOP_GetMIUSel() argument
4107 return MDrv_GOP_Get_MIU_Sel(g_pGOPCtxLocal,u8GOP); in GOP_GetMIUSel()
4132 MS_U32 GOP_SetContrast(void* pInstance,MS_U8 u8GOP, MS_U16 u16YContrast, MS_U16 u16UContrast, MS_U1… in GOP_SetContrast() argument
4141 …enRet = (E_GOP_API_Result)MDrv_GOP_SetGOPContrast( g_pGOPCtxLocal, u8GOP, u16YContrast, u16UContra… in GOP_SetContrast()
4146 MS_U32 GOP_GetContrast(void* pInstance,MS_U8 u8GOP, MS_U32* YContrast, MS_U32* UContrast, MS_U32* V… in GOP_GetContrast() argument
4155 …enRet = (E_GOP_API_Result)MDrv_GOP_GetGOPContrast( g_pGOPCtxLocal, u8GOP, YContrast, UContrast, VC… in GOP_GetContrast()
4161 MS_U32 GOP_SetBrightness(void* pInstance,MS_U8 u8GOP,MS_U16 u16BriVal,MS_BOOL bMSB) in GOP_SetBrightness() argument
4170 enRet = (E_GOP_API_Result)MDrv_GOP_SetGOPBrightness(g_pGOPCtxLocal, u8GOP, u16BriVal,bMSB); in GOP_SetBrightness()
4175 MS_U32 GOP_GetBrightness(void* pInstance,MS_U8 u8GOP,MS_U16* u16BriVal,MS_BOOL* bMSB) in GOP_GetBrightness() argument
4184 enRet =(E_GOP_API_Result)MDrv_GOP_GetGOPBrightness(g_pGOPCtxLocal,u8GOP,u16BriVal,bMSB); in GOP_GetBrightness()
4190 MS_U32 GOP_SetOutputColor(void* pInstance,MS_U8 u8GOP, EN_GOP_OUTPUT_COLOR type) in GOP_SetOutputColor() argument
4198 g_pGOPCtxLocal->pGOPCtxShared->s32OutputColorType[u8GOP] = (MS_S32)type; in GOP_SetOutputColor()
4199 MDrv_GOP_GWIN_OutputColor(g_pGOPCtxLocal,u8GOP, (GOP_OupputColor)type); in GOP_SetOutputColor()
4204 MS_U32 GOP_SetUVSwap(void* pInstance,MS_U8 u8GOP, MS_BOOL bEn) in GOP_SetUVSwap() argument
4212 if (!_GOP_IsGopNumValid(pInstance,u8GOP)) in GOP_SetUVSwap()
4214 GOP_M_ERR("[%s][%d]GOP %d is out of range\n",__FUNCTION__,__LINE__,u8GOP); in GOP_SetUVSwap()
4218 MDrv_GOP_SetUVSwap(g_pGOPCtxLocal, u8GOP, bEn); in GOP_SetUVSwap()
4219 MDrv_GOP_GWIN_UpdateReg(g_pGOPCtxLocal,u8GOP); in GOP_SetUVSwap()
4226 MS_U32 GOP_SetYCSwap(void* pInstance,MS_U8 u8GOP, MS_BOOL bEn) in GOP_SetYCSwap() argument
4234 if (!_GOP_IsGopNumValid(pInstance,u8GOP)) in GOP_SetYCSwap()
4236 GOP_M_ERR("[%s][%d]GOP %d is out of range\n",__FUNCTION__,__LINE__,u8GOP); in GOP_SetYCSwap()
4241 MDrv_GOP_SetYCSwap(g_pGOPCtxLocal, u8GOP, bEn); in GOP_SetYCSwap()
4242 MDrv_GOP_GWIN_UpdateReg(g_pGOPCtxLocal,u8GOP); in GOP_SetYCSwap()
4325 MS_U32 GOP_SetHStart(void* pInstance,MS_U8 u8GOP,MS_U16 u16PanelHStr) in GOP_SetHStart() argument
4333 if (!_GOP_IsGopNumValid(pInstance,u8GOP)) in GOP_SetHStart()
4335 GOP_M_ERR("[%s][%d]GOP %d is out of range\n",__FUNCTION__,__LINE__,u8GOP); in GOP_SetHStart()
4339 g_pGOPCtxLocal->pGOPCtxShared->u16PnlHStr[u8GOP] = u16PanelHStr; in GOP_SetHStart()
4340 _GOP_InitHSPDByGOP(pInstance,u8GOP); in GOP_SetHStart()
4341 MDrv_GOP_GWIN_UpdateReg(g_pGOPCtxLocal, u8GOP); in GOP_SetHStart()
4346 MS_U32 GOP_SetPanelTiming(void* pInstance,MS_U8 u8GOP,PST_GOP_TIMING_INFO pstInfo) in GOP_SetPanelTiming() argument
4353 if (!_GOP_IsGopNumValid(pInstance,u8GOP)) in GOP_SetPanelTiming()
4355 GOP_M_ERR("[%s][%d]GOP %d is out of range\n",__FUNCTION__,__LINE__,u8GOP); in GOP_SetPanelTiming()
4359 g_pGOPCtxLocal->pGOPCtxShared->u16PnlHStr[u8GOP] = pstInfo->u16DEHStart; in GOP_SetPanelTiming()
4360 g_pGOPCtxLocal->pGOPCtxShared->u16PnlWidth[u8GOP] = pstInfo->u16DEHSize; in GOP_SetPanelTiming()
4361 g_pGOPCtxLocal->pGOPCtxShared->u16PnlHeight[u8GOP] = pstInfo->u16DEVSize; in GOP_SetPanelTiming()
4362 _GOP_InitHSPDByGOP(pInstance,u8GOP); in GOP_SetPanelTiming()
4366 MS_U32 GOP_GetPanelTiming(void* pInstance,MS_U8 u8GOP,PST_GOP_TIMING_INFO pstInfo) in GOP_GetPanelTiming() argument
4373 if (!_GOP_IsGopNumValid(pInstance,u8GOP)) in GOP_GetPanelTiming()
4375 GOP_M_ERR("[%s][%d]GOP %d is out of range\n",__FUNCTION__,__LINE__,u8GOP); in GOP_GetPanelTiming()
4379 pstInfo->u16DEHStart = g_pGOPCtxLocal->pGOPCtxShared->u16PnlHStr[u8GOP]; in GOP_GetPanelTiming()
4380 pstInfo->u16DEHSize = g_pGOPCtxLocal->pGOPCtxShared->u16PnlWidth[u8GOP]; in GOP_GetPanelTiming()
4381 pstInfo->u16DEVSize = g_pGOPCtxLocal->pGOPCtxShared->u16PnlHeight[u8GOP]; in GOP_GetPanelTiming()
4478 MS_U8 u8GOP,u8MIU; in GOP_Win_Destroy_Abnormal() local
4516 u8GOP = MDrv_DumpGopByGwinId(g_pGOPCtxLocal,(gId)); in GOP_Win_Destroy_Abnormal()
4517 u8MIU = MDrv_GOP_Get_MIU_Sel(g_pGOPCtxLocal,u8GOP); in GOP_Win_Destroy_Abnormal()
4518 if(g_pGOPCtxLocal->pGOPCtxShared->bTLB[u8GOP] != TRUE) in GOP_Win_Destroy_Abnormal()
4535 void GOP_ResetGOP(void* pInstance,MS_U8 u8GOP) in GOP_ResetGOP() argument
4558 u8GwinId = _GOP_SelGwinId2(pInstance,u8GOP, 0); in GOP_ResetGOP()
4559 for(i = u8GwinId; i < u8GwinId + MDrv_GOP_GetGwinNum(g_pGOPCtxLocal,u8GOP); i++) in GOP_ResetGOP()
4590 static void GOP_GWIN_InitByGOP(void* pInstance,MS_BOOL bFirstIntance, MS_U8 u8GOP) in GOP_GWIN_InitByGOP() argument
4608 if (!_GOP_IsGopNumValid(pInstance,u8GOP)) in GOP_GWIN_InitByGOP()
4610 GOP_M_ERR("[%s][%d]GOP %d is out of range\n",__FUNCTION__,__LINE__,u8GOP); in GOP_GWIN_InitByGOP()
4652 if(FALSE ==g_pGOPCtxLocal->pGOPCtxShared->bGopHasInitialized[u8GOP]) in GOP_GWIN_InitByGOP()
4656 for (i = 0; i<MDrv_GOP_GetGwinNum(g_pGOPCtxLocal,u8GOP); i++) in GOP_GWIN_InitByGOP()
4658 u8MIU = MDrv_GOP_Get_MIU_Sel(g_pGOPCtxLocal,u8GOP); in GOP_GWIN_InitByGOP()
4659 if(g_pGOPCtxLocal->pGOPCtxShared->bTLB[u8GOP] != TRUE) in GOP_GWIN_InitByGOP()
4663 u32index = _GOP_SelGwinId2(pInstance,u8GOP, i); in GOP_GWIN_InitByGOP()
4673 MDrv_GOP_GWIN_ForceWrite_Update(g_pGOPCtxLocal, u8GOP, FALSE); in GOP_GWIN_InitByGOP()
4675 MDrv_GOP_GWIN_ForceWrite_Update(g_pGOPCtxLocal, u8GOP, TRUE); in GOP_GWIN_InitByGOP()
4726 MS_U32 GOP_GWIN_OutputLayerSwitch(void* pInstance,MS_U8 u8GOP) in GOP_GWIN_OutputLayerSwitch() argument
4739 if (!_GOP_IsGopNumValid(pInstance,u8GOP)) in GOP_GWIN_OutputLayerSwitch()
4741 GOP_M_ERR("[%s][%d]GOP %d is out of range\n",__FUNCTION__,__LINE__,u8GOP); in GOP_GWIN_OutputLayerSwitch()
4745 GOPRet = (E_GOP_API_Result)MDrv_GOP_SetGOPHighPri(g_pGOPCtxLocal, u8GOP); in GOP_GWIN_OutputLayerSwitch()
5150 MS_U32 GOP_GWIN_Set_VStretchMode(void* pInstance,MS_U8 u8GOP,EN_GOP_STRETCH_VMODE VStrchMode) in GOP_GWIN_Set_VStretchMode() argument
5161 MDrv_GOP_GWIN_Set_VStretchMode(g_pGOPCtxLocal,u8GOP,E_DRV_GOP_VSTRCH_LINEAR); in GOP_GWIN_Set_VStretchMode()
5162 … MDrv_GOP_GWIN_Load_VStretchModeTable(g_pGOPCtxLocal,u8GOP,(DRV_GOPStrchVMode)VStrchMode); in GOP_GWIN_Set_VStretchMode()
5168 MDrv_GOP_GWIN_Set_VStretchMode(g_pGOPCtxLocal,u8GOP, (DRV_GOPStrchVMode)VStrchMode); in GOP_GWIN_Set_VStretchMode()
5176 MS_U32 GOP_GWIN_Set_HStretchMode(void* pInstance,MS_U8 u8GOP,EN_GOP_STRETCH_HMODE HStrchMode) in GOP_GWIN_Set_HStretchMode() argument
5185 … MDrv_GOP_GWIN_Set_HStretchMode(g_pGOPCtxLocal,u8GOP, (DRV_GOPStrchHMode)E_GOP_HSTRCH_DUPLICATE); in GOP_GWIN_Set_HStretchMode()
5197 … MDrv_GOP_GWIN_Set_HStretchMode(g_pGOPCtxLocal,u8GOP, (DRV_GOPStrchHMode)E_GOP_HSTRCH_6TAPE); in GOP_GWIN_Set_HStretchMode()
5198 … MDrv_GOP_GWIN_Load_HStretchModeTable(g_pGOPCtxLocal,u8GOP,(DRV_GOPStrchHMode)HStrchMode); in GOP_GWIN_Set_HStretchMode()
5201 … MDrv_GOP_GWIN_Set_HStretchMode(g_pGOPCtxLocal,u8GOP, (DRV_GOPStrchHMode)E_GOP_HSTRCH_4TAPE); in GOP_GWIN_Set_HStretchMode()
5210 MS_U32 GOP_GWIN_Set_TranspColorStretchMode(void* pInstance,MS_U8 u8GOP,EN_GOP_STRCH_TRANSPCOLORMODE… in GOP_GWIN_Set_TranspColorStretchMode() argument
5217 …enRet = (E_GOP_API_Result)MDrv_GOP_GWIN_Set_TranspColorStretchMode(g_pGOPCtxLocal,u8GOP, (DRV_GOPS… in GOP_GWIN_Set_TranspColorStretchMode()
5769 MS_U8 u8GOP; in GOP_Set3DOSDMode() local
5780 u8GOP = MDrv_DumpGopByGwinId(g_pGOPCtxLocal,u8Gwin); in GOP_Set3DOSDMode()
5786 enRet = MDrv_GOP_Set3DOSD_Mode(g_pGOPCtxLocal, u8GOP, E_DRV_GOP_3D_DISABLE); in GOP_Set3DOSDMode()
5819 enRet = MDrv_GOP_Set3DOSD_Mode(g_pGOPCtxLocal, u8GOP, (EN_DRV_GOP_3D_MODE)en3DMode); in GOP_Set3DOSDMode()
5839 if(g_pGOPCtxLocal->pGOPCtxShared->bTLB[u8GOP]) in GOP_Set3DOSDMode()
5843 MDrv_GOP_GWIN_GetDstPlane(g_pGOPCtxLocal, u8GOP, &GopDst); in GOP_Set3DOSDMode()
5856 if(u8GOP > GOPTYPE.GOP0) in GOP_Set3DOSDMode()
5860 MDrv_GOP_GWIN_GetDstPlane(g_pGOPCtxLocal, u8GOP, &GopDst); in GOP_Set3DOSDMode()
5872 if(g_pGOPCtxLocal->pGOPCtxShared->bTLB[u8GOP]) in GOP_Set3DOSDMode()
5874 … (pwinFB->addr/PAGE_SIZE)*TLB_PER_ENTRY_SIZE + g_pGOPCtxLocal->pGOPCtxShared->u64TLBAddress[u8GOP]; in GOP_Set3DOSDMode()
5875 MDrv_GOP_SetTLBSubAddr(g_pGOPCtxLocal,u8GOP,TLBSubAddr); in GOP_Set3DOSDMode()
5887 MDrv_GOP_Set3DOSD_Middle(g_pGOPCtxLocal, u8GOP); in GOP_Set3DOSDMode()
5888 MDrv_GOP_GWIN_UpdateReg(g_pGOPCtxLocal,u8GOP); in GOP_Set3DOSDMode()
5928 MS_U32 GOP_GWIN_SetBnkForceWrite(void* pInstance,MS_U8 u8GOP, MS_BOOL bEnable) in GOP_GWIN_SetBnkForceWrite() argument
5937 bInitBkFWR[u8GOP] = bEnable; in GOP_GWIN_SetBnkForceWrite()
5949 bInitBkFWR[u8GOP] = bEnable; in GOP_GWIN_SetBnkForceWrite()
5950 MDrv_GOP_GWIN_SetBnkForceWrite(g_pGOPCtxLocal, u8GOP, bEnable); in GOP_GWIN_SetBnkForceWrite()
5978 MS_U32 GOP_Set3D_LR_FrameExchange(void* pInstance,MS_U8 u8GOP) in GOP_Set3D_LR_FrameExchange() argument
5986 if (!_GOP_IsGopNumValid(pInstance,u8GOP)) in GOP_Set3D_LR_FrameExchange()
5988 GOP_M_ERR("[%s][%d]GOP %d is out of range\n",__FUNCTION__,__LINE__,u8GOP); in GOP_Set3D_LR_FrameExchange()
5992 enRet = MDrv_GOP_Set3D_LR_FrameExchange(g_pGOPCtxLocal, u8GOP); in GOP_Set3D_LR_FrameExchange()
5993 MDrv_GOP_GWIN_UpdateReg(g_pGOPCtxLocal,u8GOP); in GOP_Set3D_LR_FrameExchange()
5996 MS_U32 GOP_Enable_VEOSD(void* pInstance,MS_U8 u8GOP, MS_BOOL bEn) in GOP_Enable_VEOSD() argument
5998 MS_U8 GOPNum = u8GOP; in GOP_Enable_VEOSD()
6006 MDrv_GOP_GWIN_GetDstPlane(g_pGOPCtxLocal, u8GOP, &pGopDst); in GOP_Enable_VEOSD()
6030 MS_U32 GOP_OutputLayerSwitch(void* pInstance,MS_U8 u8GOP) in GOP_OutputLayerSwitch() argument
6038 if (!_GOP_IsGopNumValid(pInstance,u8GOP)) in GOP_OutputLayerSwitch()
6040 GOP_M_ERR("[%s][%d]GOP %d is out of range\n",__FUNCTION__,__LINE__,u8GOP); in GOP_OutputLayerSwitch()
6044 … u8GOP=%u\n", __FUNCTION__, __LINE__, (ptrdiff_t)getpid(), (ptrdiff_t)MsOS_GetOSThreadID(), u8GOP); in GOP_OutputLayerSwitch()
6046 MDrv_GOP_SetGOPHighPri(g_pGOPCtxLocal, u8GOP); in GOP_OutputLayerSwitch()
6053 MS_U32 GOP_GWIN_SwapOverlapWin(void* pInstance,MS_U8 u8GOP, MS_U8 u8win) in GOP_GWIN_SwapOverlapWin() argument
6070 if (!_GOP_IsGopNumValid(pInstance,u8GOP)) in GOP_GWIN_SwapOverlapWin()
6072 GOP_M_ERR("[%s][%d]GOP %d is out of range\n",__FUNCTION__,__LINE__,u8GOP); in GOP_GWIN_SwapOverlapWin()
6076 if (u8GOP==1) //GOP1 in GOP_GWIN_SwapOverlapWin()
6120 MS_U32 GOP_SetGOPBWStrength(void* pInstance,EN_GOP_BW_STRENGTH eGOPBWStr, MS_U8 u8GOP) in GOP_SetGOPBWStrength() argument
6127 if (u8GOP !=0xc && !_GOP_IsGwinIdValid(pInstance,u8GOP)) in GOP_SetGOPBWStrength()
6134 MDrv_GOP_SetGOPBWStrength(g_pGOPCtxLocal, u8GOP,E_GOP_BURSTLEN_LONG); in GOP_SetGOPBWStrength()
6136 MDrv_GOP_SetGOPBWStrength(g_pGOPCtxLocal, u8GOP,E_GOP_BURSTLEN_MIDDLE); in GOP_SetGOPBWStrength()
6138 MDrv_GOP_SetGOPBWStrength(g_pGOPCtxLocal, u8GOP,E_GOP_BURSTLEN_SHORT); in GOP_SetGOPBWStrength()
6146 MS_U32 GOP_GetGOPBWStrength(void* pInstance,MS_U8 u8GOP, EN_GOP_BW_STRENGTH* curBW) in GOP_GetGOPBWStrength() argument
6156 if (!_GOP_IsGwinIdValid(pInstance,u8GOP)) in GOP_GetGOPBWStrength()
6161 gopbw = MDrv_GOP_GetGOPBWStrength(g_pGOPCtxLocal, u8GOP); in GOP_GetGOPBWStrength()
6179 MS_U32 GOP_EnableLBCouple(void* pInstance,MS_U8 u8GOP, MS_BOOL bEnable) in GOP_EnableLBCouple() argument
6186 MDrv_GOP_EnableLBCouple(g_pGOPCtxLocal, u8GOP, bEnable); in GOP_EnableLBCouple()
6187 MDrv_GOP_GWIN_UpdateReg(g_pGOPCtxLocal,u8GOP); in GOP_EnableLBCouple()
6191 MS_U32 GOP_SetGOPYUV(void* pInstance,MS_U8 u8GOP) in GOP_SetGOPYUV() argument
6198 if(u8GOP !=0xC &&!_GOP_IsGwinIdValid(pInstance,u8GOP)) in GOP_SetGOPYUV()
6203 MDrv_GOP_SetGOPYUV(g_pGOPCtxLocal, u8GOP); in GOP_SetGOPYUV()
6364 MS_U32 GOP_MIXER_EnableOldBlendingMode(void* pInstance, MS_U8 u8GOP, MS_BOOL bEnable) in GOP_MIXER_EnableOldBlendingMode() argument
6371 enRet = (E_GOP_API_Result)MDrv_GOP_MIXER_EnableOldBlendMode(g_pGOPCtxLocal, u8GOP, bEnable); in GOP_MIXER_EnableOldBlendingMode()
6376 MS_U32 GOP_GWIN_SetRelativeWinPrio(void* pInstance,MS_U8 u8GOP, GOP_GwinPri *pGwinPri) in GOP_GWIN_SetRelativeWinPrio() argument
6387 if(u8GOP>=MDrv_GOP_GetMaxGOPNum(g_pGOPCtxLocal)|| (NULL == pGwinPri) in GOP_GWIN_SetRelativeWinPrio()
6393 …u8Idx2 = (u8GOP==0) ? MDrv_GOP_GetGwinNum(g_pGOPCtxLocal,0) : (MS_U8)g_pGOPCtxLocal->pGopChipPrope… in GOP_GWIN_SetRelativeWinPrio()
6403 if ((u8GOP==2) || (u8GOP==3)) in GOP_GWIN_SetRelativeWinPrio()
6409 if(u8GOP==1) in GOP_GWIN_SetRelativeWinPrio()
6424 MDrv_GOP_GWIN_GetGwinPriority(g_pGOPCtxLocal, u8GOP, &GopGwinPri); in GOP_GWIN_SetRelativeWinPrio()
6561 MS_U32 Ioctl_GOP_Init(void* pInstance,MS_U8 u8GOP,GOP_InitInfo *pGopInit) in Ioctl_GOP_Init() argument
6609 if (!_GOP_IsGopNumValid(pInstance,u8GOP)) in Ioctl_GOP_Init()
6611 GOP_M_ERR("[%s][%d]GOP %d is out of range\n",__FUNCTION__,__LINE__,u8GOP); in Ioctl_GOP_Init()
6643 g_pGOPCtxLocal->pGOPCtxShared->u16PnlWidth[u8GOP] = pGopInit->u16PanelWidth; in Ioctl_GOP_Init()
6644 g_pGOPCtxLocal->pGOPCtxShared->u16PnlHeight[u8GOP] = pGopInit->u16PanelHeight; in Ioctl_GOP_Init()
6645 g_pGOPCtxLocal->pGOPCtxShared->u16PnlHStr[u8GOP] = pGopInit->u16PanelHStr; in Ioctl_GOP_Init()
6647 …MDrv_GOP_GWIN_ForceWrite_Update(g_pGOPCtxLocal, u8GOP, TRUE);//if use double buffer write in GOP i… in Ioctl_GOP_Init()
6654 if(FALSE == g_pGOPCtxLocal->pGOPCtxShared->bGopHasInitialized[u8GOP]) in Ioctl_GOP_Init()
6659 g_pGOPCtxLocal->pGOPCtxShared->bPixelMode[u8GOP] = TRUE; in Ioctl_GOP_Init()
6662 GOP_GWIN_InitByGOP(pInstance,bFirstInstance, u8GOP); in Ioctl_GOP_Init()
6665 …MDrv_GOP_Init(g_pGOPCtxLocal, u8GOP, pGopInit->u32GOPRegdmaAdr, pGopInit->u32GOPRegdmaLen, pGopIni… in Ioctl_GOP_Init()
6667 MDrv_GOP_GWIN_EnableProgressive(g_pGOPCtxLocal, u8GOP, TRUE); in Ioctl_GOP_Init()
6668 MDrv_GOP_GWIN_SetDstPlane(g_pGOPCtxLocal, u8GOP, E_DRV_GOP_DST_VOP,FALSE); in Ioctl_GOP_Init()
6669 …MDrv_GOP_GWIN_SetStretchWin(u8GOP, E_GOP_DST_VOP,0, 0, g_pGOPCtxLocal->pGOPCtxShared->u16PnlWidth,… in Ioctl_GOP_Init()
6672 MDrv_GOP_SetGOPClk(g_pGOPCtxLocal, u8GOP, E_GOP_DST_VOP); in Ioctl_GOP_Init()
6673 MDrv_GOP_GWIN_OutputColor(g_pGOPCtxLocal,u8GOP,DRV_GOPOUT_RGB); in Ioctl_GOP_Init()
6677 MDrv_GOP_GWIN_EnableProgressive(g_pGOPCtxLocal, u8GOP, TRUE); in Ioctl_GOP_Init()
6678 MDrv_GOP_GWIN_SetAlphaInverse(g_pGOPCtxLocal,u8GOP,TRUE); in Ioctl_GOP_Init()
6679 MDrv_GOP_GWIN_SetDstPlane(g_pGOPCtxLocal, u8GOP, E_DRV_GOP_DST_OP0,FALSE); in Ioctl_GOP_Init()
6681 MDrv_GOP_SetGOPClk(g_pGOPCtxLocal, u8GOP, GopDst); in Ioctl_GOP_Init()
6685 …hWin(g_pGOPCtxLocal,u8GOP,0, 0, g_pGOPCtxLocal->pGOPCtxShared->u16PnlWidth[u8GOP], g_pGOPCtxLocal-… in Ioctl_GOP_Init()
6687 if (u8GOP==0) in Ioctl_GOP_Init()
6691 else if (u8GOP==1) in Ioctl_GOP_Init()
6695 else if (u8GOP==2) in Ioctl_GOP_Init()
6700 MDrv_GOP_GWIN_EnableTransClr(g_pGOPCtxLocal,u8GOP, (GOP_TransClrFmt)0, FALSE); in Ioctl_GOP_Init()
6703 MDrv_GOP_SetGOPEnable2SC(g_pGOPCtxLocal, u8GOP, TRUE); in Ioctl_GOP_Init()
6706 g_pGOPCtxLocal->pGOPCtxShared->bGopHasInitialized[u8GOP] = TRUE; in Ioctl_GOP_Init()
6710 …MDrv_GOP_PerClientInit(g_pGOPCtxLocal, u8GOP, pGopInit->u32GOPRegdmaAdr, pGopInit->u32GOPRegdmaLen… in Ioctl_GOP_Init()
6711 …_GOP_InitHSPDByGOP(pInstance,u8GOP); //Fix me, temporary solution for removing calling of "MApi_GO… in Ioctl_GOP_Init()
6722 … MDrv_GOP_GWIN_SetPaletteOpt(g_pGOPCtxLocal,u8GOP, pPalArray, 0, 255, E_DRV_GOP_PAL_ARGB8888); in Ioctl_GOP_Init()
6723 MDrv_GOP_GWIN_2GSetPaletteOpt(g_pGOPCtxLocal,u8GOP, pPalArray, 0, 255); in Ioctl_GOP_Init()
6742 MDrv_GOP_GWIN_ForceWrite_Update(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_Init()
6747 MDrv_GOP_GWIN_SetBnkForceWrite(g_pGOPCtxLocal,u8GOP,bInitBkFWR[u8GOP]); in Ioctl_GOP_Init()
7747 MS_U32 Ioctl_GOP_SetDst(void* pInstance,MS_U8 u8GOP, EN_GOP_DST_TYPE dsttype) in Ioctl_GOP_SetDst() argument
7758 if ((!_GOP_IsGopNumValid(pInstance,u8GOP))) in Ioctl_GOP_SetDst()
7760 GOP_M_ERR("[%s][%d]GOP %d is out of range\n",__FUNCTION__,__LINE__,u8GOP); in Ioctl_GOP_SetDst()
7764 …NCTION__, __LINE__, (ptrdiff_t)getpid(), (ptrdiff_t)MsOS_GetOSThreadID(), u8GOP, (ptrdiff_t)dsttyp… in Ioctl_GOP_SetDst()
7768 (MDrv_GOP_GWIN_SetDstPlane(g_pGOPCtxLocal, u8GOP, GopDst,FALSE)); in Ioctl_GOP_SetDst()
7779 MDrv_GOP_GWIN_SetMux(g_pGOPCtxLocal, u8GOP, E_GOP_IP0_MUX); in Ioctl_GOP_SetDst()
7780 _GOP_InitHSPDByGOP(pInstance,u8GOP); in Ioctl_GOP_SetDst()
7787 if (!_IsGopInMux1(pInstance,u8GOP)) in Ioctl_GOP_SetDst()
7800 if (u8GOP == u8GetGOPNum) in Ioctl_GOP_SetDst()
7804 MDrv_GOP_GWIN_SetMux(g_pGOPCtxLocal, u8GOP, E_GOP_MUX1); in Ioctl_GOP_SetDst()
7808 _GOP_InitHSPDByGOP(pInstance,u8GOP); in Ioctl_GOP_SetDst()
7816 if (!_IsGopInMux3(pInstance,u8GOP)) in Ioctl_GOP_SetDst()
7828 if (u8GOP == u8GetGOPNum) in Ioctl_GOP_SetDst()
7832 MDrv_GOP_GWIN_SetMux(g_pGOPCtxLocal, u8GOP, E_GOP_MUX3); in Ioctl_GOP_SetDst()
7835 _GOP_InitHSPDByGOP(pInstance,u8GOP); in Ioctl_GOP_SetDst()
7842 if (!_IsGopInMux0(pInstance,u8GOP)) //jasmine:FIXME in Ioctl_GOP_SetDst()
7854 if (u8GOP == u8GetGOPNum) in Ioctl_GOP_SetDst()
7858 MDrv_GOP_GWIN_SetMux(g_pGOPCtxLocal, u8GOP, E_GOP_MUX0); in Ioctl_GOP_SetDst()
7861 _GOP_InitHSPDByGOP(pInstance,u8GOP); in Ioctl_GOP_SetDst()
7867 MDrv_GOP_SetGOPEnable2SC(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
7868 _GOP_SetOCCapability(pInstance,u8GOP, GopDst); in Ioctl_GOP_SetDst()
7869 if (u8GOP==0) in Ioctl_GOP_SetDst()
7871 else if (u8GOP==1) in Ioctl_GOP_SetDst()
7876 MDrv_GOP_SelfFirstHs(g_pGOPCtxLocal, u8GOP, TRUE); in Ioctl_GOP_SetDst()
7883 MDrv_GOP_SetGOPEnable2SC(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
7884 MDrv_GOP_GWIN_EnableProgressive(g_pGOPCtxLocal, u8GOP, TRUE); in Ioctl_GOP_SetDst()
7885 MDrv_GOP_GWIN_OutputColor(g_pGOPCtxLocal,u8GOP,DRV_GOPOUT_YUV); in Ioctl_GOP_SetDst()
7886 MDrv_GOP_GWIN_SetAlphaInverse(g_pGOPCtxLocal, u8GOP, TRUE); in Ioctl_GOP_SetDst()
7888 MDrv_GOP_SetGOPClk(g_pGOPCtxLocal,u8GOP,E_DRV_GOP_DST_MIXER2VE); in Ioctl_GOP_SetDst()
7890 MDrv_GOP_GWIN_SetMixerDstPlane(g_pGOPCtxLocal,u8GOP,GopDst); in Ioctl_GOP_SetDst()
7892 (MDrv_GOP_MIXER_SetGOPEnable2Mixer(g_pGOPCtxLocal, u8GOP, TRUE)); in Ioctl_GOP_SetDst()
7899 MDrv_GOP_SelfFirstHs(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
7903 _GOP_SetOCCapability(pInstance,u8GOP, GopDst); in Ioctl_GOP_SetDst()
7905 if((g_pGOPCtxLocal->pGopChipProperty->bNewMux) && (!_IsGopInOPMux(pInstance,u8GOP))) in Ioctl_GOP_SetDst()
7911 MDrv_GOP_GWIN_SetMux(g_pGOPCtxLocal, u8GOP, OPMux); in Ioctl_GOP_SetDst()
7915 MDrv_GOP_GWIN_SetMux(g_pGOPCtxLocal, u8GOP, E_GOP_MUX2); in Ioctl_GOP_SetDst()
7924 if(!_IsGopInMux0To3(pInstance,u8GOP)) in Ioctl_GOP_SetDst()
7938 MDrv_GOP_GWIN_SetMux(g_pGOPCtxLocal, u8GOP, (Gop_MuxSel)i); in Ioctl_GOP_SetDst()
7945 if (_IsGopInMux3(pInstance,u8GOP)) in Ioctl_GOP_SetDst()
7960 MDrv_GOP_GWIN_SetMux(g_pGOPCtxLocal, u8GOP, (Gop_MuxSel)i); in Ioctl_GOP_SetDst()
7968 … if (_IsGopInMux1(pInstance,u8GOP)&&_IsGopInMux0To3(pInstance,g_pGOPCtxLocal->u8ChgIpMuxGop)) in Ioctl_GOP_SetDst()
7983 MDrv_GOP_GWIN_SetMux(g_pGOPCtxLocal, u8GOP, (Gop_MuxSel)i); in Ioctl_GOP_SetDst()
7993 if (u8GOP==0) in Ioctl_GOP_SetDst()
7995 else if (u8GOP==1) in Ioctl_GOP_SetDst()
8000 MDrv_GOP_SetGOPEnable2SC(g_pGOPCtxLocal, u8GOP, TRUE); in Ioctl_GOP_SetDst()
8002 _GOP_InitHSPDByGOP(pInstance,u8GOP); in Ioctl_GOP_SetDst()
8005 MDrv_GOP_GWIN_EnableProgressive(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8009 MDrv_GOP_GWIN_EnableProgressive(g_pGOPCtxLocal, u8GOP, TRUE); in Ioctl_GOP_SetDst()
8011 MDrv_GOP_SelfFirstHs(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8018 MDrv_GOP_GWIN_SetMux(g_pGOPCtxLocal, u8GOP, E_GOP_OP1_MUX); in Ioctl_GOP_SetDst()
8019 _GOP_InitHSPDByGOP(pInstance,u8GOP); in Ioctl_GOP_SetDst()
8023 MDrv_GOP_GWIN_EnableProgressive(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8024 MDrv_GOP_GWIN_SetAlphaInverse(g_pGOPCtxLocal, u8GOP, TRUE); in Ioctl_GOP_SetDst()
8025 MDrv_GOP_GWIN_SetVSyncinverse(g_pGOPCtxLocal,u8GOP, FALSE); in Ioctl_GOP_SetDst()
8026 MDrv_GOP_SetGOPEnable2SC(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8027 _GOP_InitHSPDByGOP(pInstance,u8GOP); in Ioctl_GOP_SetDst()
8028 MDrv_GOP_SelfFirstHs(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8036 GOP_M_INFO("Set to New MVOP Mux GOP:%d\n",u8GOP); in Ioctl_GOP_SetDst()
8037 MDrv_GOP_GWIN_SetMux(g_pGOPCtxLocal, u8GOP, E_GOP_VOP0_MUX); in Ioctl_GOP_SetDst()
8038 _GOP_InitHSPDByGOP(pInstance,u8GOP); in Ioctl_GOP_SetDst()
8040 else if (!_IsGopInMux0(pInstance,u8GOP)) in Ioctl_GOP_SetDst()
8053 if (u8GOP == u8GetGOPNum) in Ioctl_GOP_SetDst()
8057 MDrv_GOP_GWIN_SetMux(g_pGOPCtxLocal, u8GOP, E_GOP_MUX0); in Ioctl_GOP_SetDst()
8060 _GOP_InitHSPDByGOP(pInstance,u8GOP); in Ioctl_GOP_SetDst()
8066 GOP_SetOutputColor(pInstance,u8GOP,GOPOUT_RGB); in Ioctl_GOP_SetDst()
8068 GOP_SetOutputColor(pInstance,u8GOP,GOPOUT_YUV); in Ioctl_GOP_SetDst()
8071 if (u8GOP==0) in Ioctl_GOP_SetDst()
8073 else if (u8GOP==1) in Ioctl_GOP_SetDst()
8079 MDrv_GOP_SetGOPEnable2SC(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8080 _GOP_SetOCCapability(pInstance,u8GOP, GopDst); in Ioctl_GOP_SetDst()
8081 MDrv_GOP_SelfFirstHs(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8087 MDrv_GOP_GWIN_SetMux(g_pGOPCtxLocal, u8GOP, E_GOP_VOP0_SUB_MUX); in Ioctl_GOP_SetDst()
8088 _GOP_InitHSPDByGOP(pInstance,u8GOP); in Ioctl_GOP_SetDst()
8092 GOP_SetOutputColor(pInstance,u8GOP,GOPOUT_RGB); in Ioctl_GOP_SetDst()
8094 GOP_SetOutputColor(pInstance,u8GOP,GOPOUT_YUV); in Ioctl_GOP_SetDst()
8096 if (u8GOP==0) in Ioctl_GOP_SetDst()
8098 else if (u8GOP==1) in Ioctl_GOP_SetDst()
8104 MDrv_GOP_SetGOPEnable2SC(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8105 MDrv_GOP_SelfFirstHs(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8111 MDrv_GOP_GWIN_SetMux(g_pGOPCtxLocal, u8GOP, E_GOP_IP1_MUX); in Ioctl_GOP_SetDst()
8112 _GOP_InitHSPDByGOP(pInstance,u8GOP); in Ioctl_GOP_SetDst()
8114 MDrv_GOP_SetGOPEnable2SC(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8115 MDrv_GOP_GWIN_SetAlphaInverse(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8117 MDrv_GOP_SetGOPClk(g_pGOPCtxLocal,u8GOP,E_DRV_GOP_DST_IP1); in Ioctl_GOP_SetDst()
8118 MDrv_GOP_SelfFirstHs(g_pGOPCtxLocal, u8GOP, TRUE); in Ioctl_GOP_SetDst()
8125 MDrv_GOP_GWIN_SetMux(g_pGOPCtxLocal, u8GOP, E_GOP_IP0_SUB_MUX); in Ioctl_GOP_SetDst()
8126 _GOP_InitHSPDByGOP(pInstance,u8GOP); in Ioctl_GOP_SetDst()
8128 MDrv_GOP_SetGOPEnable2SC(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8129 MDrv_GOP_GWIN_SetAlphaInverse(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8131 MDrv_GOP_SelfFirstHs(g_pGOPCtxLocal, u8GOP, TRUE); in Ioctl_GOP_SetDst()
8137 MDrv_GOP_GWIN_SetMux(g_pGOPCtxLocal, u8GOP, E_GOP_DIP_MUX); in Ioctl_GOP_SetDst()
8138 _GOP_InitHSPDByGOP(pInstance,u8GOP); in Ioctl_GOP_SetDst()
8140 MDrv_GOP_SetGOPEnable2SC(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8141 MDrv_GOP_GWIN_SetAlphaInverse(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8143 MDrv_GOP_SelfFirstHs(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8177 if (u8GOP == u8GetGOPNum) in Ioctl_GOP_SetDst()
8188 MDrv_GOP_GWIN_EnableProgressive(g_pGOPCtxLocal, u8GOP, TRUE); in Ioctl_GOP_SetDst()
8189 MDrv_GOP_GWIN_OutputColor(g_pGOPCtxLocal,u8GOP, DRV_GOPOUT_YUV); in Ioctl_GOP_SetDst()
8190 MDrv_GOP_GWIN_SetAlphaInverse(g_pGOPCtxLocal, u8GOP,TRUE); in Ioctl_GOP_SetDst()
8192 MDrv_GOP_GWIN_SetMixerDstPlane(g_pGOPCtxLocal,u8GOP,GopDst); in Ioctl_GOP_SetDst()
8194 _GOP_InitHSPDByGOP(pInstance,u8GOP); in Ioctl_GOP_SetDst()
8195 (MDrv_GOP_MIXER_SetGOPEnable2Mixer(g_pGOPCtxLocal, u8GOP, TRUE)); in Ioctl_GOP_SetDst()
8196 MDrv_GOP_SelfFirstHs(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8204 MDrv_GOP_GWIN_EnableProgressive(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8205 MDrv_GOP_GWIN_OutputColor(g_pGOPCtxLocal,u8GOP, DRV_GOPOUT_YUV); in Ioctl_GOP_SetDst()
8206 MDrv_GOP_GWIN_SetAlphaInverse(g_pGOPCtxLocal, u8GOP,TRUE); in Ioctl_GOP_SetDst()
8208 MDrv_GOP_GWIN_SetMixerDstPlane(g_pGOPCtxLocal,u8GOP,GopDst); in Ioctl_GOP_SetDst()
8210 _GOP_InitHSPDByGOP(pInstance,u8GOP); in Ioctl_GOP_SetDst()
8211 (MDrv_GOP_MIXER_SetGOPEnable2Mixer(g_pGOPCtxLocal, u8GOP, TRUE)); in Ioctl_GOP_SetDst()
8212 MDrv_GOP_SelfFirstHs(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8216 MDrv_GOP_SetGOPEnable2SC(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8217 …_GOP_InitHSPDByGOP(pInstance,u8GOP); //require update registers at the end of this function after … in Ioctl_GOP_SetDst()
8218 _GOP_SetOCCapability(pInstance,u8GOP, GopDst); in Ioctl_GOP_SetDst()
8219 MDrv_GOP_SelfFirstHs(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8222 MDrv_GOP_SetGOPEnable2SC(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8223 MDrv_GOP_GWIN_EnableProgressive(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8224 MDrv_GOP_GWIN_OutputColor(g_pGOPCtxLocal,u8GOP,DRV_GOPOUT_YUV); in Ioctl_GOP_SetDst()
8225 MDrv_GOP_GWIN_SetAlphaInverse(g_pGOPCtxLocal,u8GOP,FALSE); in Ioctl_GOP_SetDst()
8227 MDrv_GOP_SetGOPClk(g_pGOPCtxLocal,u8GOP,E_DRV_GOP_DST_VE); in Ioctl_GOP_SetDst()
8229 MDrv_GOP_GWIN_SetVSyncinverse(g_pGOPCtxLocal,u8GOP, TRUE); in Ioctl_GOP_SetDst()
8233 (MDrv_GOP_Set_VE_MUX(g_pGOPCtxLocal, u8GOP, TRUE)); in Ioctl_GOP_SetDst()
8235 MDrv_GOP_SelfFirstHs(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8238 _GOP_SetOCCapability(pInstance,u8GOP, GopDst); in Ioctl_GOP_SetDst()
8239 if((g_pGOPCtxLocal->pGopChipProperty->bNewMux) && (!_IsGopInMux0To2(pInstance,u8GOP))) in Ioctl_GOP_SetDst()
8245 MDrv_GOP_GWIN_SetMux(g_pGOPCtxLocal, u8GOP, OPMux); in Ioctl_GOP_SetDst()
8249 MDrv_GOP_GWIN_SetMux(g_pGOPCtxLocal, u8GOP, E_GOP_MUX2); in Ioctl_GOP_SetDst()
8253 MDrv_GOP_GWIN_SetMux(g_pGOPCtxLocal, u8GOP, E_GOP_GS_MUX); in Ioctl_GOP_SetDst()
8255 if (u8GOP==0) in Ioctl_GOP_SetDst()
8257 else if (u8GOP==1) in Ioctl_GOP_SetDst()
8262 MDrv_GOP_SetGOPEnable2SC(g_pGOPCtxLocal, u8GOP, TRUE); in Ioctl_GOP_SetDst()
8263 _GOP_InitHSPDByGOP(pInstance,u8GOP); in Ioctl_GOP_SetDst()
8264 MDrv_GOP_SelfFirstHs(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8267 _GOP_SetOCCapability(pInstance,u8GOP, GopDst); in Ioctl_GOP_SetDst()
8268 _GOP_InitHSPDByGOP(pInstance,u8GOP); in Ioctl_GOP_SetDst()
8269 MDrv_GOP_GWIN_SetMux(g_pGOPCtxLocal, u8GOP, E_GOP_BYPASS_MUX0); in Ioctl_GOP_SetDst()
8270 MDrv_GOP_SetGOPEnable2SC(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8271 MDrv_GOP_SelfFirstHs(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8275 _GOP_SetOCCapability(pInstance,u8GOP, GopDst); in Ioctl_GOP_SetDst()
8276 _GOP_InitHSPDByGOP(pInstance,u8GOP); in Ioctl_GOP_SetDst()
8277 if((!_IsGopInDualOPMux(pInstance,u8GOP))) in Ioctl_GOP_SetDst()
8282 MDrv_GOP_GWIN_SetMux(g_pGOPCtxLocal, u8GOP, OPMux); in Ioctl_GOP_SetDst()
8285 MDrv_GOP_SetGOPEnable2SC(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8286 MDrv_GOP_SelfFirstHs(g_pGOPCtxLocal, u8GOP, FALSE); in Ioctl_GOP_SetDst()
8294 (MDrv_GOP_SetGOPClk(g_pGOPCtxLocal, u8GOP, GopDst)); in Ioctl_GOP_SetDst()
8295 MDrv_GOP_GWIN_UpdateReg(g_pGOPCtxLocal, u8GOP); in Ioctl_GOP_SetDst()
9282 GOP_MIXER_EnableOldBlendingMode(pInstance, pMOBM->u8GOP, pMOBM->bEnable); in Ioctl_GOP_MIXER_SetProperty()
9494 MS_U8 u8GOP; in Ioctl_GOP_SetWinInfo() local
9533 u8GOP = MDrv_DumpGopByGwinId(g_pGOPCtxLocal,gwinId); in Ioctl_GOP_SetWinInfo()
9535 if(u8GOP == GOPTYPE.GOP0) in Ioctl_GOP_SetWinInfo()
9539 else if(u8GOP == GOPTYPE.GOP1) in Ioctl_GOP_SetWinInfo()
9547 if(g_pGOPCtxLocal->pGopChipProperty->bAFBC_Support[u8GOP]==TRUE) in Ioctl_GOP_SetWinInfo()
9555 MDrv_GOP_GWIN_AFBCSetWindow(g_pGOPCtxLocal, u8GOP, &sAFBCWinProperty,FALSE); in Ioctl_GOP_SetWinInfo()
9557 MDrv_GOP_GWIN_UpdateReg(g_pGOPCtxLocal,u8GOP); in Ioctl_GOP_SetWinInfo()
9705 MS_U8 u8GOP; in Ioctl_GOP_SetDisplay() local
9736 u8GOP = MDrv_DumpGopByGwinId(g_pGOPCtxLocal,GwinId); in Ioctl_GOP_SetDisplay()
9739 _GOP_Get_StretchWin(pInstance,u8GOP, &u16Tmp, &u16Tmp, &u16OrigWidth, &u16Tmp); in Ioctl_GOP_SetDisplay()
9748 …_GOP_GWIN_Align_StretchWin(pInstance,u8GOP,pStretchInfo->eDstType , &pStretchInfo->x, &pStretchInf… in Ioctl_GOP_SetDisplay()
9750 g_pGOPCtxLocal->pGOPCtxShared->u16APIStretchWidth[u8GOP] = stretch_w; in Ioctl_GOP_SetDisplay()
9751 g_pGOPCtxLocal->pGOPCtxShared->u16APIStretchHeight[u8GOP]= pStretchInfo->height; in Ioctl_GOP_SetDisplay()
9753 …_GOP_GWIN_Adjust_3DStretchWin(pInstance,u8GOP, &pStretchInfo->x, &pStretchInfo->y, &stretch_w, &pS… in Ioctl_GOP_SetDisplay()
9755 MDrv_GOP_GWIN_SetHTotal(g_pGOPCtxLocal, u8GOP, stretch_w); in Ioctl_GOP_SetDisplay()
9757 …MDrv_GOP_GWIN_SetStretchWin(g_pGOPCtxLocal, u8GOP, pStretchInfo->x, pStretchInfo->y, stretch_w, pS… in Ioctl_GOP_SetDisplay()
9760 GOP_Set_Hscale(pInstance,u8GOP,FALSE, pStretchInfo->width, u16DstWidth); in Ioctl_GOP_SetDisplay()
9762 GOP_Set_Hscale(pInstance,u8GOP,TRUE, pStretchInfo->width, u16DstWidth); in Ioctl_GOP_SetDisplay()
9765 GOP_Set_Vscale(pInstance,u8GOP,FALSE, pStretchInfo->height, u16DstHeight); in Ioctl_GOP_SetDisplay()
9767 GOP_Set_Vscale(pInstance,u8GOP,TRUE, pStretchInfo->height, u16DstHeight); in Ioctl_GOP_SetDisplay()
9778 MDrv_GOP_GWIN_SetHTotal(g_pGOPCtxLocal, u8GOP, stretch_w); in Ioctl_GOP_SetDisplay()
10486 MS_U8 u8GOP; in Ioctl_GOP_PINPON() local
10489 u8GOP = MDrv_DumpGopByGwinId(g_pGOPCtxLocal, pPINPONInfo->GwinId); in Ioctl_GOP_PINPON()
10490 u8FirstGwinByGOP = MDrv_GOP_SelGwinIdByGOP(g_pGOPCtxLocal, u8GOP, 0); in Ioctl_GOP_PINPON()
10495 …PON mode only support the first gwin on GOP:%d\n",__FUNCTION__,__LINE__,pPINPONInfo->GwinId,u8GOP); in Ioctl_GOP_PINPON()
10499 MDrv_GOP_Set_PINPON(g_pGOPCtxLocal, u8GOP, pPINPONInfo->bEnable, pPINPONInfo->mode); in Ioctl_GOP_PINPON()