Lines Matching refs:slotIndex
354 size_t slotIndex; in SessionGet() local
361 slotIndex = handle & HR_HANDLE_MASK; in SessionGet()
363 pAssert(slotIndex < MAX_ACTIVE_SESSIONS); in SessionGet()
367 sessionIndex = gr.contextArray[slotIndex] - 1; in SessionGet()
462 CONTEXT_SLOT slotIndex; in SessionCreate() local
474 for(slotIndex = 0; slotIndex < MAX_LOADED_SESSIONS; slotIndex++) in SessionCreate()
477 if(s_sessions[slotIndex].occupied == FALSE) in SessionCreate()
479 session = &s_sessions[slotIndex].session; in SessionCreate()
484 if(slotIndex >= MAX_LOADED_SESSIONS) in SessionCreate()
489 result = ContextIdSessionCreate(sessionHandle, slotIndex); in SessionCreate()
497 s_sessions[slotIndex].occupied = TRUE; in SessionCreate()
601 CONTEXT_SLOT slotIndex; in SessionContextSave() local
623 slotIndex = gr.contextArray[contextIndex] - 1; in SessionContextSave()
649 s_sessions[slotIndex].occupied = FALSE; in SessionContextSave()
678 CONTEXT_SLOT slotIndex; in SessionContextLoad() local
688 for(slotIndex = 0; slotIndex < MAX_LOADED_SESSIONS; slotIndex++) in SessionContextLoad()
689 if(s_sessions[slotIndex].occupied == FALSE) break; in SessionContextLoad()
692 pAssert(slotIndex < MAX_LOADED_SESSIONS); in SessionContextLoad()
708 gr.contextArray[contextIndex] = slotIndex + 1; in SessionContextLoad()
715 MemoryCopy(&s_sessions[slotIndex].session, session, sizeof(SESSION)); in SessionContextLoad()
718 s_sessions[slotIndex].occupied = TRUE; in SessionContextLoad()
738 CONTEXT_SLOT slotIndex; in SessionFlush() local
754 slotIndex = gr.contextArray[contextIndex]; in SessionFlush()
760 if(slotIndex > MAX_LOADED_SESSIONS) in SessionFlush()
770 slotIndex -= 1; in SessionFlush()
773 s_sessions[slotIndex].occupied = FALSE; in SessionFlush()