Lines Matching full:profiles

547     /* Find numOfProfiles free profiles (may be spread) */  in AllocSharedProfiles()
550 if (!p_FmPcd->p_FmPcdPlcr->profiles[i].profilesMng.allocated) in AllocSharedProfiles()
567 p_FmPcd->p_FmPcdPlcr->profiles[profilesIds[i]].profilesMng.allocated = TRUE; in AllocSharedProfiles()
568 p_FmPcd->p_FmPcdPlcr->profiles[profilesIds[i]].profilesMng.ownerId = 0; in AllocSharedProfiles()
585 ASSERT_COND(p_FmPcd->p_FmPcdPlcr->profiles[profilesIds[i]].profilesMng.allocated); in FreeSharedProfiles()
586 p_FmPcd->p_FmPcdPlcr->profiles[profilesIds[i]].profilesMng.allocated = FALSE; in FreeSharedProfiles()
587 p_FmPcd->p_FmPcdPlcr->profiles[profilesIds[i]].profilesMng.ownerId = p_FmPcd->guestId; in FreeSharedProfiles()
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()
707 p_FmPcdPlcr->profiles[i].profilesMng.ownerId = (uint8_t)ILLEGAL_BASE; in PlcrConfig()
806 p_FmPcd->p_FmPcdPlcr->profiles[0].profilesMng.allocated = TRUE; in PlcrInit()
906 DBG(WARNING, ("FM Guest mode, without IPC - can't validate Policer-profiles range!")); in PlcrAllocProfilesForPartition()
912 if (p_FmPcd->p_FmPcdPlcr->profiles[i].profilesMng.ownerId == (uint8_t)ILLEGAL_BASE) in PlcrAllocProfilesForPartition()
919 p_FmPcd->p_FmPcdPlcr->profiles[i].profilesMng.ownerId = guestId; in PlcrAllocProfilesForPartition()
963 DBG(WARNING, ("FM Guest mode, without IPC - can't validate Policer-profiles range!")); in PlcrFreeProfilesForPartition()
969 if (p_FmPcd->p_FmPcdPlcr->profiles[i].profilesMng.ownerId == guestId) in PlcrFreeProfilesForPartition()
970 p_FmPcd->p_FmPcdPlcr->profiles[i].profilesMng.ownerId = (uint8_t)ILLEGAL_BASE; in PlcrFreeProfilesForPartition()
1018 ("The requesting port has already an allocated profiles window.")); in PlcrSetPortProfiles()
1095 if (!p_FmPcd->p_FmPcdPlcr->profiles[i].profilesMng.allocated) in FmPcdPlcrAllocProfiles()
1114 p_FmPcd->p_FmPcdPlcr->profiles[i].profilesMng.allocated = TRUE; in FmPcdPlcrAllocProfiles()
1115 p_FmPcd->p_FmPcdPlcr->profiles[i].profilesMng.ownerId = hardwarePortId; in FmPcdPlcrAllocProfiles()
1121 RETURN_ERROR(MINOR, E_FULL, ("No profiles.")); in FmPcdPlcrAllocProfiles()
1163 ASSERT_COND(p_FmPcd->p_FmPcdPlcr->profiles[i].profilesMng.ownerId == hardwarePortId); in FmPcdPlcrFreeProfiles()
1164 ASSERT_COND(p_FmPcd->p_FmPcdPlcr->profiles[i].profilesMng.allocated); in FmPcdPlcrFreeProfiles()
1166 p_FmPcd->p_FmPcdPlcr->profiles[i].profilesMng.allocated = FALSE; in FmPcdPlcrFreeProfiles()
1167 p_FmPcd->p_FmPcdPlcr->profiles[i].profilesMng.ownerId = p_FmPcd->guestId; in FmPcdPlcrFreeProfiles()
1193 /*intFlags = PlcrProfileLock(&p_FmPcd->p_FmPcdPlcr->profiles[profileIndx]);*/ in FmPcdPlcrCcGetSetParams()
1202 /*PlcrProfileUnlock(&p_FmPcd->p_FmPcdPlcr->profiles[profileIndx], intFlags);*/ in FmPcdPlcrCcGetSetParams()
1212 if (!p_FmPcd->p_FmPcdPlcr->profiles[profileIndx].requiredActionFlag || in FmPcdPlcrCcGetSetParams()
1213 !(p_FmPcd->p_FmPcdPlcr->profiles[profileIndx].requiredAction & requiredAction)) in FmPcdPlcrCcGetSetParams()
1217 if ((p_FmPcd->p_FmPcdPlcr->profiles[profileIndx].nextEngineOnGreen!= e_FM_PCD_DONE) || in FmPcdPlcrCcGetSetParams()
1218 (p_FmPcd->p_FmPcdPlcr->profiles[profileIndx].nextEngineOnYellow!= e_FM_PCD_DONE) || in FmPcdPlcrCcGetSetParams()
1219 (p_FmPcd->p_FmPcdPlcr->profiles[profileIndx].nextEngineOnRed!= e_FM_PCD_DONE)) in FmPcdPlcrCcGetSetParams()
1222 /*PlcrProfileUnlock(&p_FmPcd->p_FmPcdPlcr->profiles[profileIndx], intFlags);*/ in FmPcdPlcrCcGetSetParams()
1226 … if (p_FmPcd->p_FmPcdPlcr->profiles[profileIndx].paramsOnGreen.action == e_FM_PCD_ENQ_FRAME) in FmPcdPlcrCcGetSetParams()
1232 /*PlcrProfileUnlock(&p_FmPcd->p_FmPcdPlcr->profiles[profileIndx], intFlags);*/ in FmPcdPlcrCcGetSetParams()
1242 … if (p_FmPcd->p_FmPcdPlcr->profiles[profileIndx].paramsOnYellow.action == e_FM_PCD_ENQ_FRAME) in FmPcdPlcrCcGetSetParams()
1248 /*PlcrProfileUnlock(&p_FmPcd->p_FmPcdPlcr->profiles[profileIndx], intFlags);*/ in FmPcdPlcrCcGetSetParams()
1259 … if (p_FmPcd->p_FmPcdPlcr->profiles[profileIndx].paramsOnRed.action == e_FM_PCD_ENQ_FRAME) in FmPcdPlcrCcGetSetParams()
1265 /*PlcrProfileUnlock(&p_FmPcd->p_FmPcdPlcr->profiles[profileIndx], intFlags);*/ in FmPcdPlcrCcGetSetParams()
1282 /*PlcrProfileUnlock(&p_FmPcd->p_FmPcdPlcr->profiles[profileIndx], intFlags);*/ in FmPcdPlcrCcGetSetParams()
1291 ASSERT_COND(p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId].valid); in FmPcdPlcrGetRequiredActionFlag()
1293 return p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId].requiredActionFlag; in FmPcdPlcrGetRequiredActionFlag()
1300 ASSERT_COND(p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId].valid); in FmPcdPlcrGetRequiredAction()
1302 return p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId].requiredAction; in FmPcdPlcrGetRequiredAction()
1312 return p_FmPcdPlcr->profiles[absoluteProfileId].valid; in FmPcdPlcrIsProfileValid()
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()
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()
1365 RETURN_ERROR(MAJOR, E_INVALID_SELECTION , ("Port has no allocated profiles")); in FmPcdPlcrGetAbsoluteIdByProfileParams()
1473 ASSERT_COND(p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId].valid); in FmPcdPlcrUpdateRequiredAction()
1475 p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId].requiredAction |= requiredAction; in FmPcdPlcrUpdateRequiredAction()
1603 p_Profile = &p_FmPcd->p_FmPcdPlcr->profiles[absoluteProfileId]; in FM_PCD_PlcrProfileSet()