Lines Matching refs:new_itv
717 int32_t new_itv, old_itv; in gptp_update_pdelay_req_interval() local
726 new_itv = update_itv(&port_ds->pdelay_req_itv, in gptp_update_pdelay_req_interval()
732 new_itv -= (old_itv-remaining); in gptp_update_pdelay_req_interval()
733 if (new_itv <= 0) { in gptp_update_pdelay_req_interval()
734 new_itv = 1; in gptp_update_pdelay_req_interval()
737 k_timer_start(&state_pdelay->pdelay_timer, K_MSEC(new_itv), K_NO_WAIT); in gptp_update_pdelay_req_interval()
744 int32_t new_itv, old_itv, period; in gptp_update_sync_interval() local
754 new_itv = update_itv(&port_ds->half_sync_itv, in gptp_update_sync_interval()
759 period = new_itv; in gptp_update_sync_interval()
769 if ((time_spent / 2U) > new_itv) { in gptp_update_sync_interval()
772 new_itv = 1; in gptp_update_sync_interval()
773 } else if (time_spent > new_itv) { in gptp_update_sync_interval()
776 new_itv -= (time_spent - new_itv); in gptp_update_sync_interval()
780 new_itv -= time_spent; in gptp_update_sync_interval()
783 if (new_itv <= 0) { in gptp_update_sync_interval()
784 new_itv = 1; in gptp_update_sync_interval()
787 k_timer_start(&state_pss_send->half_sync_itv_timer, K_MSEC(new_itv), in gptp_update_sync_interval()
794 int32_t new_itv, old_itv; in gptp_update_announce_interval() local
806 new_itv = update_itv(&bmca_data->announce_interval, in gptp_update_announce_interval()
812 new_itv -= (old_itv-remaining); in gptp_update_announce_interval()
813 if (new_itv <= 0) { in gptp_update_announce_interval()
814 new_itv = 1; in gptp_update_announce_interval()
817 k_timer_start(&state_ann->ann_send_periodic_timer, K_MSEC(new_itv), in gptp_update_announce_interval()