Lines Matching refs:ts

372 static inline void uvc_video_get_ts(struct timespec *ts)  in uvc_video_get_ts()  argument
375 ktime_get_ts(ts); in uvc_video_get_ts()
377 ktime_get_real_ts(ts); in uvc_video_get_ts()
389 struct timespec ts; in uvc_video_clock_decode() local
439 uvc_video_get_ts(&ts); in uvc_video_clock_decode()
476 sample->host_ts = ts; in uvc_video_clock_decode()
616 struct timespec ts; in uvc_video_clock_update() local
670 ts = timespec_sub(last->host_ts, first->host_ts); in uvc_video_clock_update()
672 y2 = (ts.tv_sec + 1) * NSEC_PER_SEC + ts.tv_nsec; in uvc_video_clock_update()
690 ts.tv_sec = first->host_ts.tv_sec - 1 + div; in uvc_video_clock_update()
691 ts.tv_nsec = first->host_ts.tv_nsec + rem; in uvc_video_clock_update()
692 if (ts.tv_nsec >= NSEC_PER_SEC) { in uvc_video_clock_update()
693 ts.tv_sec++; in uvc_video_clock_update()
694 ts.tv_nsec -= NSEC_PER_SEC; in uvc_video_clock_update()
701 y, ts.tv_sec, ts.tv_nsec / NSEC_PER_USEC, in uvc_video_clock_update()
708 vbuf->timestamp.tv_sec = ts.tv_sec; in uvc_video_clock_update()
709 vbuf->timestamp.tv_usec = ts.tv_nsec / NSEC_PER_USEC; in uvc_video_clock_update()
871 struct timespec ts; in uvc_video_stats_dump() local
874 ts.tv_sec = stream->stats.stream.stop_ts.tv_sec in uvc_video_stats_dump()
876 ts.tv_nsec = stream->stats.stream.stop_ts.tv_nsec in uvc_video_stats_dump()
878 if (ts.tv_nsec < 0) { in uvc_video_stats_dump()
879 ts.tv_sec--; in uvc_video_stats_dump()
880 ts.tv_nsec += 1000000000; in uvc_video_stats_dump()
886 duration = ts.tv_sec * 1000 + ts.tv_nsec / 1000000; in uvc_video_stats_dump()
1022 struct timespec ts; in uvc_video_decode_start() local
1033 uvc_video_get_ts(&ts); in uvc_video_decode_start()
1037 buf->buf.timestamp.tv_sec = ts.tv_sec; in uvc_video_decode_start()
1039 ts.tv_nsec / NSEC_PER_USEC; in uvc_video_decode_start()