Searched refs:default_ds (Results 1 – 8 of 8) sorted by relevance
/Zephyr-latest/subsys/net/l2/ethernet/gptp/ |
D | gptp.c | 69 struct gptp_default_ds *default_ds; in gptp_compute_clock_identity() local 71 default_ds = GPTP_DEFAULT_DS(); in gptp_compute_clock_identity() 74 default_ds->clk_id[0] = net_if_get_link_addr(iface)->addr[0]; in gptp_compute_clock_identity() 75 default_ds->clk_id[1] = net_if_get_link_addr(iface)->addr[1]; in gptp_compute_clock_identity() 76 default_ds->clk_id[2] = net_if_get_link_addr(iface)->addr[2]; in gptp_compute_clock_identity() 77 default_ds->clk_id[3] = 0xFF; in gptp_compute_clock_identity() 78 default_ds->clk_id[4] = 0xFE; in gptp_compute_clock_identity() 79 default_ds->clk_id[5] = net_if_get_link_addr(iface)->addr[3]; in gptp_compute_clock_identity() 80 default_ds->clk_id[6] = net_if_get_link_addr(iface)->addr[4]; in gptp_compute_clock_identity() 81 default_ds->clk_id[7] = net_if_get_link_addr(iface)->addr[5]; in gptp_compute_clock_identity() [all …]
|
D | gptp_messages.c | 471 struct gptp_default_ds *default_ds; in gptp_prepare_announce() local 481 default_ds = GPTP_DEFAULT_DS(); in gptp_prepare_announce() 661 struct gptp_default_ds *default_ds; in gptp_handle_pdelay_resp() local 668 default_ds = GPTP_DEFAULT_DS(); in gptp_handle_pdelay_resp() 677 if (memcmp(default_ds->clk_id, resp->requesting_port_id.clk_id, in gptp_handle_pdelay_resp() 682 if (memcmp(default_ds->clk_id, hdr->port_id.clk_id, in gptp_handle_pdelay_resp() 716 struct gptp_default_ds *default_ds; in gptp_handle_pdelay_follow_up() local 721 default_ds = GPTP_DEFAULT_DS(); in gptp_handle_pdelay_follow_up() 736 if (memcmp(default_ds->clk_id, follow_up->requesting_port_id.clk_id, in gptp_handle_pdelay_follow_up() 742 if (memcmp(default_ds->clk_id, hdr->port_id.clk_id, in gptp_handle_pdelay_follow_up()
|
D | gptp_data_set.h | 41 #define GPTP_PORT_END (gptp_domain.default_ds.nb_ports + GPTP_PORT_START) 46 #define GPTP_DEFAULT_DS() (&gptp_domain.default_ds) 542 struct gptp_default_ds default_ds; member
|
D | gptp_mi.c | 1614 struct gptp_default_ds *default_ds; in compute_best_vector() local 1621 default_ds = GPTP_DEFAULT_DS(); in compute_best_vector() 1628 gm_prio->root_system_id.grand_master_prio1 = default_ds->priority1; in compute_best_vector() 1629 gm_prio->root_system_id.grand_master_prio2 = default_ds->priority2; in compute_best_vector() 1631 default_ds->clk_quality.clock_class; in compute_best_vector() 1633 default_ds->clk_quality.clock_accuracy; in compute_best_vector() 1635 htons(default_ds->clk_quality.offset_scaled_log_var); in compute_best_vector() 1637 memcpy(gm_prio->src_port_id.clk_id, default_ds->clk_id, in compute_best_vector() 1639 memcpy(gm_prio->root_system_id.grand_master_id, default_ds->clk_id, in compute_best_vector() 1655 if (memcmp(challenger->src_port_id.clk_id, default_ds->clk_id, in compute_best_vector() [all …]
|
D | gptp_md.c | 410 local_clock = !memcmp(gptp_domain.default_ds.clk_id, in gptp_md_pdelay_compute()
|
/Zephyr-latest/subsys/net/lib/ptp/ |
D | clock.c | 39 struct ptp_default_ds default_ds; member 171 ptp_clk.default_ds.priority1 = *tlv->data; in clock_management_set() 175 ptp_clk.default_ds.priority2 = *tlv->data; in clock_management_set() 190 &ptp_clk.default_ds.clk_id, in clock_update_grandmaster() 193 &ptp_clk.default_ds.clk_id, in clock_update_grandmaster() 196 ptp_clk.parent_ds.gm_clk_quality = ptp_clk.default_ds.clk_quality; in clock_update_grandmaster() 197 ptp_clk.parent_ds.gm_priority1 = ptp_clk.default_ds.priority1; in clock_update_grandmaster() 198 ptp_clk.parent_ds.gm_priority2 = ptp_clk.default_ds.priority2; in clock_update_grandmaster() 247 struct ptp_default_ds *dds = &ptp_clk.default_ds; in ptp_clock_init() 301 ret = zsock_poll(ptp_clk.pollfd, PTP_SOCKET_CNT * ptp_clk.default_ds.n_ports + 1, -1); in ptp_clock_poll_sockets() [all …]
|
D | tlv.c | 45 struct ptp_tlv_default_ds *default_ds; in tlv_mgmt_post_recv() local 196 default_ds = (struct ptp_tlv_default_ds *)mgmt_tlv->data; in tlv_mgmt_post_recv() 198 default_ds->n_ports = ntohs(default_ds->n_ports); in tlv_mgmt_post_recv() 199 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() 264 struct ptp_tlv_default_ds *default_ds; in tlv_mgmt_pre_send() local 282 default_ds = (struct ptp_tlv_default_ds *)mgmt_tlv->data; in tlv_mgmt_pre_send() 284 default_ds->n_ports = htons(default_ds->n_ports); in tlv_mgmt_pre_send() 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()
|
/Zephyr-latest/subsys/net/lib/shell/ |
D | gptp.c | 382 domain->default_ds.priority1); in gptp_print_port_info() 385 domain->default_ds.priority2); in gptp_print_port_info()
|