Lines Matching refs:sync_rcv
118 struct gptp_md_sync_info *sync_rcv) in gptp_set_md_sync_receive() argument
128 state = &GPTP_PORT_STATE(port)->sync_rcv; in gptp_set_md_sync_receive()
140 sync_rcv->follow_up_correction_field = in gptp_set_md_sync_receive()
142 memcpy(&sync_rcv->src_port_id, &sync_hdr->port_id, in gptp_set_md_sync_receive()
144 sync_rcv->log_msg_interval = fup_hdr->log_msg_interval; in gptp_set_md_sync_receive()
145 sync_rcv->precise_orig_ts._sec.high = in gptp_set_md_sync_receive()
147 sync_rcv->precise_orig_ts._sec.low = ntohl(fup->prec_orig_ts_secs_low); in gptp_set_md_sync_receive()
148 sync_rcv->precise_orig_ts.nanosecond = ntohl(fup->prec_orig_ts_nsecs); in gptp_set_md_sync_receive()
151 sync_rcv->upstream_tx_time = sync_ts->second; in gptp_set_md_sync_receive()
152 sync_rcv->upstream_tx_time *= NSEC_PER_SEC; in gptp_set_md_sync_receive()
153 sync_rcv->upstream_tx_time += sync_ts->nanosecond; in gptp_set_md_sync_receive()
158 sync_rcv->upstream_tx_time -= prop_delay_rated; in gptp_set_md_sync_receive()
163 sync_rcv->upstream_tx_time -= delay_asymmetry_rated; in gptp_set_md_sync_receive()
165 sync_rcv->rate_ratio = ntohl(fup->tlv.cumulative_scaled_rate_offset); in gptp_set_md_sync_receive()
166 sync_rcv->rate_ratio /= GPTP_POW2_41; in gptp_set_md_sync_receive()
167 sync_rcv->rate_ratio += 1; in gptp_set_md_sync_receive()
169 sync_rcv->gm_time_base_indicator = in gptp_set_md_sync_receive()
171 sync_rcv->last_gm_phase_change.high = in gptp_set_md_sync_receive()
173 sync_rcv->last_gm_phase_change.low = in gptp_set_md_sync_receive()
175 sync_rcv->last_gm_freq_change = in gptp_set_md_sync_receive()
498 state = &GPTP_PORT_STATE(port)->sync_rcv; in gptp_md_follow_up_receipt_timeout()
545 state = &GPTP_PORT_STATE(port)->sync_rcv; in gptp_md_init_sync_rcv_state_machine()
751 state = &GPTP_PORT_STATE(port)->sync_rcv; in gptp_md_sync_receive_state_machine()
820 &pss_state->sync_rcv); in gptp_md_sync_receive_state_machine()