Lines Matching refs:tspec
217 struct itimerspec tspec; in deTimer_scheduleSingle() local
224 tspec.it_value.tv_sec = milliseconds / 1000; in deTimer_scheduleSingle()
225 tspec.it_value.tv_nsec = (milliseconds % 1000) * 1000; in deTimer_scheduleSingle()
226 tspec.it_interval.tv_sec = 0; in deTimer_scheduleSingle()
227 tspec.it_interval.tv_nsec = 0; in deTimer_scheduleSingle()
229 if (timer_settime(timer->timer, 0, &tspec, DE_NULL) != 0) in deTimer_scheduleSingle()
238 struct itimerspec tspec; in deTimer_scheduleInterval() local
245 tspec.it_value.tv_sec = milliseconds / 1000; in deTimer_scheduleInterval()
246 tspec.it_value.tv_nsec = (milliseconds % 1000) * 1000; in deTimer_scheduleInterval()
247 tspec.it_interval.tv_sec = tspec.it_value.tv_sec; in deTimer_scheduleInterval()
248 tspec.it_interval.tv_nsec = tspec.it_value.tv_nsec; in deTimer_scheduleInterval()
250 if (timer_settime(timer->timer, 0, &tspec, DE_NULL) != 0) in deTimer_scheduleInterval()
259 struct itimerspec tspec; in deTimer_disable() local
263 tspec.it_value.tv_sec = 0; in deTimer_disable()
264 tspec.it_value.tv_nsec = 0; in deTimer_disable()
265 tspec.it_interval.tv_sec = 0; in deTimer_disable()
266 tspec.it_interval.tv_nsec = 0; in deTimer_disable()
268 timer_settime(timer->timer, 0, &tspec, DE_NULL); in deTimer_disable()