Lines Matching refs:_swapCurrentStates
123 if (_swapCurrentStates || _swapLastUpdateTimes) { in handleSwapPrepare()
130 _swapCurrentStates = (int*)IOMallocData(newCurStatesSize); in handleSwapPrepare()
131 if (_swapCurrentStates == NULL) { in handleSwapPrepare()
134 memset(_swapCurrentStates, -1, newCurStatesSize); // init w/"no state" in handleSwapPrepare()
148 if (_swapCurrentStates) { in handleSwapPrepare()
149 IOFreeData(_swapCurrentStates, newCurStatesSize); in handleSwapPrepare()
150 _swapCurrentStates = NULL; in handleSwapPrepare()
173 if (!_swapCurrentStates || !_swapLastUpdateTimes) { in handleAddChannelSwap()
184 memcpy(_swapCurrentStates, _currentStates, in handleAddChannelSwap()
197 _currentStates = _swapCurrentStates; in handleAddChannelSwap()
198 _swapCurrentStates = tmpCurStates; in handleAddChannelSwap()
224 _currentStates = _swapCurrentStates; in handleAddChannelSwap()
225 _swapCurrentStates = tmpCurStates; in handleAddChannelSwap()
243 if (_swapCurrentStates) { in handleSwapCleanup()
245 IOFreeData(_swapCurrentStates, (size_t)swapNChannels * sizeof(int)); in handleSwapCleanup()
246 _swapCurrentStates = NULL; in handleSwapCleanup()