Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/subsys/net/l2/ethernet/gptp/
Dgptp_mi.c740 int64_t second_diff; in gptp_update_local_port_clock() local
759 second_diff = global_ds->sync_receipt_time.second - in gptp_update_local_port_clock()
770 if (second_diff > 0 && nanosecond_diff < 0) { in gptp_update_local_port_clock()
771 second_diff--; in gptp_update_local_port_clock()
775 if (second_diff < 0 && nanosecond_diff > 0) { in gptp_update_local_port_clock()
776 second_diff++; in gptp_update_local_port_clock()
785 if (second_diff || (second_diff == 0 && in gptp_update_local_port_clock()
793 if (second_diff < 0 && tm.second < -second_diff) { in gptp_update_local_port_clock()
796 (long int)-second_diff); in gptp_update_local_port_clock()
800 tm.second += second_diff; in gptp_update_local_port_clock()