Home
last modified time | relevance | path

Searched refs:port_ds (Results 1 – 7 of 7) sorted by relevance

/Zephyr-Core-3.5.0/subsys/net/l2/ethernet/gptp/
Dgptp_md.c76 struct gptp_port_ds *port_ds; in gptp_set_md_sync_receive() local
88 port_ds = GPTP_PORT_DS(port); in gptp_set_md_sync_receive()
110 prop_delay_rated = port_ds->neighbor_prop_delay; in gptp_set_md_sync_receive()
111 prop_delay_rated /= port_ds->neighbor_rate_ratio; in gptp_set_md_sync_receive()
115 delay_asymmetry_rated = port_ds->delay_asymmetry; in gptp_set_md_sync_receive()
116 delay_asymmetry_rated /= port_ds->neighbor_rate_ratio; in gptp_set_md_sync_receive()
139 struct gptp_port_ds *port_ds; in gptp_md_pdelay_reset() local
144 port_ds = GPTP_PORT_DS(port); in gptp_md_pdelay_reset()
146 if (state->lost_responses < port_ds->allowed_lost_responses) { in gptp_md_pdelay_reset()
149 port_ds->is_measuring_delay = false; in gptp_md_pdelay_reset()
[all …]
Dgptp.c446 struct gptp_port_ds *port_ds; in gptp_init_port_ds() local
455 port_ds = GPTP_PORT_DS(port); in gptp_init_port_ds()
458 memcpy(port_ds->port_id.clk_id, default_ds->clk_id, GPTP_CLOCK_ID_LEN); in gptp_init_port_ds()
459 port_ds->port_id.port_number = port; in gptp_init_port_ds()
461 port_ds->ptt_port_enabled = true; in gptp_init_port_ds()
462 port_ds->prev_ptt_port_enabled = true; in gptp_init_port_ds()
464 port_ds->neighbor_prop_delay = 0; in gptp_init_port_ds()
465 port_ds->neighbor_prop_delay_thresh = GPTP_NEIGHBOR_PROP_DELAY_THR; in gptp_init_port_ds()
466 port_ds->delay_asymmetry = 0; in gptp_init_port_ds()
468 port_ds->ini_log_announce_itv = CONFIG_NET_GPTP_INIT_LOG_ANNOUNCE_ITV; in gptp_init_port_ds()
[all …]
Dgptp_mi.c379 struct gptp_port_ds *port_ds; in gptp_mi_pss_rcv_compute() local
384 port_ds = GPTP_PORT_DS(port); in gptp_mi_pss_rcv_compute()
387 state->rate_ratio += (port_ds->neighbor_rate_ratio - 1.0); in gptp_mi_pss_rcv_compute()
389 port_ds->sync_receipt_timeout_time_itv = port_ds->sync_receipt_timeout; in gptp_mi_pss_rcv_compute()
390 port_ds->sync_receipt_timeout_time_itv *= NSEC_PER_SEC; in gptp_mi_pss_rcv_compute()
391 port_ds->sync_receipt_timeout_time_itv *= in gptp_mi_pss_rcv_compute()
400 port_ds->sync_receipt_timeout_time_itv; in gptp_mi_pss_rcv_compute()
405 static void start_rcv_sync_timer(struct gptp_port_ds *port_ds, in start_rcv_sync_timer() argument
410 duration = K_MSEC(port_ds->sync_receipt_timeout_time_itv / in start_rcv_sync_timer()
421 struct gptp_port_ds *port_ds; in gptp_mi_pss_rcv_state_machine() local
[all …]
Dgptp_messages.c185 struct gptp_port_ds *port_ds; in gptp_prepare_sync() local
203 port_ds = GPTP_PORT_DS(port); in gptp_prepare_sync()
215 hdr->sequence_id = htons(port_ds->sync_seq_id); in gptp_prepare_sync()
233 port_ds->sync_seq_id++; in gptp_prepare_sync()
306 struct gptp_port_ds *port_ds; in gptp_prepare_pdelay_req() local
323 port_ds = GPTP_PORT_DS(port); in gptp_prepare_pdelay_req()
331 hdr->sequence_id = htons(port_ds->pdelay_req_seq_id); in gptp_prepare_pdelay_req()
339 hdr->port_id.port_number = htons(port_ds->port_id.port_number); in gptp_prepare_pdelay_req()
341 hdr->log_msg_interval = port_ds->cur_log_pdelay_req_itv; in gptp_prepare_pdelay_req()
349 port_ds->port_id.clk_id, GPTP_CLOCK_ID_LEN); in gptp_prepare_pdelay_req()
[all …]
Dgptp_data_set.h53 (&gptp_domain.port_ds[port - GPTP_PORT_START])
557 struct gptp_port_ds port_ds[CONFIG_NET_GPTP_NUM_PORTS]; member
589 struct gptp_port_ds **port_ds,
/Zephyr-Core-3.5.0/samples/net/gptp/src/
Dgptp.c34 struct gptp_port_ds *port_ds; in get_current_status() local
41 ret = gptp_get_port_data(domain, port, &port_ds, in get_current_status()
49 if (port != port_ds->port_id.port_number) { in get_current_status()
/Zephyr-Core-3.5.0/subsys/net/ip/
Dnet_shell.c3030 struct gptp_port_ds *port_ds; in gptp_print_port_info() local
3038 &port_ds, in gptp_print_port_info()
3049 NET_ASSERT(port == port_ds->port_id.port_number, in gptp_print_port_info()
3051 port_ds->port_id.port_number); in gptp_print_port_info()
3053 PR("Port id : %d (%s)\n", port_ds->port_id.port_number, in gptp_print_port_info()
3054 selected_role_str(port_ds->port_id.port_number)); in gptp_print_port_info()
3057 for (i = 0; i < sizeof(port_ds->port_id.clk_id); i++) { in gptp_print_port_info()
3058 PR("%02x", port_ds->port_id.clk_id[i]); in gptp_print_port_info()
3060 if (i != (sizeof(port_ds->port_id.clk_id) - 1)) { in gptp_print_port_info()
3066 PR("Version : %d\n", port_ds->version); in gptp_print_port_info()
[all …]