Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/subsys/net/l2/ethernet/gptp/
Dgptp_mi.c739 int64_t nanosecond_diff; in gptp_update_local_port_clock() local
761 nanosecond_diff = in gptp_update_local_port_clock()
770 if (second_diff > 0 && nanosecond_diff < 0) { in gptp_update_local_port_clock()
772 nanosecond_diff = NSEC_PER_SEC + nanosecond_diff; in gptp_update_local_port_clock()
775 if (second_diff < 0 && nanosecond_diff > 0) { in gptp_update_local_port_clock()
777 nanosecond_diff = -(int64_t)NSEC_PER_SEC + nanosecond_diff; in gptp_update_local_port_clock()
786 (nanosecond_diff < -5000 || in gptp_update_local_port_clock()
787 nanosecond_diff > 5000))) { in gptp_update_local_port_clock()
802 if (nanosecond_diff < 0 && in gptp_update_local_port_clock()
803 tm.nanosecond < -nanosecond_diff) { in gptp_update_local_port_clock()
[all …]