Home
last modified time | relevance | path

Searched refs:clk_quality (Results 1 – 11 of 11) sorted by relevance

/Zephyr-latest/subsys/net/lib/ptp/
Dbtca.c103 if (a->clk_quality.cls > b->clk_quality.cls) { in ptp_btca_ds_cmp()
106 if (a->clk_quality.accuracy > b->clk_quality.accuracy) { in ptp_btca_ds_cmp()
109 if (a->clk_quality.offset_scaled_log_variance > b->clk_quality.offset_scaled_log_variance) { in ptp_btca_ds_cmp()
132 if (clk_default->clk_quality.cls <= 127) { in ptp_btca_state_decision()
Dds.h38 struct ptp_clk_quality clk_quality; member
209 struct ptp_clk_quality clk_quality; member
Dclock.c196 ptp_clk.parent_ds.gm_clk_quality = ptp_clk.default_ds.clk_quality; in clock_update_grandmaster()
265 dds->clk_quality.cls = dds->time_receiver_only ? 255 : 248; in ptp_clock_init()
266 dds->clk_quality.accuracy = CONFIG_PTP_CLOCK_ACCURACY; in ptp_clock_init()
268 dds->clk_quality.offset_scaled_log_variance = 0xFFFF; in ptp_clock_init()
604 ds->clk_quality = ptp_clk.default_ds.clk_quality; in ptp_clock_ds()
Dtlv.c199 default_ds->clk_quality.offset_scaled_log_variance = in tlv_mgmt_post_recv()
200 ntohs(default_ds->clk_quality.offset_scaled_log_variance); in tlv_mgmt_post_recv()
285 default_ds->clk_quality.offset_scaled_log_variance = in tlv_mgmt_pre_send()
286 htons(default_ds->clk_quality.offset_scaled_log_variance); in tlv_mgmt_pre_send()
Dtlv.h243 struct ptp_clk_quality clk_quality; member
Dport.c764 memcpy(&tlv_dds->clk_quality, &dds->clk_quality, sizeof(tlv_dds->clk_quality)); in port_management_resp_tlv_fill()
825 length = sizeof(dds->clk_quality.accuracy); in port_management_resp_tlv_fill()
826 *mgmt->data = dds->clk_quality.accuracy; in port_management_resp_tlv_fill()
1330 memcpy(&foreign->dataset.clk_quality, in ptp_port_best_foreign()
/Zephyr-latest/subsys/net/l2/ethernet/gptp/
Dgptp.c372 default_ds->clk_quality.clock_class = GPTP_CLASS_OTHER; in gptp_init_clock_ds()
373 default_ds->clk_quality.clock_accuracy = in gptp_init_clock_ds()
375 default_ds->clk_quality.offset_scaled_log_var = in gptp_init_clock_ds()
414 default_ds->clk_quality.clock_class; in gptp_init_clock_ds()
416 default_ds->clk_quality.clock_accuracy; in gptp_init_clock_ds()
418 default_ds->clk_quality.offset_scaled_log_var; in gptp_init_clock_ds()
Dgptp_messages.h141 struct gptp_clock_quality clk_quality; member
Dgptp_data_set.h262 struct gptp_clock_quality clk_quality; member
Dgptp_mi.c1630 gm_prio->root_system_id.clk_quality.clock_class = in compute_best_vector()
1631 default_ds->clk_quality.clock_class; in compute_best_vector()
1632 gm_prio->root_system_id.clk_quality.clock_accuracy = in compute_best_vector()
1633 default_ds->clk_quality.clock_accuracy; in compute_best_vector()
1634 gm_prio->root_system_id.clk_quality.offset_scaled_log_var = in compute_best_vector()
1635 htons(default_ds->clk_quality.offset_scaled_log_var); in compute_best_vector()
Dgptp_messages.c46 ann->root_system_id.clk_quality.clock_class, \
47 ann->root_system_id.clk_quality.clock_accuracy,\