Lines Matching refs:absoluteProfileId
106 static bool IsProfileShared(t_Handle h_FmPcd, uint16_t absoluteProfileId) in IsProfileShared() argument
114 if (p_FmPcd->p_FmPcdPlcr->sharedProfilesIds[i] == absoluteProfileId) in IsProfileShared()
122 uint16_t absoluteProfileId; in SetProfileNia() local
154 … absoluteProfileId = ((t_FmPcdPlcrProfile *)p_NextEngineParams->h_Profile)->absoluteProfileId; in SetProfileNia()
155 if (!IsProfileShared(p_FmPcd, absoluteProfileId)) in SetProfileNia()
157 if (!FmPcdPlcrIsProfileValid(p_FmPcd, absoluteProfileId)) in SetProfileNia()
159 nia |= NIA_ENG_PLCR | NIA_PLCR_ABSOLUTE | absoluteProfileId; in SetProfileNia()
591 static void UpdateRequiredActionFlag(t_Handle h_FmPcd, uint16_t absoluteProfileId, bool set) in UpdateRequiredActionFlag() argument
597 ASSERT_COND(p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId].valid); in UpdateRequiredActionFlag()
600 p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId].requiredActionFlag = TRUE; in UpdateRequiredActionFlag()
603 p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId].requiredAction = 0; in UpdateRequiredActionFlag()
604 p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId].requiredActionFlag = FALSE; in UpdateRequiredActionFlag()
1287 uint32_t FmPcdPlcrGetRequiredActionFlag(t_Handle h_FmPcd, uint16_t absoluteProfileId) in FmPcdPlcrGetRequiredActionFlag() argument
1291 ASSERT_COND(p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId].valid); in FmPcdPlcrGetRequiredActionFlag()
1293 return p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId].requiredActionFlag; in FmPcdPlcrGetRequiredActionFlag()
1296 uint32_t FmPcdPlcrGetRequiredAction(t_Handle h_FmPcd, uint16_t absoluteProfileId) in FmPcdPlcrGetRequiredAction() argument
1300 ASSERT_COND(p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId].valid); in FmPcdPlcrGetRequiredAction()
1302 return p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId].requiredAction; in FmPcdPlcrGetRequiredAction()
1305 bool FmPcdPlcrIsProfileValid(t_Handle h_FmPcd, uint16_t absoluteProfileId) in FmPcdPlcrIsProfileValid() argument
1310 ASSERT_COND(absoluteProfileId < FM_PCD_PLCR_NUM_ENTRIES); in FmPcdPlcrIsProfileValid()
1312 return p_FmPcdPlcr->profiles[absoluteProfileId].valid; in FmPcdPlcrIsProfileValid()
1315 void FmPcdPlcrValidateProfileSw(t_Handle h_FmPcd, uint16_t absoluteProfileId) in FmPcdPlcrValidateProfileSw() argument
1320 ASSERT_COND(!p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId].valid); in FmPcdPlcrValidateProfileSw()
1322 intFlags = PlcrProfileLock(&p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId]); in FmPcdPlcrValidateProfileSw()
1323 p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId].valid = TRUE; in FmPcdPlcrValidateProfileSw()
1324 PlcrProfileUnlock(&p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId], intFlags); in FmPcdPlcrValidateProfileSw()
1327 void FmPcdPlcrInvalidateProfileSw(t_Handle h_FmPcd, uint16_t absoluteProfileId) in FmPcdPlcrInvalidateProfileSw() argument
1332 ASSERT_COND(p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId].valid); in FmPcdPlcrInvalidateProfileSw()
1334 intFlags = PlcrProfileLock(&p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId]); in FmPcdPlcrInvalidateProfileSw()
1335 p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId].valid = FALSE; in FmPcdPlcrInvalidateProfileSw()
1336 PlcrProfileUnlock(&p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId], intFlags); in FmPcdPlcrInvalidateProfileSw()
1341 return ((t_FmPcdPlcrProfile*)h_Profile)->absoluteProfileId; in FmPcdPlcrProfileGetAbsoluteId()
1402 uint32_t FmPcdPlcrBuildWritePlcrActionReg(uint16_t absoluteProfileId) in FmPcdPlcrBuildWritePlcrActionReg() argument
1405 ((uint32_t)absoluteProfileId << FM_PCD_PLCR_PAR_PNUM_SHIFT)); in FmPcdPlcrBuildWritePlcrActionReg()
1408 uint32_t FmPcdPlcrBuildWritePlcrActionRegs(uint16_t absoluteProfileId) in FmPcdPlcrBuildWritePlcrActionRegs() argument
1411 ((uint32_t)absoluteProfileId << FM_PCD_PLCR_PAR_PNUM_SHIFT) | in FmPcdPlcrBuildWritePlcrActionRegs()
1424 uint32_t FmPcdPlcrBuildReadPlcrActionReg(uint16_t absoluteProfileId) in FmPcdPlcrBuildReadPlcrActionReg() argument
1428 ((uint32_t)absoluteProfileId << FM_PCD_PLCR_PAR_PNUM_SHIFT) | in FmPcdPlcrBuildReadPlcrActionReg()
1467 void FmPcdPlcrUpdateRequiredAction(t_Handle h_FmPcd, uint16_t absoluteProfileId, uint32_t requiredA… in FmPcdPlcrUpdateRequiredAction() argument
1473 ASSERT_COND(p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId].valid); in FmPcdPlcrUpdateRequiredAction()
1475 p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId].requiredAction |= requiredAction; in FmPcdPlcrUpdateRequiredAction()
1543 uint16_t absoluteProfileId; in FM_PCD_PlcrProfileSet() local
1554 absoluteProfileId = p_Profile->absoluteProfileId; in FM_PCD_PlcrProfileSet()
1555 if (absoluteProfileId >= FM_PCD_PLCR_NUM_ENTRIES) in FM_PCD_PlcrProfileSet()
1583 &absoluteProfileId); in FM_PCD_PlcrProfileSet()
1590 if (absoluteProfileId >= FM_PCD_PLCR_NUM_ENTRIES) in FM_PCD_PlcrProfileSet()
1596 if (FmPcdPlcrIsProfileValid(p_FmPcd, absoluteProfileId)) in FM_PCD_PlcrProfileSet()
1603 p_Profile = &p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId]; in FM_PCD_PlcrProfileSet()
1606 p_Profile->absoluteProfileId = absoluteProfileId; in FM_PCD_PlcrProfileSet()
1656 FmPcdPlcrValidateProfileSw(p_FmPcd,absoluteProfileId); in FM_PCD_PlcrProfileSet()
1681 tmpReg32 = FmPcdPlcrBuildWritePlcrActionRegs(absoluteProfileId); in FM_PCD_PlcrProfileSet()
1687 FmPcdPlcrValidateProfileSw(p_FmPcd,absoluteProfileId); in FM_PCD_PlcrProfileSet()
1706 profileIndx = p_Profile->absoluteProfileId; in FM_PCD_PlcrProfileDelete()
1760 profileIndx = p_Profile->absoluteProfileId; in FM_PCD_PlcrProfileGetCounter()
1807 profileIndx = p_Profile->absoluteProfileId; in FM_PCD_PlcrProfileSetCounter()