Lines Matching refs:fup

37 	struct gptp_follow_up *fup;  in gptp_md_follow_up_prepare()  local
42 fup = GPTP_FOLLOW_UP(pkt); in gptp_md_follow_up_prepare()
60 fup->prec_orig_ts_secs_high = htons(sync_ts->_sec.high); in gptp_md_follow_up_prepare()
61 fup->prec_orig_ts_secs_low = htonl(sync_ts->_sec.low); in gptp_md_follow_up_prepare()
62 fup->prec_orig_ts_nsecs = htonl(sync_ts->nanosecond); in gptp_md_follow_up_prepare()
72 fup->prec_orig_ts_secs_high = in gptp_md_follow_up_prepare()
74 fup->prec_orig_ts_secs_low = htonl(sync_send->precise_orig_ts._sec.low); in gptp_md_follow_up_prepare()
75 fup->prec_orig_ts_nsecs = htonl(sync_send->precise_orig_ts.nanosecond); in gptp_md_follow_up_prepare()
93 fup->tlv_hdr.type = htons(GPTP_TLV_ORGANIZATION_EXT); in gptp_md_follow_up_prepare()
94 fup->tlv_hdr.len = htons(sizeof(struct gptp_follow_up_tlv)); in gptp_md_follow_up_prepare()
95 fup->tlv.org_id[0] = GPTP_FUP_TLV_ORG_ID_BYTE_0; in gptp_md_follow_up_prepare()
96 fup->tlv.org_id[1] = GPTP_FUP_TLV_ORG_ID_BYTE_1; in gptp_md_follow_up_prepare()
97 fup->tlv.org_id[2] = GPTP_FUP_TLV_ORG_ID_BYTE_2; in gptp_md_follow_up_prepare()
98 fup->tlv.org_sub_type[0] = 0U; in gptp_md_follow_up_prepare()
99 fup->tlv.org_sub_type[1] = 0U; in gptp_md_follow_up_prepare()
100 fup->tlv.org_sub_type[2] = GPTP_FUP_TLV_ORG_SUB_TYPE; in gptp_md_follow_up_prepare()
102 fup->tlv.cumulative_scaled_rate_offset = in gptp_md_follow_up_prepare()
104 fup->tlv.cumulative_scaled_rate_offset = in gptp_md_follow_up_prepare()
105 ntohl(fup->tlv.cumulative_scaled_rate_offset); in gptp_md_follow_up_prepare()
106 fup->tlv.gm_time_base_indicator = in gptp_md_follow_up_prepare()
108 fup->tlv.last_gm_phase_change.high = in gptp_md_follow_up_prepare()
110 fup->tlv.last_gm_phase_change.low = in gptp_md_follow_up_prepare()
112 fup->tlv.scaled_last_gm_freq_change = sync_send->last_gm_freq_change; in gptp_md_follow_up_prepare()
113 fup->tlv.scaled_last_gm_freq_change = in gptp_md_follow_up_prepare()
114 ntohl(fup->tlv.scaled_last_gm_freq_change); in gptp_md_follow_up_prepare()
123 struct gptp_follow_up *fup; in gptp_set_md_sync_receive() local
137 fup = GPTP_FOLLOW_UP(state->rcvd_follow_up_ptr); in gptp_set_md_sync_receive()
146 ntohs(fup->prec_orig_ts_secs_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()
165 sync_rcv->rate_ratio = ntohl(fup->tlv.cumulative_scaled_rate_offset); in gptp_set_md_sync_receive()
170 ntohs(fup->tlv.gm_time_base_indicator); in gptp_set_md_sync_receive()
172 ntohl(fup->tlv.last_gm_phase_change.high); in gptp_set_md_sync_receive()
174 ntohll(fup->tlv.last_gm_phase_change.low); in gptp_set_md_sync_receive()
176 ntohl(fup->tlv.scaled_last_gm_freq_change); in gptp_set_md_sync_receive()
240 struct gptp_pdelay_resp_follow_up *fup; in gptp_md_compute_pdelay_rate_ratio() local
261 fup = GPTP_PDELAY_RESP_FOLLOWUP(pkt); in gptp_md_compute_pdelay_rate_ratio()
263 resp_evt_tstamp = ntohs(fup->resp_orig_ts_secs_high); in gptp_md_compute_pdelay_rate_ratio()
265 resp_evt_tstamp |= ntohl(fup->resp_orig_ts_secs_low); in gptp_md_compute_pdelay_rate_ratio()
267 resp_evt_tstamp += ntohl(fup->resp_orig_ts_nsecs); in gptp_md_compute_pdelay_rate_ratio()
306 struct gptp_pdelay_resp_follow_up *fup; in gptp_md_compute_prop_time() local
345 fup = GPTP_PDELAY_RESP_FOLLOWUP(pkt); in gptp_md_compute_prop_time()
347 t3_ns = ((uint64_t)ntohs(fup->resp_orig_ts_secs_high)) << 32; in gptp_md_compute_prop_time()
348 t3_ns |= ntohl(fup->resp_orig_ts_secs_low); in gptp_md_compute_prop_time()
350 t3_ns += ntohl(fup->resp_orig_ts_nsecs); in gptp_md_compute_prop_time()