Lines Matching refs:contextIndex
600 UINT32 contextIndex; in SessionContextSave() local
617 contextIndex = handle & HR_HANDLE_MASK; in SessionContextSave()
618 pAssert(contextIndex < MAX_ACTIVE_SESSIONS); in SessionContextSave()
623 slotIndex = gr.contextArray[contextIndex] - 1; in SessionContextSave()
626 gr.contextArray[contextIndex] = (CONTEXT_SLOT)gr.contextCounter; in SessionContextSave()
646 s_oldestSavedSession = contextIndex; in SessionContextSave()
677 UINT32 contextIndex; in SessionContextLoad() local
694 contextIndex = *handle & HR_HANDLE_MASK; // extract the index in SessionContextLoad()
701 && contextIndex != s_oldestSavedSession) in SessionContextLoad()
704 pAssert(contextIndex < MAX_ACTIVE_SESSIONS); in SessionContextLoad()
708 gr.contextArray[contextIndex] = slotIndex + 1; in SessionContextLoad()
711 if(contextIndex == s_oldestSavedSession) in SessionContextLoad()
739 UINT32 contextIndex; // Index into contextArray in SessionFlush() local
749 contextIndex = handle & HR_HANDLE_MASK; in SessionFlush()
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()
763 if(contextIndex == s_oldestSavedSession) in SessionFlush()