Lines Matching refs:sm

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