Lines Matching refs:tes
831 IOTimerEventSource *tes; in copyExclaveTimerEventSource() local
845 tes = OSDynamicCast(IOTimerEventSource, obj); in copyExclaveTimerEventSource()
846 if (tes) { in copyExclaveTimerEventSource()
847 tes->retain(); in copyExclaveTimerEventSource()
849 return tes; in copyExclaveTimerEventSource()
857 IOTimerEventSource *tes = NULL; in exclaveRegisterTimer() local
870 tes = IOTimerEventSource::timerEventSource(this, action); in exclaveRegisterTimer()
871 if (!tes) { in exclaveRegisterTimer()
877 tes->release(); in exclaveRegisterTimer()
880 if (wl->addEventSource(tes) != kIOReturnSuccess) { in exclaveRegisterTimer()
881 tes->release(); in exclaveRegisterTimer()
889 pRef->exclave_timers->setObject(timerKey, tes); in exclaveRegisterTimer()
891 OSSafeReleaseNULL(tes); in exclaveRegisterTimer()
904 IOTimerEventSource *tes; in exclaveRemoveTimer() local
917 tes = copyExclaveTimerEventSource(pRef, timer_id); in exclaveRemoveTimer()
918 if (!tes) { in exclaveRemoveTimer()
920 OSSafeReleaseNULL(tes); in exclaveRemoveTimer()
928 OSSafeReleaseNULL(tes); in exclaveRemoveTimer()
932 wl->removeEventSource(tes); in exclaveRemoveTimer()
933 OSSafeReleaseNULL(tes); in exclaveRemoveTimer()
946 IOTimerEventSource *tes; in exclaveEnableTimer() local
955 tes = copyExclaveTimerEventSource(pRef, timer_id); in exclaveEnableTimer()
956 if (!tes) { in exclaveEnableTimer()
958 OSSafeReleaseNULL(tes); in exclaveEnableTimer()
963 tes->enable(); in exclaveEnableTimer()
965 tes->disable(); in exclaveEnableTimer()
968 OSSafeReleaseNULL(tes); in exclaveEnableTimer()
981 IOTimerEventSource *tes; in exclaveTimerSetTimeout() local
990 tes = copyExclaveTimerEventSource(pRef, timer_id); in exclaveTimerSetTimeout()
991 if (!tes) { in exclaveTimerSetTimeout()
993 OSSafeReleaseNULL(tes); in exclaveTimerSetTimeout()
997 *kr = tes->setTimeout(options, interval, leeway); in exclaveTimerSetTimeout()
999 OSSafeReleaseNULL(tes); in exclaveTimerSetTimeout()
1012 IOTimerEventSource *tes; in exclaveTimerCancelTimeout() local
1021 tes = copyExclaveTimerEventSource(pRef, timer_id); in exclaveTimerCancelTimeout()
1022 if (!tes) { in exclaveTimerCancelTimeout()
1024 OSSafeReleaseNULL(tes); in exclaveTimerCancelTimeout()
1028 tes->cancelTimeout(); in exclaveTimerCancelTimeout()
1030 OSSafeReleaseNULL(tes); in exclaveTimerCancelTimeout()