Searched refs:current_ds (Results 1 – 4 of 4) sorted by relevance
46 struct ptp_tlv_current_ds *current_ds; in tlv_mgmt_post_recv() local206 current_ds = (struct ptp_tlv_current_ds *)mgmt_tlv->data; in tlv_mgmt_post_recv()208 current_ds->steps_rm = ntohs(current_ds->steps_rm); in tlv_mgmt_post_recv()209 current_ds->offset_from_tt = ntohll(current_ds->offset_from_tt); in tlv_mgmt_post_recv()210 current_ds->mean_delay = ntohll(current_ds->mean_delay); in tlv_mgmt_post_recv()265 struct ptp_tlv_current_ds *current_ds; in tlv_mgmt_pre_send() local289 current_ds = (struct ptp_tlv_current_ds *)mgmt_tlv->data; in tlv_mgmt_pre_send()291 current_ds->steps_rm = htons(current_ds->steps_rm); in tlv_mgmt_pre_send()292 current_ds->offset_from_tt = htonll(current_ds->offset_from_tt); in tlv_mgmt_pre_send()293 current_ds->mean_delay = htonll(current_ds->mean_delay); in tlv_mgmt_pre_send()
40 struct ptp_current_ds current_ds; member187 memset(&ptp_clk.current_ds, 0, sizeof(struct ptp_current_ds)); in clock_update_grandmaster()209 ptp_clk.current_ds.steps_rm = 1 + ptp_clk.best->dataset.steps_rm; in clock_update_time_receiver()512 uint64_t delay = ptp_clk.current_ds.mean_delay >> 16; in ptp_clock_synchronize()517 if (!ptp_clk.current_ds.mean_delay) { in ptp_clock_synchronize()550 ptp_clk.current_ds.offset_from_tt = clock_ns_to_timeinterval(offset); in ptp_clock_synchronize()566 ptp_clk.current_ds.mean_delay = clock_ns_to_timeinterval(delay); in ptp_clock_delay()591 return &ptp_clk.current_ds; in ptp_clock_current_ds()
47 #define GPTP_CURRENT_DS() (&gptp_domain.current_ds)545 struct gptp_current_ds current_ds; member
353 struct gptp_current_ds *current_ds; in gptp_init_clock_ds() local359 current_ds = GPTP_CURRENT_DS(); in gptp_init_clock_ds()400 (void)memset(current_ds, 0, sizeof(struct gptp_current_ds)); in gptp_init_clock_ds()