/Zephyr-latest/subsys/net/lib/ptp/ |
D | state_machine.c | 15 enum ptp_port_state new_state = state; in ptp_state_machine() local 26 new_state = IS_ENABLED(CONFIG_PTP_FAULTY_PRESENT) ? in ptp_state_machine() 27 PTP_PS_FAULTY : new_state; in ptp_state_machine() 30 new_state = IS_ENABLED(CONFIG_PTP_LISTENING_PRESENT) ? in ptp_state_machine() 41 new_state = IS_ENABLED(CONFIG_PTP_DISABLED_PRESENT) ? in ptp_state_machine() 42 PTP_PS_DISABLED : new_state; in ptp_state_machine() 45 new_state = PTP_PS_INITIALIZING; in ptp_state_machine() 55 new_state = PTP_PS_INITIALIZING; in ptp_state_machine() 63 new_state = IS_ENABLED(CONFIG_PTP_DISABLED_PRESENT) ? in ptp_state_machine() 64 PTP_PS_DISABLED : new_state; in ptp_state_machine() [all …]
|
/Zephyr-latest/lib/smf/ |
D | smf.c | 18 bool new_state: 1; member 90 const struct smf_state *new_state, in smf_execute_all_entry_actions() argument 95 if (new_state == topmost) { in smf_execute_all_entry_actions() 100 for (const struct smf_state *to_execute = get_child_of(new_state, topmost); in smf_execute_all_entry_actions() 101 to_execute != NULL && to_execute != new_state; in smf_execute_all_entry_actions() 102 to_execute = get_child_of(new_state, to_execute)) { in smf_execute_all_entry_actions() 119 ctx->executing = new_state; in smf_execute_all_entry_actions() 120 if (new_state->entry) { in smf_execute_all_entry_actions() 121 new_state->entry(ctx); in smf_execute_all_entry_actions() 150 if (internal->new_state || internal->handled) { in smf_execute_ancestor_run_actions() [all …]
|
/Zephyr-latest/subsys/net/l2/ppp/ |
D | misc.c | 268 void ppp_change_state_debug(struct ppp_fsm *fsm, enum ppp_state new_state, in ppp_change_state_debug() argument 271 void ppp_change_state(struct ppp_fsm *fsm, enum ppp_state new_state) in ppp_change_state_debug() 276 if (fsm->state == new_state) { in ppp_change_state_debug() 280 NET_ASSERT(new_state >= PPP_INITIAL && in ppp_change_state_debug() 281 new_state <= PPP_OPENED); in ppp_change_state_debug() 286 ppp_state_str(new_state), new_state, caller, line); in ppp_change_state_debug() 289 validate_state_transition(fsm->state, new_state); in ppp_change_state_debug() 291 fsm->state = new_state; in ppp_change_state_debug()
|
D | ppp_internal.h | 115 void ppp_change_state(struct ppp_fsm *fsm, enum ppp_state new_state); 127 void ppp_change_state_debug(struct ppp_fsm *fsm, enum ppp_state new_state,
|
D | fsm.c | 900 enum ppp_state new_state; in fsm_recv_terminate_ack() local 907 new_state = PPP_CLOSED; in fsm_recv_terminate_ack() 918 new_state = PPP_STOPPED; in fsm_recv_terminate_ack() 935 ppp_change_state(fsm, new_state); in fsm_recv_terminate_ack()
|
/Zephyr-latest/drivers/ethernet/phy/ |
D | phy_realtek_rtl8211f.c | 213 struct phy_link_state new_state = {}; in phy_rt_rtl8211f_get_link() local 233 new_state.is_up = physr & PHY_RT_RTL8211F_PHYSR_LINKSTATUS_MASK; in phy_rt_rtl8211f_get_link() 235 if (!new_state.is_up) { in phy_rt_rtl8211f_get_link() 244 new_state.speed = LINK_FULL_100BASE_T; in phy_rt_rtl8211f_get_link() 246 new_state.speed = LINK_HALF_100BASE_T; in phy_rt_rtl8211f_get_link() 251 new_state.speed = LINK_FULL_1000BASE_T; in phy_rt_rtl8211f_get_link() 253 new_state.speed = LINK_HALF_1000BASE_T; in phy_rt_rtl8211f_get_link() 259 new_state.speed = LINK_FULL_10BASE_T; in phy_rt_rtl8211f_get_link() 261 new_state.speed = LINK_HALF_10BASE_T; in phy_rt_rtl8211f_get_link() 266 if (memcmp(&old_state, &new_state, sizeof(struct phy_link_state)) != 0) { in phy_rt_rtl8211f_get_link() [all …]
|
/Zephyr-latest/drivers/dai/nxp/esai/ |
D | esai.h | 381 enum dai_dir dir, enum dai_state new_state) in esai_update_state() argument 385 LOG_DBG("attempting state transition from %d to %d", old_state, new_state); in esai_update_state() 387 switch (new_state) { in esai_update_state() 410 LOG_ERR("invalid new state: %d", new_state); in esai_update_state() 415 data->rx_state = new_state; in esai_update_state() 417 data->tx_state = new_state; in esai_update_state()
|
/Zephyr-latest/include/zephyr/ |
D | smf.h | 139 void smf_set_state(struct smf_ctx *ctx, const struct smf_state *new_state);
|
/Zephyr-latest/drivers/dai/nxp/sai/ |
D | sai.h | 440 enum dai_state new_state) in sai_update_state() argument 444 LOG_DBG("attempting to transition from %d to %d", old_state, new_state); in sai_update_state() 447 switch (new_state) { in sai_update_state() 487 data->rx_state = new_state; in sai_update_state() 489 data->tx_state = new_state; in sai_update_state()
|
/Zephyr-latest/include/zephyr/input/ |
D | input_kbd_matrix.h | 153 static kbd_row_t INPUT_KBD_MATRIX_DATA_NAME(node_id, new_state)[_col_size]; \ 211 .matrix_new_state = INPUT_KBD_MATRIX_DATA_NAME(node_id, new_state), \
|
/Zephyr-latest/drivers/net/ |
D | ppp.c | 376 enum ppp_driver_state new_state) in ppp_change_state() argument 380 if (ctx->state == new_state) { in ppp_change_state() 384 NET_ASSERT(new_state >= STATE_HDLC_FRAME_START && in ppp_change_state() 385 new_state <= STATE_HDLC_FRAME_DATA); in ppp_change_state() 389 ppp_driver_state_str(new_state), new_state); in ppp_change_state() 391 ctx->state = new_state; in ppp_change_state()
|
/Zephyr-latest/drivers/can/ |
D | can_xmc4xxx.c | 663 enum can_state new_state; in can_xmc4xxx_state_change_handler() local 666 can_xmc4xxx_get_state_from_status(dev, &new_state, &err_cnt, &status); in can_xmc4xxx_state_change_handler() 667 if (dev_data->state != new_state) { in can_xmc4xxx_state_change_handler() 670 dev, new_state, err_cnt, in can_xmc4xxx_state_change_handler() 674 if (dev_data->state != CAN_STATE_STOPPED && new_state == CAN_STATE_BUS_OFF) { in can_xmc4xxx_state_change_handler() 679 dev_data->state = new_state; in can_xmc4xxx_state_change_handler()
|
D | can_mcp251xfd.c | 882 enum can_state new_state; in mcp251xfd_handle_cerrif() local 889 ret = mcp251xfd_get_state(dev, &new_state, &err_cnt); in mcp251xfd_handle_cerrif() 894 if (new_state == dev_data->state) { in mcp251xfd_handle_cerrif() 898 LOG_INF("State %d -> %d (tx: %d, rx: %d)", dev_data->state, new_state, err_cnt.tx_err_cnt, in mcp251xfd_handle_cerrif() 902 dev_data->state = new_state; in mcp251xfd_handle_cerrif() 903 if (new_state == CAN_STATE_BUS_OFF) { in mcp251xfd_handle_cerrif() 908 dev_data->common.state_change_cb(dev, new_state, err_cnt, in mcp251xfd_handle_cerrif()
|
/Zephyr-latest/kernel/ |
D | sched.c | 39 static void halt_thread(struct k_thread *thread, uint8_t new_state); 1268 static void halt_thread(struct k_thread *thread, uint8_t new_state) in halt_thread() argument 1275 if ((thread->base.thread_state & new_state) == 0U) { in halt_thread() 1276 thread->base.thread_state |= new_state; in halt_thread() 1281 if (new_state == _THREAD_DEAD) { in halt_thread() 1303 if (new_state == _THREAD_SUSPENDED) { in halt_thread()
|
/Zephyr-latest/drivers/usb/device/ |
D | usb_dc_nrfx.c | 503 enum usbd_periph_state new_state; in usb_dc_power_event_handler() local 508 new_state = USBD_ATTACHED; in usb_dc_power_event_handler() 518 new_state = USBD_POWERED; in usb_dc_power_event_handler() 521 new_state = USBD_DETACHED; in usb_dc_power_event_handler() 528 submit_dc_power_event(new_state); in usb_dc_power_event_handler()
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | ascs.c | 522 const enum bt_bap_ep_state new_state = ase->state_pending; in state_transition_work_handler() local 525 ase->ep.status.state = new_state; in state_transition_work_handler() 557 bt_bap_ep_state_str(old_state), bt_bap_ep_state_str(new_state)); in state_transition_work_handler() 559 if (old_state == new_state) { in state_transition_work_handler() 560 switch (new_state) { in state_transition_work_handler() 583 switch (new_state) { in state_transition_work_handler() 606 __ASSERT_PRINT("Invalid state %d", new_state); in state_transition_work_handler()
|
/Zephyr-latest/subsys/net/ip/ |
D | net_if.c | 5518 enum net_if_oper_state new_state = NET_IF_OPER_UNKNOWN; in update_operational_state() local 5521 new_state = NET_IF_OPER_DOWN; in update_operational_state() 5526 new_state = NET_IF_OPER_LOWERLAYERDOWN; in update_operational_state() 5533 new_state = NET_IF_OPER_LOWERLAYERDOWN; in update_operational_state() 5537 new_state = NET_IF_OPER_DOWN; in update_operational_state() 5544 new_state = NET_IF_OPER_DORMANT; in update_operational_state() 5548 new_state = NET_IF_OPER_UP; in update_operational_state() 5551 if (net_if_oper_state_set(iface, new_state) != new_state) { in update_operational_state() 5552 NET_ERR("Failed to update oper state to %d", new_state); in update_operational_state()
|
D | ipv6_nbr.c | 153 enum net_ipv6_nbr_state new_state) in ipv6_nbr_set_state() argument 155 if (new_state == net_ipv6_nbr_data(nbr)->state || in ipv6_nbr_set_state() 162 net_ipv6_nbr_state2str(new_state)); in ipv6_nbr_set_state() 164 net_ipv6_nbr_data(nbr)->state = new_state; in ipv6_nbr_set_state()
|
/Zephyr-latest/drivers/modem/ |
D | modem_cellular.c | 525 enum modem_cellular_state new_state) in modem_cellular_log_state_changed() argument 528 modem_cellular_state_str(new_state)); in modem_cellular_log_state_changed()
|
/Zephyr-latest/doc/releases/ |
D | migration-guide-3.7.rst | 968 * Previously, calling :c:func:`smf_set_state` with a ``new_state`` set to NULL would execute all
|