Lines Matching refs:sm
84 u32 current_state = sci_rnc->sm.current_state_id; in sci_remote_node_context_is_ready()
95 u32 current_state = sci_rnc->sm.current_state_id; in sci_remote_node_context_is_suspended()
272 static void sci_remote_node_context_initial_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_initial_state_enter() argument
274 struct sci_remote_node_context *rnc = container_of(sm, typeof(*rnc), sm); in sci_remote_node_context_initial_state_enter()
281 if (sm->previous_state_id == SCI_RNC_INVALIDATING) { in sci_remote_node_context_initial_state_enter()
290 static void sci_remote_node_context_posting_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_posting_state_enter() argument
292 struct sci_remote_node_context *sci_rnc = container_of(sm, typeof(*sci_rnc), sm); in sci_remote_node_context_posting_state_enter()
297 static void sci_remote_node_context_invalidating_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_invalidating_state_enter() argument
299 struct sci_remote_node_context *rnc = container_of(sm, typeof(*rnc), sm); in sci_remote_node_context_invalidating_state_enter()
306 static void sci_remote_node_context_resuming_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_resuming_state_enter() argument
308 struct sci_remote_node_context *rnc = container_of(sm, typeof(*rnc), sm); in sci_remote_node_context_resuming_state_enter()
327 static void sci_remote_node_context_ready_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_ready_state_enter() argument
329 struct sci_remote_node_context *rnc = container_of(sm, typeof(*rnc), sm); in sci_remote_node_context_ready_state_enter()
349 static void sci_remote_node_context_tx_suspended_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_tx_suspended_state_enter() argument
351 struct sci_remote_node_context *rnc = container_of(sm, typeof(*rnc), sm); in sci_remote_node_context_tx_suspended_state_enter()
356 static void sci_remote_node_context_tx_rx_suspended_state_enter(struct sci_base_state_machine *sm) in sci_remote_node_context_tx_rx_suspended_state_enter() argument
358 struct sci_remote_node_context *rnc = container_of(sm, typeof(*rnc), sm); in sci_remote_node_context_tx_rx_suspended_state_enter()
377 struct sci_base_state_machine *sm) in sci_remote_node_context_await_suspend_state_exit() argument
380 = container_of(sm, typeof(*rnc), sm); in sci_remote_node_context_await_suspend_state_exit()
422 sci_init_sm(&rnc->sm, sci_remote_node_context_state_table, SCI_RNC_INITIAL); in sci_remote_node_context_construct()
431 state = sci_rnc->sm.current_state_id; in sci_remote_node_context_event_handler()
436 sci_change_state(&sci_rnc->sm, SCI_RNC_READY); in sci_remote_node_context_event_handler()
448 sci_change_state(&sci_rnc->sm, next_state); in sci_remote_node_context_event_handler()
467 sci_change_state(&sci_rnc->sm, SCI_RNC_READY); in sci_remote_node_context_event_handler()
487 sci_change_state(&sci_rnc->sm, SCI_RNC_TX_SUSPENDED); in sci_remote_node_context_event_handler()
491 sci_change_state(&sci_rnc->sm, SCI_RNC_TX_RX_SUSPENDED); in sci_remote_node_context_event_handler()
510 sci_change_state(&sci_rnc->sm, next_state); in sci_remote_node_context_event_handler()
534 state = sci_rnc->sm.current_state_id; in sci_remote_node_context_destruct()
545 sci_change_state(&sci_rnc->sm, SCI_RNC_INVALIDATING); in sci_remote_node_context_destruct()
573 = sci_rnc->sm.current_state_id; in sci_remote_node_context_suspend()
654 sci_change_state(&sci_rnc->sm, SCI_RNC_AWAIT_SUSPENSION); in sci_remote_node_context_suspend()
666 state = sci_rnc->sm.current_state_id; in sci_remote_node_context_resume()
684 sci_change_state(&sci_rnc->sm, SCI_RNC_POSTING); in sci_remote_node_context_resume()
727 sci_change_state(&sci_rnc->sm, in sci_remote_node_context_resume()
730 sci_change_state(&sci_rnc->sm, in sci_remote_node_context_resume()
753 state = sci_rnc->sm.current_state_id; in sci_remote_node_context_start_io()
792 state = sci_rnc->sm.current_state_id; in sci_remote_node_context_is_safe_to_abort()