Lines Matching refs:sm
313 sci_change_state(&iphy->sm, SCI_PHY_STOPPED);
336 sci_change_state(&iphy->sm, SCI_PHY_STARTING);
395 sci_change_state(&iphy->sm, SCI_PHY_STOPPED);
469 enum sci_phy_states state = iphy->sm.current_state_id;
477 sci_change_state(&iphy->sm, SCI_PHY_STARTING);
483 enum sci_phy_states state = iphy->sm.current_state_id;
503 sci_change_state(&iphy->sm, SCI_PHY_STOPPED);
509 enum sci_phy_states state = iphy->sm.current_state_id;
517 sci_change_state(&iphy->sm, SCI_PHY_RESETTING);
523 enum sci_phy_states state = iphy->sm.current_state_id;
534 sci_change_state(&iphy->sm, SCI_PHY_SUB_FINAL);
557 sci_change_state(&iphy->sm, SCI_PHY_SUB_AWAIT_SATA_PHY_EN);
581 sci_change_state(&iphy->sm, SCI_PHY_SUB_AWAIT_SAS_SPEED_EN);
592 sci_change_state(&iphy->sm, SCI_PHY_SUB_AWAIT_SATA_POWER);
614 sci_change_state(&iphy->sm, next_state);
686 enum sci_phy_states state = iphy->sm.current_state_id;
704 sci_change_state(&iphy->sm, SCI_PHY_STARTING);
744 sci_change_state(&iphy->sm, SCI_PHY_STARTING);
751 sci_change_state(&iphy->sm, SCI_PHY_STARTING);
777 sci_change_state(&iphy->sm, SCI_PHY_STARTING);
784 sci_change_state(&iphy->sm, SCI_PHY_STARTING);
798 sci_change_state(&iphy->sm, SCI_PHY_STARTING);
812 sci_change_state(&iphy->sm, SCI_PHY_STARTING);
839 sci_change_state(&iphy->sm, SCI_PHY_STARTING);
850 sci_change_state(&iphy->sm, SCI_PHY_SUB_AWAIT_SATA_SPEED_EN);
890 sci_change_state(&iphy->sm, SCI_PHY_STARTING);
908 sci_change_state(&iphy->sm, SCI_PHY_SUB_AWAIT_SATA_SPEED_EN);
916 sci_change_state(&iphy->sm, SCI_PHY_STARTING);
931 sci_change_state(&iphy->sm, SCI_PHY_STARTING);
956 sci_change_state(&iphy->sm, SCI_PHY_STARTING);
973 enum sci_phy_states state = iphy->sm.current_state_id;
1009 sci_change_state(&iphy->sm, state);
1044 sci_change_state(&iphy->sm, SCI_PHY_SUB_FINAL);
1066 static void sci_phy_starting_initial_substate_enter(struct sci_base_state_machine *sm)
1068 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
1071 sci_change_state(&iphy->sm, SCI_PHY_SUB_AWAIT_OSSP_EN);
1074 static void sci_phy_starting_await_sas_power_substate_enter(struct sci_base_state_machine *sm)
1076 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
1082 static void sci_phy_starting_await_sas_power_substate_exit(struct sci_base_state_machine *sm)
1084 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
1090 static void sci_phy_starting_await_sata_power_substate_enter(struct sci_base_state_machine *sm)
1092 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
1098 static void sci_phy_starting_await_sata_power_substate_exit(struct sci_base_state_machine *sm)
1100 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
1106 static void sci_phy_starting_await_sata_phy_substate_enter(struct sci_base_state_machine *sm)
1108 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
1113 static void sci_phy_starting_await_sata_phy_substate_exit(struct sci_base_state_machine *sm)
1115 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
1120 static void sci_phy_starting_await_sata_speed_substate_enter(struct sci_base_state_machine *sm)
1122 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
1127 static void sci_phy_starting_await_sata_speed_substate_exit(struct sci_base_state_machine *sm)
1129 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
1134 static void sci_phy_starting_await_sig_fis_uf_substate_enter(struct sci_base_state_machine *sm)
1136 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
1154 static void sci_phy_starting_await_sig_fis_uf_substate_exit(struct sci_base_state_machine *sm)
1156 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
1161 static void sci_phy_starting_final_substate_enter(struct sci_base_state_machine *sm)
1163 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
1168 sci_change_state(&iphy->sm, SCI_PHY_READY);
1255 static void sci_phy_stopped_state_enter(struct sci_base_state_machine *sm)
1257 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
1269 if (iphy->sm.previous_state_id != SCI_PHY_INITIAL)
1273 static void sci_phy_starting_state_enter(struct sci_base_state_machine *sm)
1275 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
1286 if (iphy->sm.previous_state_id == SCI_PHY_READY)
1289 sci_change_state(&iphy->sm, SCI_PHY_SUB_INITIAL);
1292 static void sci_phy_ready_state_enter(struct sci_base_state_machine *sm)
1294 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
1301 static void sci_phy_ready_state_exit(struct sci_base_state_machine *sm)
1303 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
1308 static void sci_phy_resetting_state_enter(struct sci_base_state_machine *sm)
1310 struct isci_phy *iphy = container_of(sm, typeof(*iphy), sm);
1324 sci_change_state(&iphy->sm, SCI_PHY_STARTING);
1378 sci_init_sm(&iphy->sm, sci_phy_state_table, SCI_PHY_INITIAL);