Lines Matching refs:currentVFrame
46 static int OSi_CompareVCount(OSVAlarm *alarm, s32 currentVCount, s32 currentVFrame);
317 s32 currentVFrame; in OS_SetVAlarm() local
333 currentVFrame = OSi_GetVFrame(currentVCount); in OS_SetVAlarm()
340 alarm->frame = (u32)((count > currentVCount) ? currentVFrame : (currentVFrame + 1)); in OS_SetVAlarm()
375 s32 currentVFrame; in OS_SetPeriodicVAlarm() local
393 currentVFrame = OSi_GetVFrame(currentVCount); in OS_SetPeriodicVAlarm()
400 alarm->frame = (u32)((count > currentVCount) ? currentVFrame : (currentVFrame + 1)); in OS_SetPeriodicVAlarm()
591 s32 currentVFrame; in OSi_VAlarmHandler() local
603 currentVFrame = OSi_GetVFrame(currentVCount - 1); in OSi_VAlarmHandler()
610 currentVFrame = OSi_GetVFrame(currentVCount); in OSi_VAlarmHandler()
613 check = OSi_CompareVCount(alarm, currentVFrame, currentVCount); in OSi_VAlarmHandler()
617 alarm->arg, alarm->frame, alarm->fire, currentVFrame, currentVCount, check); in OSi_VAlarmHandler()
629 if (alarm->fire != GX_GetVCount() || alarm->frame != currentVFrame) in OSi_VAlarmHandler()
688 static int OSi_CompareVCount(OSVAlarm *alarm, s32 currentVFrame, s32 currentVCount) in OSi_CompareVCount() argument
693 delayVFrame = currentVFrame - (s32)alarm->frame; // get diff for safety against overflow in OSi_CompareVCount()