Lines Matching refs:ts

364 static inline void uvc_video_get_ts(struct timespec *ts)  in uvc_video_get_ts()  argument
367 ktime_get_ts(ts); in uvc_video_get_ts()
369 ktime_get_real_ts(ts); in uvc_video_get_ts()
381 struct timespec ts; in uvc_video_clock_decode() local
431 uvc_video_get_ts(&ts); in uvc_video_clock_decode()
468 sample->host_ts = ts; in uvc_video_clock_decode()
608 struct timespec ts; in uvc_video_clock_update() local
659 ts = timespec_sub(last->host_ts, first->host_ts); in uvc_video_clock_update()
661 y2 = (ts.tv_sec + 1) * NSEC_PER_SEC + ts.tv_nsec; in uvc_video_clock_update()
679 ts.tv_sec = first->host_ts.tv_sec - 1 + div; in uvc_video_clock_update()
680 ts.tv_nsec = first->host_ts.tv_nsec + rem; in uvc_video_clock_update()
681 if (ts.tv_nsec >= NSEC_PER_SEC) { in uvc_video_clock_update()
682 ts.tv_sec++; in uvc_video_clock_update()
683 ts.tv_nsec -= NSEC_PER_SEC; in uvc_video_clock_update()
690 y, ts.tv_sec, ts.tv_nsec / NSEC_PER_USEC, in uvc_video_clock_update()
697 v4l2_buf->timestamp.tv_sec = ts.tv_sec; in uvc_video_clock_update()
698 v4l2_buf->timestamp.tv_usec = ts.tv_nsec / NSEC_PER_USEC; in uvc_video_clock_update()
860 struct timespec ts; in uvc_video_stats_dump() local
863 ts.tv_sec = stream->stats.stream.stop_ts.tv_sec in uvc_video_stats_dump()
865 ts.tv_nsec = stream->stats.stream.stop_ts.tv_nsec in uvc_video_stats_dump()
867 if (ts.tv_nsec < 0) { in uvc_video_stats_dump()
868 ts.tv_sec--; in uvc_video_stats_dump()
869 ts.tv_nsec += 1000000000; in uvc_video_stats_dump()
875 duration = ts.tv_sec * 1000 + ts.tv_nsec / 1000000; in uvc_video_stats_dump()
1011 struct timespec ts; in uvc_video_decode_start() local
1022 uvc_video_get_ts(&ts); in uvc_video_decode_start()
1026 buf->buf.v4l2_buf.timestamp.tv_sec = ts.tv_sec; in uvc_video_decode_start()
1028 ts.tv_nsec / NSEC_PER_USEC; in uvc_video_decode_start()