Lines Matching +full:no +full:- +full:enum

5  * SPDX-License-Identifier: Apache-2.0
30 const struct shell *sh = data->sh; in gptp_port_cb()
31 int *count = data->user_data; in gptp_port_cb()
43 static const char *pdelay_req2str(enum gptp_pdelay_req_states state) in pdelay_req2str()
65 static const char *pdelay_resp2str(enum gptp_pdelay_resp_states state) in pdelay_resp2str()
81 static const char *sync_rcv2str(enum gptp_sync_rcv_states state) in sync_rcv2str()
95 static const char *sync_send2str(enum gptp_sync_send_states state) in sync_send2str()
109 static const char *pss_rcv2str(enum gptp_pss_rcv_states state) in pss_rcv2str()
121 static const char *pss_send2str(enum gptp_pss_send_states state) in pss_send2str()
137 static const char *pa_rcv2str(enum gptp_pa_rcv_states state) in pa_rcv2str()
149 static const char *pa_info2str(enum gptp_pa_info_states state) in pa_info2str()
175 static const char *pa_transmit2str(enum gptp_pa_transmit_states state) in pa_transmit2str()
191 static const char *site_sync2str(enum gptp_site_sync_sync_states state) in site_sync2str()
203 static const char *clk_slave2str(enum gptp_clk_slave_sync_states state) in clk_slave2str()
215 static const char *pr_selection2str(enum gptp_pr_selection_states state) in pr_selection2str()
227 static const char *cms_rcv2str(enum gptp_cms_rcv_states state) in cms_rcv2str()
247 switch (GPTP_GLOBAL_DS()->selected_role[port]) { in selected_role_str()
257 return "PRE-MASTER"; in selected_role_str()
296 NET_ASSERT(port == port_ds->port_id.port_number, in gptp_print_port_info()
298 port_ds->port_id.port_number); in gptp_print_port_info()
300 PR("Port id : %d (%s)\n", port_ds->port_id.port_number, in gptp_print_port_info()
301 selected_role_str(port_ds->port_id.port_number)); in gptp_print_port_info()
304 for (i = 0; i < sizeof(port_ds->port_id.clk_id); i++) { in gptp_print_port_info()
305 PR("%02x", port_ds->port_id.clk_id[i]); in gptp_print_port_info()
307 if (i != (sizeof(port_ds->port_id.clk_id) - 1)) { in gptp_print_port_info()
313 PR("Version : %d\n", port_ds->version); in gptp_print_port_info()
314 PR("AS capable : %s\n", port_ds->as_capable ? "yes" : "no"); in gptp_print_port_info()
318 ": %s\n", port_ds->ptt_port_enabled ? "yes" : "no"); in gptp_print_port_info()
320 ": %s\n", port_ds->is_measuring_delay ? "yes" : "no"); in gptp_print_port_info()
323 (uint32_t)port_ds->neighbor_prop_delay); in gptp_print_port_info()
326 (uint32_t)port_ds->neighbor_prop_delay_thresh); in gptp_print_port_info()
328 ": %u\n", (uint32_t)port_ds->neighbor_rate_ratio); in gptp_print_port_info()
330 ": %" PRId64 "\n", port_ds->delay_asymmetry); in gptp_print_port_info()
333 port_ds->sync_receipt_timeout_time_itv); in gptp_print_port_info()
335 ": %d\n", port_ds->allowed_lost_responses); in gptp_print_port_info()
337 "sequence id for this port", port_ds->sync_seq_id); in gptp_print_port_info()
339 "sequence id for this port", port_ds->pdelay_req_seq_id); in gptp_print_port_info()
341 "sequence id for this port", port_ds->announce_seq_id); in gptp_print_port_info()
343 "sequence id for this port", port_ds->signaling_seq_id); in gptp_print_port_info()
346 port_ds->compute_neighbor_rate_ratio ? "yes" : "no"); in gptp_print_port_info()
349 port_ds->compute_neighbor_prop_delay ? "yes" : "no"); in gptp_print_port_info()
351 "as a Logarithm to base 2", port_ds->ini_log_announce_itv); in gptp_print_port_info()
353 "as a Logarithm to base 2", port_ds->cur_log_announce_itv); in gptp_print_port_info()
355 "as a Logarithm to base 2", port_ds->ini_log_half_sync_itv); in gptp_print_port_info()
357 "as a Logarithm to base 2", port_ds->cur_log_half_sync_itv); in gptp_print_port_info()
359 "as a Logarithm to base 2", port_ds->ini_log_pdelay_req_itv); in gptp_print_port_info()
361 "as a Logarithm to base 2", port_ds->cur_log_pdelay_req_itv); in gptp_print_port_info()
365 &port_bmca_data->ann_rcpt_timeout_time_interval), in gptp_print_port_info()
366 port_ds->announce_receipt_timeout); in gptp_print_port_info()
369 (port_ds->sync_receipt_timeout_time_itv >> 16) / in gptp_print_port_info()
371 port_ds->sync_receipt_timeout); in gptp_print_port_info()
374 USCALED_NS_TO_NS(port_ds->half_sync_itv.low) / in gptp_print_port_info()
378 USCALED_NS_TO_NS(port_ds->pdelay_req_itv.low) / in gptp_print_port_info()
382 domain->default_ds.priority1); in gptp_print_port_info()
385 domain->default_ds.priority2); in gptp_print_port_info()
392 ": %s\n", pdelay_req2str(port_state->pdelay_req.state)); in gptp_print_port_info()
394 ": %" PRIu64 "\n", port_state->pdelay_req.ini_resp_evt_tstamp); in gptp_print_port_info()
396 ": %" PRIu64 "\n", port_state->pdelay_req.ini_resp_ingress_tstamp); in gptp_print_port_info()
399 port_state->pdelay_req.rcvd_pdelay_resp); in gptp_print_port_info()
402 port_state->pdelay_req.rcvd_pdelay_follow_up); in gptp_print_port_info()
404 ": %u\n", port_state->pdelay_req.lost_responses); in gptp_print_port_info()
406 ": %u\n", port_state->pdelay_req.pdelay_timer_expired); in gptp_print_port_info()
408 ": %u\n", port_state->pdelay_req.neighbor_rate_ratio_valid); in gptp_print_port_info()
410 ": %u\n", port_state->pdelay_req.init_pdelay_compute); in gptp_print_port_info()
412 ": %u\n", port_state->pdelay_req.multiple_resp_count); in gptp_print_port_info()
416 ": %s\n", pdelay_resp2str(port_state->pdelay_resp.state)); in gptp_print_port_info()
420 ": %s\n", sync_rcv2str(port_state->sync_rcv.state)); in gptp_print_port_info()
423 port_state->sync_rcv.rcvd_sync ? "yes" : "no"); in gptp_print_port_info()
426 port_state->sync_rcv.rcvd_follow_up ? "yes" : "no"); in gptp_print_port_info()
429 port_state->sync_rcv.follow_up_timeout_expired ? "yes" : "no"); in gptp_print_port_info()
433 port_state->sync_rcv.follow_up_receipt_timeout); in gptp_print_port_info()
437 ": %s\n", sync_send2str(port_state->sync_send.state)); in gptp_print_port_info()
440 port_state->sync_send.rcvd_md_sync ? "yes" : "no"); in gptp_print_port_info()
443 port_state->sync_send.md_sync_timestamp_avail ? "yes" : "no"); in gptp_print_port_info()
447 ": %s\n", pss_rcv2str(port_state->pss_rcv.state)); in gptp_print_port_info()
449 ": %f\n", port_state->pss_rcv.rate_ratio); in gptp_print_port_info()
451 ": %s\n", port_state->pss_rcv.rcvd_md_sync ? "yes" : "no"); in gptp_print_port_info()
453 port_state->pss_rcv.rcv_sync_receipt_timeout_timer_expired ? in gptp_print_port_info()
454 "yes" : "no"); in gptp_print_port_info()
458 ": %s\n", pss_send2str(port_state->pss_send.state)); in gptp_print_port_info()
461 port_state->pss_send.last_follow_up_correction_field); in gptp_print_port_info()
463 ": %" PRIu64 "\n", port_state->pss_send.last_upstream_tx_time); in gptp_print_port_info()
466 port_state->pss_send.last_rate_ratio); in gptp_print_port_info()
468 ": %f\n", port_state->pss_send.last_gm_freq_change); in gptp_print_port_info()
470 ": %d\n", port_state->pss_send.last_gm_time_base_indicator); in gptp_print_port_info()
473 port_state->pss_send.last_rcvd_port_num); in gptp_print_port_info()
475 ": %s\n", port_state->pss_send.rcvd_pss_sync ? "yes" : "no"); in gptp_print_port_info()
478 port_state->pss_send.half_sync_itv_timer_expired ? "yes" : "no"); in gptp_print_port_info()
481 port_state->pss_send.sync_itv_timer_expired ? "yes" : "no"); in gptp_print_port_info()
484 port_state->pss_send.send_sync_receipt_timeout_timer_expired ? in gptp_print_port_info()
485 "yes" : "no"); in gptp_print_port_info()
489 ": %s\n", pa_rcv2str(port_state->pa_rcv.state)); in gptp_print_port_info()
492 port_state->pa_rcv.rcvd_announce ? "yes" : "no"); in gptp_print_port_info()
496 ": %s\n", pa_info2str(port_state->pa_info.state)); in gptp_print_port_info()
498 ": %s\n", port_state->pa_info.ann_expired ? "yes" : "no"); in gptp_print_port_info()
502 ": %s\n", pa_transmit2str(port_state->pa_transmit.state)); in gptp_print_port_info()
504 ": %s\n", port_state->pa_transmit.ann_trigger ? "yes" : "no"); in gptp_print_port_info()
509 "messages", "received", port_param_ds->rx_sync_count); in gptp_print_port_info()
511 "messages", "received", port_param_ds->rx_fup_count); in gptp_print_port_info()
513 "messages", "received", port_param_ds->rx_pdelay_req_count); in gptp_print_port_info()
515 "messages", "received", port_param_ds->rx_pdelay_resp_count); in gptp_print_port_info()
518 port_param_ds->neighbor_prop_delay_exceeded); in gptp_print_port_info()
520 "messages", "received", port_param_ds->rx_pdelay_resp_fup_count); in gptp_print_port_info()
522 "messages", "received", port_param_ds->rx_announce_count); in gptp_print_port_info()
524 "messages", port_param_ds->rx_ptp_packet_discard_count); in gptp_print_port_info()
527 port_param_ds->sync_receipt_timeout_count); in gptp_print_port_info()
530 port_param_ds->announce_receipt_timeout_count); in gptp_print_port_info()
533 port_param_ds->pdelay_allowed_lost_resp_exceed_count); in gptp_print_port_info()
535 "messages", "sent", port_param_ds->tx_sync_count); in gptp_print_port_info()
537 "messages", "sent", port_param_ds->tx_fup_count); in gptp_print_port_info()
539 "messages", "sent", port_param_ds->tx_pdelay_req_count); in gptp_print_port_info()
541 "messages", "sent", port_param_ds->tx_pdelay_resp_count); in gptp_print_port_info()
543 "messages", "sent", port_param_ds->tx_pdelay_resp_fup_count); in gptp_print_port_info()
545 "messages", "sent", port_param_ds->tx_announce_count); in gptp_print_port_info()
561 return -ENOEXEC; in cmd_net_gptp_port()
605 site_sync2str(domain->state.site_ss.state)); in cmd_net_gptp()
607 domain->state.site_ss.rcvd_pss ? "yes" : "no"); in cmd_net_gptp()
611 clk_slave2str(domain->state.clk_slave_sync.state)); in cmd_net_gptp()
613 domain->state.clk_slave_sync.rcvd_pss ? "yes" : "no"); in cmd_net_gptp()
615 domain->state.clk_slave_sync.rcvd_local_clk_tick ? in cmd_net_gptp()
616 "yes" : "no"); in cmd_net_gptp()
620 pr_selection2str(domain->state.pr_sel.state)); in cmd_net_gptp()
624 cms_rcv2str(domain->state.clk_master_sync_receive.state)); in cmd_net_gptp()
626 domain->state.clk_master_sync_receive.rcvd_clock_source_req in cmd_net_gptp()
627 ? "yes" : "no"); in cmd_net_gptp()
629 domain->state.clk_master_sync_receive.rcvd_local_clock_tick in cmd_net_gptp()
630 ? "yes" : "no"); in cmd_net_gptp()