Lines Matching refs:write_time
184 struct timespec write_time; member
369 clock_gettime(CLOCK_MONOTONIC, &linux_cb.write_time); in setWriteDelay()
372 linux_cb.write_time.tv_sec += delay / 1000; in setWriteDelay()
376 linux_cb.write_time.tv_nsec += write_delay; in setWriteDelay()
377 if (linux_cb.write_time.tv_nsec > 1000*1000*1000) in setWriteDelay()
379 linux_cb.write_time.tv_nsec -= 1000*1000*1000; in setWriteDelay()
380 linux_cb.write_time.tv_sec++; in setWriteDelay()
404 if (now.tv_sec > linux_cb.write_time.tv_sec) in doWriteDelay()
406 else if (now.tv_sec == linux_cb.write_time.tv_sec) in doWriteDelay()
408 if (now.tv_nsec > linux_cb.write_time.tv_nsec) in doWriteDelay()
410 delay = (linux_cb.write_time.tv_nsec - now.tv_nsec) / 1000000; in doWriteDelay()
413 …delay = (linux_cb.write_time.tv_sec - now.tv_sec) * 1000 + linux_cb.write_time.tv_nsec / 1000000 -… in doWriteDelay()