Lines Matching refs:contextIndex
432 UINT32 contextIndex; in SessionContextSave() local
446 contextIndex = handle & HR_HANDLE_MASK; in SessionContextSave()
450 slotIndex = gr.contextArray[contextIndex] - 1; in SessionContextSave()
452 gr.contextArray[contextIndex] = (CONTEXT_SLOT)gr.contextCounter; in SessionContextSave()
469 s_oldestSavedSession = contextIndex; in SessionContextSave()
499 UINT32 contextIndex; in SessionContextLoad() local
511 contextIndex = *handle & HR_HANDLE_MASK; // extract the index in SessionContextLoad()
517 && contextIndex != s_oldestSavedSession in SessionContextLoad()
520 pAssert(contextIndex < MAX_ACTIVE_SESSIONS); in SessionContextLoad()
523 gr.contextArray[contextIndex] = slotIndex + 1; in SessionContextLoad()
525 if(contextIndex == s_oldestSavedSession) in SessionContextLoad()
550 UINT32 contextIndex; // Index into contextArray in SessionFlush() local
558 contextIndex = handle & HR_HANDLE_MASK; in SessionFlush()
559 pAssert(contextIndex < sizeof(gr.contextArray)/sizeof(gr.contextArray[0])); in SessionFlush()
561 slotIndex = gr.contextArray[contextIndex]; in SessionFlush()
563 gr.contextArray[contextIndex] = 0; in SessionFlush()
568 if(contextIndex == s_oldestSavedSession) in SessionFlush()