Home
last modified time | relevance | path

Searched refs:new_state (Results 1 – 18 of 18) sorted by relevance

/Zephyr-Core-3.6.0/subsys/net/l2/ppp/
Dmisc.c268 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()
Dppp_internal.h115 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,
Dfsm.c900 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-Core-3.6.0/lib/smf/
Dsmf.c18 bool new_state : 1; member
111 if (internal->new_state) { in smf_execute_ancestor_run_actions()
112 internal->new_state = false; in smf_execute_ancestor_run_actions()
133 if (internal->new_state) { in smf_execute_ancestor_run_actions()
139 internal->new_state = false; in smf_execute_ancestor_run_actions()
185 internal->new_state = false; in smf_set_initial()
228 internal->new_state = true; in smf_set_state()
/Zephyr-Core-3.6.0/drivers/dai/nxp/sai/
Dsai.h405 enum dai_state new_state) in sai_update_state() argument
409 LOG_DBG("attempting to transition from %d to %d", old_state, new_state); in sai_update_state()
412 switch (new_state) { in sai_update_state()
452 data->rx_state = new_state; in sai_update_state()
454 data->tx_state = new_state; in sai_update_state()
/Zephyr-Core-3.6.0/include/zephyr/
Dsmf.h128 void smf_set_state(struct smf_ctx *ctx, const struct smf_state *new_state);
/Zephyr-Core-3.6.0/include/zephyr/input/
Dinput_kbd_matrix.h150 static kbd_row_t INPUT_KBD_MATRIX_DATA_NAME(node_id, new_state)[_col_size]; \
205 .matrix_new_state = INPUT_KBD_MATRIX_DATA_NAME(node_id, new_state), \
/Zephyr-Core-3.6.0/drivers/net/
Dppp.c356 enum ppp_driver_state new_state) in ppp_change_state() argument
360 if (ctx->state == new_state) { in ppp_change_state()
364 NET_ASSERT(new_state >= STATE_HDLC_FRAME_START && in ppp_change_state()
365 new_state <= STATE_HDLC_FRAME_DATA); in ppp_change_state()
369 ppp_driver_state_str(new_state), new_state); in ppp_change_state()
371 ctx->state = new_state; in ppp_change_state()
/Zephyr-Core-3.6.0/drivers/can/
Dcan_xmc4xxx.c693 enum can_state new_state; in can_xmc4xxx_state_change_handler() local
696 can_xmc4xxx_get_state_from_status(dev, &new_state, &err_cnt, &status); in can_xmc4xxx_state_change_handler()
697 if (dev_data->state != new_state) { in can_xmc4xxx_state_change_handler()
700 dev, new_state, err_cnt, in can_xmc4xxx_state_change_handler()
704 if (dev_data->state != CAN_STATE_STOPPED && new_state == CAN_STATE_BUS_OFF) { in can_xmc4xxx_state_change_handler()
709 dev_data->state = new_state; in can_xmc4xxx_state_change_handler()
Dcan_mcp251xfd.c911 enum can_state new_state; in mcp251xfd_handle_cerrif() local
918 ret = mcp251xfd_get_state(dev, &new_state, &err_cnt); in mcp251xfd_handle_cerrif()
923 if (new_state == dev_data->state) { in mcp251xfd_handle_cerrif()
927 LOG_INF("State %d -> %d (tx: %d, rx: %d)", dev_data->state, new_state, err_cnt.tx_err_cnt, in mcp251xfd_handle_cerrif()
931 dev_data->state = new_state; in mcp251xfd_handle_cerrif()
932 if (new_state == CAN_STATE_BUS_OFF) { in mcp251xfd_handle_cerrif()
937 dev_data->common.state_change_cb(dev, new_state, err_cnt, in mcp251xfd_handle_cerrif()
/Zephyr-Core-3.6.0/drivers/console/
Dgsm_mux.c1213 void gsm_mux_change_state(struct gsm_mux *mux, enum gsm_mux_state new_state) in gsm_mux_change_state() argument
1217 if (gsm_mux_get_state(mux) == new_state) { in gsm_mux_change_state()
1223 gsm_mux_state_str(new_state), new_state); in gsm_mux_change_state()
1225 validate_state_transition(mux->state, new_state); in gsm_mux_change_state()
1227 mux->state = new_state; in gsm_mux_change_state()
/Zephyr-Core-3.6.0/kernel/
Dsched.c60 static void halt_thread(struct k_thread *thread, uint8_t new_state);
1828 static void halt_thread(struct k_thread *thread, uint8_t new_state) in halt_thread() argument
1833 if ((thread->base.thread_state & new_state) == 0U) { in halt_thread()
1834 thread->base.thread_state |= new_state; in halt_thread()
1840 if (new_state == _THREAD_DEAD) { in halt_thread()
1852 if (new_state == _THREAD_SUSPENDED) { in halt_thread()
/Zephyr-Core-3.6.0/drivers/kscan/
Dkscan_mchp_xec.c202 static bool read_keyboard_matrix(const struct device *dev, uint8_t *new_state) in read_keyboard_matrix() argument
213 new_state[col] = row; in read_keyboard_matrix()
/Zephyr-Core-3.6.0/drivers/usb/device/
Dusb_dc_nrfx.c502 enum usbd_periph_state new_state; in usb_dc_power_event_handler() local
507 new_state = USBD_ATTACHED; in usb_dc_power_event_handler()
517 new_state = USBD_POWERED; in usb_dc_power_event_handler()
520 new_state = USBD_DETACHED; in usb_dc_power_event_handler()
527 submit_dc_power_event(new_state); in usb_dc_power_event_handler()
/Zephyr-Core-3.6.0/subsys/net/ip/
Dnet_if.c4407 enum net_if_oper_state new_state = NET_IF_OPER_UNKNOWN; in update_operational_state() local
4410 new_state = NET_IF_OPER_DOWN; in update_operational_state()
4415 new_state = NET_IF_OPER_LOWERLAYERDOWN; in update_operational_state()
4422 new_state = NET_IF_OPER_LOWERLAYERDOWN; in update_operational_state()
4426 new_state = NET_IF_OPER_DOWN; in update_operational_state()
4433 new_state = NET_IF_OPER_DORMANT; in update_operational_state()
4437 new_state = NET_IF_OPER_UP; in update_operational_state()
4440 if (net_if_oper_state_set(iface, new_state) != new_state) { in update_operational_state()
4441 NET_ERR("Failed to update oper state to %d", new_state); in update_operational_state()
Dipv6_nbr.c153 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-Core-3.6.0/subsys/bluetooth/audio/
Dascs.c486 const enum bt_bap_ep_state new_state = ase->state_pending; in state_transition_work_handler() local
489 ase->ep.status.state = new_state; in state_transition_work_handler()
521 bt_bap_ep_state_str(old_state), bt_bap_ep_state_str(new_state)); in state_transition_work_handler()
523 if (old_state == new_state) { in state_transition_work_handler()
524 switch (new_state) { in state_transition_work_handler()
547 switch (new_state) { in state_transition_work_handler()
570 __ASSERT_PRINT("Invalid state %d", new_state); in state_transition_work_handler()
/Zephyr-Core-3.6.0/drivers/modem/
Dmodem_cellular.c446 enum modem_cellular_state new_state) in modem_cellular_log_state_changed() argument
449 modem_cellular_state_str(new_state)); in modem_cellular_log_state_changed()