Lines Matching full:gr

154     lowBits = (CONTEXT_SLOT)gr.contextCounter;  in ContextIdSetOldest()
157 entry = gr.contextArray[i]; in ContextIdSetOldest()
206 if(gr.contextArray[i] <= MAX_LOADED_SESSIONS) in SessionStartup()
207 gr.contextArray[i] = 0; in SessionStartup()
217 gr.contextArray[i] = 0; in SessionStartup()
220 gr.contextCounter = MAX_LOADED_SESSIONS + 1; in SessionStartup()
255 || gr.contextArray[handle] == 0 in SessionIsLoaded()
256 || gr.contextArray[handle] > MAX_LOADED_SESSIONS) in SessionIsLoaded()
286 || gr.contextArray[handle] == 0 in SessionIsSaved()
287 || gr.contextArray[handle] <= MAX_LOADED_SESSIONS in SessionIsSaved()
310 || gr.contextArray[handle] <= MAX_LOADED_SESSIONS in SequenceNumberForSavedContextIsValid()
312 || gr.contextArray[handle] != (CONTEXT_SLOT)context->sequence in SequenceNumberForSavedContextIsValid()
314 || context->sequence > gr.contextCounter in SequenceNumberForSavedContextIsValid()
316 || gr.contextCounter - context->sequence > MAX_CONTEXT_GAP) in SequenceNumberForSavedContextIsValid()
337 && session->pcrCounter != gr.pcrCounter in SessionPCRValueIsCurrent()
367 sessionIndex = gr.contextArray[slotIndex] - 1; in SessionGet()
418 if((CONTEXT_SLOT)gr.contextCounter in ContextIdSessionCreate()
419 == gr.contextArray[s_oldestSavedSession]) in ContextIdSessionCreate()
426 if(gr.contextArray[*handle] == 0) in ContextIdSessionCreate()
430 gr.contextArray[*handle] = (CONTEXT_SLOT)(sessionIndex + 1); in ContextIdSessionCreate()
610 && gr.contextArray[s_oldestSavedSession] == (CONTEXT_SLOT)gr.contextCounter) in SessionContextSave()
615 *contextID = gr.contextCounter; in SessionContextSave()
623 slotIndex = gr.contextArray[contextIndex] - 1; in SessionContextSave()
626 gr.contextArray[contextIndex] = (CONTEXT_SLOT)gr.contextCounter; in SessionContextSave()
629 gr.contextCounter++; in SessionContextSave()
632 if(gr.contextCounter == 0) in SessionContextSave()
635 gr.contextCounter--; in SessionContextSave()
641 if(((CONTEXT_SLOT)gr.contextCounter) == 0) in SessionContextSave()
642 gr.contextCounter += MAX_LOADED_SESSIONS + 1; in SessionContextSave()
700 && (CONTEXT_SLOT)gr.contextCounter == gr.contextArray[s_oldestSavedSession] in SessionContextLoad()
708 gr.contextArray[contextIndex] = slotIndex + 1; in SessionContextLoad()
751 pAssert(contextIndex < sizeof(gr.contextArray) / sizeof(gr.contextArray[0])); in SessionFlush()
754 slotIndex = gr.contextArray[contextIndex]; in SessionFlush()
757 gr.contextArray[contextIndex] = 0; in SessionFlush()
909 if(gr.contextArray[i] != 0) in SessionCapGetLoaded()
912 if(gr.contextArray[i] <= MAX_LOADED_SESSIONS) in SessionCapGetLoaded()
978 if(gr.contextArray[i] != 0) in SessionCapGetSaved()
981 if(gr.contextArray[i] > MAX_LOADED_SESSIONS) in SessionCapGetSaved()
1043 if(gr.contextArray[i] != 0) num++; in SessionCapGetActiveNumber()
1064 if(gr.contextArray[i] == 0) num++; in SessionCapGetActiveAvail()