Lines Matching refs:sm
313 sci_change_state(&iphy->sm, SCI_PHY_STOPPED); in sci_phy_link_layer_initialization()
336 sci_change_state(&iphy->sm, SCI_PHY_STARTING); in phy_sata_timeout()
392 sci_change_state(&iphy->sm, SCI_PHY_STOPPED); in sci_phy_initialize()
466 enum sci_phy_states state = iphy->sm.current_state_id; in sci_phy_start()
474 sci_change_state(&iphy->sm, SCI_PHY_STARTING); in sci_phy_start()
480 enum sci_phy_states state = iphy->sm.current_state_id; in sci_phy_stop()
500 sci_change_state(&iphy->sm, SCI_PHY_STOPPED); in sci_phy_stop()
506 enum sci_phy_states state = iphy->sm.current_state_id; in sci_phy_reset()
514 sci_change_state(&iphy->sm, SCI_PHY_RESETTING); in sci_phy_reset()
520 enum sci_phy_states state = iphy->sm.current_state_id; in sci_phy_consume_power_handler()
531 sci_change_state(&iphy->sm, SCI_PHY_SUB_FINAL); in sci_phy_consume_power_handler()
554 sci_change_state(&iphy->sm, SCI_PHY_SUB_AWAIT_SATA_PHY_EN); in sci_phy_consume_power_handler()
578 sci_change_state(&iphy->sm, SCI_PHY_SUB_AWAIT_SAS_SPEED_EN); in sci_phy_start_sas_link_training()
589 sci_change_state(&iphy->sm, SCI_PHY_SUB_AWAIT_SATA_POWER); in sci_phy_start_sata_link_training()
611 sci_change_state(&iphy->sm, next_state); in sci_phy_complete_link_training()
683 enum sci_phy_states state = iphy->sm.current_state_id; in sci_phy_event_handler()
701 sci_change_state(&iphy->sm, SCI_PHY_STARTING); in sci_phy_event_handler()
741 sci_change_state(&iphy->sm, SCI_PHY_STARTING); in sci_phy_event_handler()
748 sci_change_state(&iphy->sm, SCI_PHY_STARTING); in sci_phy_event_handler()
773 sci_change_state(&iphy->sm, SCI_PHY_STARTING); in sci_phy_event_handler()
780 sci_change_state(&iphy->sm, SCI_PHY_STARTING); in sci_phy_event_handler()
794 sci_change_state(&iphy->sm, SCI_PHY_STARTING); in sci_phy_event_handler()
808 sci_change_state(&iphy->sm, SCI_PHY_STARTING); in sci_phy_event_handler()
835 sci_change_state(&iphy->sm, SCI_PHY_STARTING); in sci_phy_event_handler()
846 sci_change_state(&iphy->sm, SCI_PHY_SUB_AWAIT_SATA_SPEED_EN); in sci_phy_event_handler()
886 sci_change_state(&iphy->sm, SCI_PHY_STARTING); in sci_phy_event_handler()
904 sci_change_state(&iphy->sm, SCI_PHY_SUB_AWAIT_SATA_SPEED_EN); in sci_phy_event_handler()
912 sci_change_state(&iphy->sm, SCI_PHY_STARTING); in sci_phy_event_handler()
927 sci_change_state(&iphy->sm, SCI_PHY_STARTING); in sci_phy_event_handler()
952 sci_change_state(&iphy->sm, SCI_PHY_STARTING); in sci_phy_event_handler()
968 enum sci_phy_states state = iphy->sm.current_state_id; in sci_phy_frame_handler()
1004 sci_change_state(&iphy->sm, state); in sci_phy_frame_handler()
1039 sci_change_state(&iphy->sm, SCI_PHY_SUB_FINAL); in sci_phy_frame_handler()
1061 static void sci_phy_starting_initial_substate_enter(struct sci_base_state_machine *sm) in sci_phy_starting_initial_substate_enter() argument
1063 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm); in sci_phy_starting_initial_substate_enter()
1066 sci_change_state(&iphy->sm, SCI_PHY_SUB_AWAIT_OSSP_EN); in sci_phy_starting_initial_substate_enter()
1069 static void sci_phy_starting_await_sas_power_substate_enter(struct sci_base_state_machine *sm) in sci_phy_starting_await_sas_power_substate_enter() argument
1071 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm); in sci_phy_starting_await_sas_power_substate_enter()
1077 static void sci_phy_starting_await_sas_power_substate_exit(struct sci_base_state_machine *sm) in sci_phy_starting_await_sas_power_substate_exit() argument
1079 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm); in sci_phy_starting_await_sas_power_substate_exit()
1085 static void sci_phy_starting_await_sata_power_substate_enter(struct sci_base_state_machine *sm) in sci_phy_starting_await_sata_power_substate_enter() argument
1087 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm); in sci_phy_starting_await_sata_power_substate_enter()
1093 static void sci_phy_starting_await_sata_power_substate_exit(struct sci_base_state_machine *sm) in sci_phy_starting_await_sata_power_substate_exit() argument
1095 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm); in sci_phy_starting_await_sata_power_substate_exit()
1101 static void sci_phy_starting_await_sata_phy_substate_enter(struct sci_base_state_machine *sm) in sci_phy_starting_await_sata_phy_substate_enter() argument
1103 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm); in sci_phy_starting_await_sata_phy_substate_enter()
1108 static void sci_phy_starting_await_sata_phy_substate_exit(struct sci_base_state_machine *sm) in sci_phy_starting_await_sata_phy_substate_exit() argument
1110 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm); in sci_phy_starting_await_sata_phy_substate_exit()
1115 static void sci_phy_starting_await_sata_speed_substate_enter(struct sci_base_state_machine *sm) in sci_phy_starting_await_sata_speed_substate_enter() argument
1117 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm); in sci_phy_starting_await_sata_speed_substate_enter()
1122 static void sci_phy_starting_await_sata_speed_substate_exit(struct sci_base_state_machine *sm) in sci_phy_starting_await_sata_speed_substate_exit() argument
1124 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm); in sci_phy_starting_await_sata_speed_substate_exit()
1129 static void sci_phy_starting_await_sig_fis_uf_substate_enter(struct sci_base_state_machine *sm) in sci_phy_starting_await_sig_fis_uf_substate_enter() argument
1131 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm); in sci_phy_starting_await_sig_fis_uf_substate_enter()
1149 static void sci_phy_starting_await_sig_fis_uf_substate_exit(struct sci_base_state_machine *sm) in sci_phy_starting_await_sig_fis_uf_substate_exit() argument
1151 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm); in sci_phy_starting_await_sig_fis_uf_substate_exit()
1156 static void sci_phy_starting_final_substate_enter(struct sci_base_state_machine *sm) in sci_phy_starting_final_substate_enter() argument
1158 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm); in sci_phy_starting_final_substate_enter()
1163 sci_change_state(&iphy->sm, SCI_PHY_READY); in sci_phy_starting_final_substate_enter()
1251 static void sci_phy_stopped_state_enter(struct sci_base_state_machine *sm) in sci_phy_stopped_state_enter() argument
1253 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm); in sci_phy_stopped_state_enter()
1265 if (iphy->sm.previous_state_id != SCI_PHY_INITIAL) in sci_phy_stopped_state_enter()
1269 static void sci_phy_starting_state_enter(struct sci_base_state_machine *sm) in sci_phy_starting_state_enter() argument
1271 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm); in sci_phy_starting_state_enter()
1282 if (iphy->sm.previous_state_id == SCI_PHY_READY) in sci_phy_starting_state_enter()
1285 sci_change_state(&iphy->sm, SCI_PHY_SUB_INITIAL); in sci_phy_starting_state_enter()
1288 static void sci_phy_ready_state_enter(struct sci_base_state_machine *sm) in sci_phy_ready_state_enter() argument
1290 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm); in sci_phy_ready_state_enter()
1297 static void sci_phy_ready_state_exit(struct sci_base_state_machine *sm) in sci_phy_ready_state_exit() argument
1299 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm); in sci_phy_ready_state_exit()
1304 static void sci_phy_resetting_state_enter(struct sci_base_state_machine *sm) in sci_phy_resetting_state_enter() argument
1306 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm); in sci_phy_resetting_state_enter()
1320 sci_change_state(&iphy->sm, SCI_PHY_STARTING); in sci_phy_resetting_state_enter()
1374 sci_init_sm(&iphy->sm, sci_phy_state_table, SCI_PHY_INITIAL); in sci_phy_construct()