Lines Matching refs:ts

106 				  struct timespec64 *ts)  in char_array_to_timespec()  argument
128 ts->tv_sec = sec; in char_array_to_timespec()
129 ts->tv_nsec = nsec; in char_array_to_timespec()
134 static int timespec_to_char_array(struct timespec64 const *ts, in timespec_to_char_array() argument
145 nsec = ts->tv_nsec; in timespec_to_char_array()
146 sec = ts->tv_sec; in timespec_to_char_array()
399 struct timespec64 *ts) in _idtcm_gettime_triggered() argument
420 return char_array_to_timespec(buf, sizeof(buf), ts); in _idtcm_gettime_triggered()
424 struct timespec64 *ts, u8 timeout) in _idtcm_gettime() argument
452 err = char_array_to_timespec(buf, sizeof(buf), ts); in _idtcm_gettime()
461 struct timespec64 ts; in idtcm_extts_check_channel() local
471 err = _idtcm_gettime_triggered(extts_channel, &ts); in idtcm_extts_check_channel()
478 event.timestamp = timespec64_to_ns(&ts) - dco_delay; in idtcm_extts_check_channel()
485 struct timespec64 *ts) in _idtcm_gettime_immediate() argument
498 return _idtcm_gettime(channel, ts, 10); in _idtcm_gettime_immediate()
706 struct timespec64 const *ts, in _idtcm_set_dpll_hw_tod() argument
713 struct timespec64 local_ts = *ts; in _idtcm_set_dpll_hw_tod()
773 struct timespec64 const *ts, in _idtcm_set_dpll_scsr_tod() argument
779 struct timespec64 local_ts = *ts; in _idtcm_set_dpll_scsr_tod()
882 struct timespec64 const *ts) in _idtcm_settime_deprecated() argument
887 err = _idtcm_set_dpll_hw_tod(channel, ts, HW_TOD_WR_TRIG_SEL_MSB); in _idtcm_settime_deprecated()
898 struct timespec64 const *ts, in _idtcm_settime() argument
901 return _idtcm_set_dpll_scsr_tod(channel, ts, in _idtcm_settime()
1036 struct timespec64 ts; in _idtcm_adjtime_deprecated() local
1048 err = _idtcm_gettime_immediate(channel, &ts); in _idtcm_adjtime_deprecated()
1052 now = timespec64_to_ns(&ts); in _idtcm_adjtime_deprecated()
1055 ts = ns_to_timespec64(now); in _idtcm_adjtime_deprecated()
1057 err = _idtcm_settime_deprecated(channel, &ts); in _idtcm_adjtime_deprecated()
1360 struct timespec64 ts = {0, 0}; in idtcm_perout_enable() local
1371 return _idtcm_settime(channel, &ts, SCSR_TOD_WR_TYPE_SEL_DELTA_PLUS); in idtcm_perout_enable()
1784 static int idtcm_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in idtcm_gettime() argument
1791 err = _idtcm_gettime_immediate(channel, ts); in idtcm_gettime()
1802 const struct timespec64 *ts) in idtcm_settime_deprecated() argument
1809 err = _idtcm_settime_deprecated(channel, ts); in idtcm_settime_deprecated()
1820 const struct timespec64 *ts) in idtcm_settime() argument
1827 err = _idtcm_settime(channel, ts, SCSR_TOD_WR_TYPE_SEL_ABSOLUTE); in idtcm_settime()
1858 struct timespec64 ts; in idtcm_adjtime() local
1871 ts = ns_to_timespec64(delta); in idtcm_adjtime()
1874 ts = ns_to_timespec64(-delta); in idtcm_adjtime()
1877 err = _idtcm_settime(channel, &ts, type); in idtcm_adjtime()
1970 struct timespec64 ts = {0, 0}; in idtcm_enable_tod() local
1989 return _idtcm_settime_deprecated(channel, &ts); in idtcm_enable_tod()
1991 return _idtcm_settime(channel, &ts, in idtcm_enable_tod()