Lines Matching refs:second
343 if (tm.second == 0U && tm.nanosecond == 0U) { in gptp_get_current_time_nanosecond()
720 global_ds->sync_receipt_time.second = sync_receipt_time / NSEC_PER_SEC; in gptp_mi_clk_slave_sync_compute()
723 global_ds->sync_receipt_time.second += pss->precise_orig_ts.second; in gptp_mi_clk_slave_sync_compute()
768 second_diff = global_ds->sync_receipt_time.second - in gptp_update_local_port_clock()
802 if (second_diff < 0 && tm.second < -second_diff) { in gptp_update_local_port_clock()
804 (unsigned long int)tm.second, in gptp_update_local_port_clock()
809 tm.second += second_diff; in gptp_update_local_port_clock()
819 tm.second--; in gptp_update_local_port_clock()
822 tm.second++; in gptp_update_local_port_clock()
831 (unsigned long int)tm.second, in gptp_update_local_port_clock()
960 sync_info->precise_orig_ts.second = current_time / NSEC_PER_SEC; in gptp_mi_set_ps_sync_cmss()
1066 if ((src_time_0.second == 0U && src_time_0.fract_nsecond == 0U) in gptp_compute_gm_rate_ratio()
1082 if ((src_time_n.second < src_time_0.second) in gptp_compute_gm_rate_ratio()
1083 || (src_time_n.second == src_time_0.second in gptp_compute_gm_rate_ratio()
1111 src_time_n.second -= src_time_0.second; in gptp_compute_gm_rate_ratio()
1116 src_time_n.second -= 1U; in gptp_compute_gm_rate_ratio()
1132 new_gm_rate *= ((src_time_n.second * NSEC_PER_SEC) in gptp_compute_gm_rate_ratio()
1149 invoke_args.src_time.second = cur / NSEC_PER_SEC; in gptp_mi_clk_master_sync_rcv_state_machine()
1150 cur -= (invoke_args.src_time.second * NSEC_PER_SEC); in gptp_mi_clk_master_sync_rcv_state_machine()