Home
last modified time | relevance | path

Searched refs:ns_per_sync (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/ptp/
Dptp_fc3.c44 sync = div_u64_rem(nsec, idtfc3->ns_per_sync, &rem); in ns2counters()
47 sync = -div_u64_rem(-nsec - 1, idtfc3->ns_per_sync, &rem) - 1; in ns2counters()
48 *sub_ns = idtfc3->ns_per_sync - rem - 1; in ns2counters()
51 return sync * idtfc3->ns_per_sync; in ns2counters()
69 if (offset_ns > idtfc3->ns_per_sync / 2) in tdc_offset2phase()
70 offset_ns -= idtfc3->ns_per_sync; in tdc_offset2phase()
435 sync_ns = ns2counters(idtfc3, delta + idtfc3->ns_per_sync, &sub_ns); in _idtfc3_adjtime()
735 idtfc3->ns_per_sync = idtfc3->sub_sync_count * idtfc3->ns_per_counter; in idtfc3_get_sync_count()
Dptp_fc3.h30 u32 ns_per_sync; member