Searched refs:global_ds (Results 1 – 5 of 5) sorted by relevance
/Zephyr-Core-3.5.0/subsys/net/l2/ethernet/gptp/ |
D | gptp_mi.c | 79 struct gptp_global_ds *global_ds = GPTP_GLOBAL_DS(); in gptp_change_port_state_debug() local 81 if (global_ds->selected_role[port] == state) { in gptp_change_port_state_debug() 87 state2str(global_ds->selected_role[port]), in gptp_change_port_state_debug() 91 global_ds->selected_role[port] = state; in gptp_change_port_state_debug() 507 struct gptp_global_ds *global_ds; in gptp_mi_pss_send_state_machine() local 510 global_ds = GPTP_GLOBAL_DS(); in gptp_mi_pss_send_state_machine() 534 (global_ds->selected_role[port] == GPTP_PORT_MASTER)) { in gptp_mi_pss_send_state_machine() 573 if ((global_ds->selected_role[port] == GPTP_PORT_MASTER) && in gptp_mi_pss_send_state_machine() 586 (global_ds->selected_role[port] == in gptp_mi_pss_send_state_machine() 693 struct gptp_global_ds *global_ds; in gptp_mi_clk_slave_sync_compute() local [all …]
|
D | gptp_data_set.h | 45 #define GPTP_GLOBAL_DS() (&gptp_domain.global_ds) 66 #define CLEAR_RESELECT(global_ds, port) \ argument 67 (global_ds->reselect_array &= (~(1 << (port - 1)))) 68 #define SET_RESELECT(global_ds, port) \ argument 69 (global_ds->reselect_array |= (1 << (port - 1))) 70 #define CLEAR_SELECTED(global_ds, port) \ argument 71 (global_ds->selected_array &= (~(1 << (port - 1)))) 72 #define SET_SELECTED(global_ds, port) \ argument 73 (global_ds->selected_array |= (1 << (port - 1))) 74 #define IS_SELECTED(global_ds, port) \ argument [all …]
|
D | gptp_user_api.c | 36 struct gptp_global_ds *global_ds; in gptp_call_phase_dis_cb() local 40 global_ds = GPTP_GLOBAL_DS(); in gptp_call_phase_dis_cb() 41 gm_id = &global_ds->gm_priority.root_system_id.grand_master_id[0]; in gptp_call_phase_dis_cb() 48 &global_ds->gm_time_base_indicator, in gptp_call_phase_dis_cb() 49 &global_ds->clk_src_last_gm_phase_change, in gptp_call_phase_dis_cb() 50 &global_ds->clk_src_last_gm_freq_change); in gptp_call_phase_dis_cb()
|
D | gptp_messages.c | 485 struct gptp_global_ds *global_ds; in gptp_prepare_announce() local 494 global_ds = GPTP_GLOBAL_DS(); in gptp_prepare_announce() 500 ntohs(global_ds->path_trace.len)); in gptp_prepare_announce() 524 global_ds->global_flags.octets[1] | GPTP_FLAG_PTP_TIMESCALE; in gptp_prepare_announce() 538 ann->cur_utc_offset = htons(global_ds->current_utc_offset); in gptp_prepare_announce() 539 ann->time_source = global_ds->time_source; in gptp_prepare_announce() 566 ann->steps_removed = global_ds->master_steps_removed; in gptp_prepare_announce() 578 ntohs(global_ds->path_trace.len)); in gptp_prepare_announce() 580 ann->tlv.len = global_ds->path_trace.len; in gptp_prepare_announce() 591 net_pkt_write(pkt, &global_ds->path_trace.path_sequence[0][0], in gptp_prepare_announce() [all …]
|
D | gptp.c | 353 struct gptp_global_ds *global_ds; in gptp_init_clock_ds() local 359 global_ds = GPTP_GLOBAL_DS(); in gptp_init_clock_ds() 366 (void)memset(global_ds, 0, sizeof(struct gptp_global_ds)); in gptp_init_clock_ds() 436 global_ds->sys_flags.all = default_ds->flags.all; in gptp_init_clock_ds() 437 global_ds->sys_current_utc_offset = default_ds->cur_utc_offset; in gptp_init_clock_ds() 438 global_ds->sys_time_source = default_ds->time_source; in gptp_init_clock_ds() 439 global_ds->clk_master_sync_itv = in gptp_init_clock_ds()
|