Lines Matching refs:delta_ns
457 s64 delta_ns) in _idt82p33_adjtime_immediate() argument
472 now_ns += delta_ns + idt82p33->tod_write_overhead_ns; in _idt82p33_adjtime_immediate()
482 s64 delta_ns) in _idt82p33_adjtime_internal_triggered() argument
500 ns = (ts.tv_sec + 2) * NSEC_PER_SEC + delta_ns + delay_ns; in _idt82p33_adjtime_internal_triggered()
502 ns = (ts.tv_sec + 1) * NSEC_PER_SEC + delta_ns + delay_ns; in _idt82p33_adjtime_internal_triggered()
515 (void)div_s64_rem(delta_ns, NSEC_PER_SEC, &remainder); in _idt82p33_adjtime_internal_triggered()
604 static int idt82p33_start_ddco(struct idt82p33_channel *channel, s32 delta_ns) in idt82p33_start_ddco() argument
615 if (abs(delta_ns) < DDCO_THRESHOLD_NS) in idt82p33_start_ddco()
619 ppb = delta_ns; in idt82p33_start_ddco()
1048 static int idt82p33_adjtime(struct ptp_clock_info *ptp, s64 delta_ns) in idt82p33_adjtime() argument
1060 if (abs(delta_ns) < phase_snap_threshold) { in idt82p33_adjtime()
1061 err = idt82p33_start_ddco(channel, delta_ns); in idt82p33_adjtime()
1067 err = _idt82p33_adjtime_internal_triggered(channel, delta_ns); in idt82p33_adjtime()
1068 if (err && delta_ns > IMMEDIATE_SNAP_THRESHOLD_NS) in idt82p33_adjtime()
1069 err = _idt82p33_adjtime_immediate(channel, delta_ns); in idt82p33_adjtime()