Lines Matching refs:ts
27 static void pps_add_offset(struct pps_ktime *ts, struct pps_ktime *offset)
29 ts->nsec += offset->nsec;
30 while (ts->nsec >= NSEC_PER_SEC) {
31 ts->nsec -= NSEC_PER_SEC;
32 ts->sec++;
34 while (ts->nsec < 0) {
35 ts->nsec += NSEC_PER_SEC;
36 ts->sec--;
38 ts->sec += offset->sec;
148 * @ts: the event timestamp
159 void pps_event(struct pps_device *pps, struct pps_event_time *ts, int event,
170 (s64)ts->ts_real.tv_sec, ts->ts_real.tv_nsec);
172 timespec_to_pps_ktime(&ts_real, ts->ts_real);
211 pps_kc_event(pps, ts, event);