Lines Matching defs:delta
418 * 3) calculate the delta between the cached time and the timestamp
419 * 4) if the delta is smaller than 2^31 nanoseconds, then the timestamp was
421 * the cached PHC time plus the delta.
422 * 5) otherwise, if the delta is larger than 2^31 nanoseconds, then the
425 * case, the full timestamp is the cached time minus the inverse delta.
442 u32 delta, phc_time_lo;
448 /* Calculate the delta between the lower 32bits of the cached PHC
451 delta = (in_tstamp - phc_time_lo);
454 * cached PHC time. If the delta is large, it indicates that the
458 if (delta > (U32_MAX / 2)) {
459 /* reverse the delta calculation here */
460 delta = (phc_time_lo - in_tstamp);
461 ns = cached_phc_time - delta;
463 ns = cached_phc_time + delta;
1970 * @delta: Offset in nanoseconds to adjust the time by
1972 static int ice_ptp_adjtime_nonatomic(struct ptp_clock_info *info, s64 delta)
1977 then = ns_to_timespec64(delta);
1987 * ice_ptp_adjtime - Adjust the time of the clock by the indicated delta
1989 * @delta: Offset in nanoseconds to adjust the time by
1991 static int ice_ptp_adjtime(struct ptp_clock_info *info, s64 delta)
2004 if (delta > S32_MAX || delta < S32_MIN) {
2005 dev_dbg(dev, "delta = %lld, adjtime non-atomic\n", delta);
2006 return ice_ptp_adjtime_nonatomic(info, delta);
2017 err = ice_ptp_write_adj(pf, delta);