Lines Matching refs:gId

955 static MS_U8 _GOP_GWIN_IsGwinCreated(void* pInstance,MS_U8 gId)  in _GOP_GWIN_IsGwinCreated()  argument
962 if (!_GOP_IsGwinIdValid(pInstance,gId)) in _GOP_GWIN_IsGwinCreated()
964 GOP_M_ERR("[%s][%d]GWIN %d is out of range\n",__FUNCTION__,__LINE__,gId); in _GOP_GWIN_IsGwinCreated()
968 if((gId< g_pGOPCtxLocal->pGopChipProperty->TotalGwinNum) in _GOP_GWIN_IsGwinCreated()
969 && (GWIN_ID_INVALID ==g_pGOPCtxLocal->pGOPCtxShared->gwinMap[gId].u32CurFBId)) in _GOP_GWIN_IsGwinCreated()
974 GOP_M_INFO("IsGwinCreated Debug: gId=%d\n", gId); in _GOP_GWIN_IsGwinCreated()
1187 static MS_U8 _GOP_GWIN_IsGwinExistInClient(void* pInstance,MS_U8 gId) in _GOP_GWIN_IsGwinExistInClient() argument
1199 if (!_GOP_IsGwinIdValid(pInstance,gId)) in _GOP_GWIN_IsGwinExistInClient()
1201 GOP_M_ERR("[%s][%d]GWIN %d is out of range\n",__FUNCTION__,__LINE__,gId); in _GOP_GWIN_IsGwinExistInClient()
1207 pwinFB = _GetWinFB(pInstance,g_pGOPCtxLocal->pGOPCtxShared->gwinMap[gId].u32CurFBId); in _GOP_GWIN_IsGwinExistInClient()
1211 …Map[%d].u32CurFBId=%td\n",__FUNCTION__,__LINE__,gId,(ptrdiff_t)g_pGOPCtxLocal->pGOPCtxShared->gwin… in _GOP_GWIN_IsGwinExistInClient()
1215 result0 = (MaxGwinSupport<=gId); in _GOP_GWIN_IsGwinExistInClient()
1216 result1 = (FALSE == g_pGOPCtxLocal->pGOPCtxShared->gwinMap[gId].bIsShared); in _GOP_GWIN_IsGwinExistInClient()
1219 result2 = (g_pGOPCtxLocal->pGOPCtxShared->gwinMap[gId].u32GOPClientId != pid); in _GOP_GWIN_IsGwinExistInClient()
1221 …result2 = (g_pGOPCtxLocal->pGOPCtxShared->gwinMap[gId].u32GOPClientId != g_pGOPCtxLocal->u32GOPCli… in _GOP_GWIN_IsGwinExistInClient()
1223 result3 = (DRV_MAX_GWIN_FB_SUPPORT <= g_pGOPCtxLocal->pGOPCtxShared->gwinMap[gId].u32CurFBId); in _GOP_GWIN_IsGwinExistInClient()
1230 GOP_M_INFO("[%s][%d]GWIN %d is not exist\n",__FUNCTION__,__LINE__,gId); in _GOP_GWIN_IsGwinExistInClient()
1232 GOP_M_INFO("IsGwinExistInClient Debug: gId =%d, \n" , gId); in _GOP_GWIN_IsGwinExistInClient()
1233 …ClientId: gId =%d, \n" , (ptrdiff_t)(g_pGOPCtxLocal->pGOPCtxShared->gwinMap[gId].u32GOPClientId) ); in _GOP_GWIN_IsGwinExistInClient()
1235 …ap[gId].u32CurFBId =%d, \n" , (ptrdiff_t)(g_pGOPCtxLocal->pGOPCtxShared->gwinMap[gId].u32CurFBId)); in _GOP_GWIN_IsGwinExistInClient()
3014 static MS_U32 GOP_Win_Destroy(void* pInstance,MS_U32 gId) in GOP_Win_Destroy() argument
3026 GOP_M_INFO("\33[0;36m %s:%d gId = %td \33[m \n",__FUNCTION__,__LINE__,(ptrdiff_t)gId); in GOP_Win_Destroy()
3028 if (!_GOP_IsGwinIdValid(pInstance,gId)) in GOP_Win_Destroy()
3030 GOP_M_ERR("[%s][%d]GWIN %td is out of range\n",__FUNCTION__,__LINE__,(ptrdiff_t)gId); in GOP_Win_Destroy()
3033 if (!_GOP_GWIN_IsGwinExistInClient(pInstance,gId)) in GOP_Win_Destroy()
3035 GOP_M_ERR("[%s][%d]GWIN %td is not exist\n",__FUNCTION__,__LINE__,(ptrdiff_t)gId); in GOP_Win_Destroy()
3039 MDrv_GOP_GWIN_EnableGwin(g_pGOPCtxLocal, gId, FALSE); in GOP_Win_Destroy()
3040 u32fbId = g_pGOPCtxLocal->pGOPCtxShared->gwinMap[gId].u32CurFBId; in GOP_Win_Destroy()
3055 g_pGOPCtxLocal->pGOPCtxShared->gwinMap[gId].u32CurFBId= GWIN_ID_INVALID; in GOP_Win_Destroy()
3056 g_pGOPCtxLocal->pGOPCtxShared->gwinMap[gId].u32GOPClientId = 0; in GOP_Win_Destroy()
3057 g_pGOPCtxLocal->pGOPCtxShared->gwinMap[gId].bIsShared = FALSE; in GOP_Win_Destroy()
3058 g_pGOPCtxLocal->pGOPCtxShared->gwinMap[gId].u16SharedCnt = 0; in GOP_Win_Destroy()
3062 u8GOP = MDrv_DumpGopByGwinId(g_pGOPCtxLocal,(gId)); in GOP_Win_Destroy()
3068 GOP_SetWinInfo(pInstance,gId,&gWin); in GOP_Win_Destroy()
3070 RESET_BIT(g_pGOPCtxLocal->u16GOP_VMirrorRBLK_Adr, gId); in GOP_Win_Destroy()
3071 RESET_BIT(g_pGOPCtxLocal->u16GOP_HMirrorRBLK_Adr, gId); in GOP_Win_Destroy()
3072 RESET_BIT(g_pGOPCtxLocal->u16GOP_HMirror_HPos, gId); in GOP_Win_Destroy()
3073 RESET_BIT(g_pGOPCtxLocal->u16GOP_VMirror_VPos, gId); in GOP_Win_Destroy()
3075 MDrv_GOP_GWIN_ClearFlipQueue(g_pGOPCtxLocal,gId); in GOP_Win_Destroy()
3187 MS_U32 gId; in GOP_PreInit_Ctx()
3202 for( gId=0; gId<MApi_GOP_GWIN_GetTotalGwinNum(); gId++) in GOP_PreInit_Ctx()
3203 g_pGOPCtxLocal->pGOPCtxShared->gwinMap[gId].u32CurFBId= GWIN_ID_INVALID; in GOP_PreInit_Ctx()
3223 for( gId=0; gId<MApi_GOP_GWIN_GetMaxGOPNum(); gId++) in GOP_PreInit_Ctx()
3224 g_pGOPCtxLocal->pGOPCtxShared->s32OutputColorType[gId] = -1; in GOP_PreInit_Ctx()
4473 MS_U32 GOP_Win_Destroy_Abnormal(void* pInstance,MS_U32 gId) in GOP_Win_Destroy_Abnormal() argument
4485 GOP_M_INFO("\33[0;36m %s:%d gId = %td \33[m \n",__FUNCTION__,__LINE__,(ptrdiff_t)gId); in GOP_Win_Destroy_Abnormal()
4487 if (!_GOP_IsGwinIdValid(pInstance,gId)) in GOP_Win_Destroy_Abnormal()
4489 GOP_M_ERR("[%s][%d]GWIN %td is out of range\n",__FUNCTION__,__LINE__,(ptrdiff_t)gId); in GOP_Win_Destroy_Abnormal()
4493 MDrv_GOP_GWIN_EnableGwin(g_pGOPCtxLocal, gId, FALSE); in GOP_Win_Destroy_Abnormal()
4494 u32fbId = g_pGOPCtxLocal->pGOPCtxShared->gwinMap[gId].u32CurFBId; in GOP_Win_Destroy_Abnormal()
4509 g_pGOPCtxLocal->pGOPCtxShared->gwinMap[gId].u32CurFBId= GWIN_ID_INVALID; in GOP_Win_Destroy_Abnormal()
4510 g_pGOPCtxLocal->pGOPCtxShared->gwinMap[gId].u32GOPClientId = 0; in GOP_Win_Destroy_Abnormal()
4511 g_pGOPCtxLocal->pGOPCtxShared->gwinMap[gId].bIsShared = FALSE; in GOP_Win_Destroy_Abnormal()
4512 g_pGOPCtxLocal->pGOPCtxShared->gwinMap[gId].u16SharedCnt = 0; in GOP_Win_Destroy_Abnormal()
4516 u8GOP = MDrv_DumpGopByGwinId(g_pGOPCtxLocal,(gId)); in GOP_Win_Destroy_Abnormal()
4522 GOP_SetWinInfo(pInstance,gId,&gWin); in GOP_Win_Destroy_Abnormal()
4524 RESET_BIT(g_pGOPCtxLocal->u16GOP_VMirrorRBLK_Adr, gId); in GOP_Win_Destroy_Abnormal()
4525 RESET_BIT(g_pGOPCtxLocal->u16GOP_HMirrorRBLK_Adr, gId); in GOP_Win_Destroy_Abnormal()
4526 RESET_BIT(g_pGOPCtxLocal->u16GOP_HMirror_HPos, gId); in GOP_Win_Destroy_Abnormal()
4527 RESET_BIT(g_pGOPCtxLocal->u16GOP_VMirror_VPos, gId); in GOP_Win_Destroy_Abnormal()
4529 MDrv_GOP_GWIN_ClearFlipQueue(g_pGOPCtxLocal,gId); in GOP_Win_Destroy_Abnormal()
5563 MS_U32 GOP_GWIN_IsGwinExist(void* pInstance,MS_U8 gId) in GOP_GWIN_IsGwinExist() argument
5566 if (!_GOP_IsGwinIdValid(pInstance,gId)) in GOP_GWIN_IsGwinExist()
5568 GOP_M_ERR("[%s][%d]GWIN %d is out of range\n",__FUNCTION__,__LINE__,gId); in GOP_GWIN_IsGwinExist()
5571 ret = _GOP_GWIN_IsGwinExistInClient(pInstance,gId); in GOP_GWIN_IsGwinExist()
9785 MS_U32 Ioctl_GOP_Win_Destroy(void* pInstance,MS_U32 gId) in Ioctl_GOP_Win_Destroy() argument
9788 eRet = GOP_Win_Destroy(pInstance,gId); in Ioctl_GOP_Win_Destroy()