FreeBSD/sys/dev/isci/scil/scic_sds_phy.c
/**
 * This method will perform the actions required by the SCIC_SDS_PHY on
 * entering the SCI_BASE_PHY_STATE_RESETTING.
 *    - This function sets the state handlers for the phy object base state
 * machine resetting state.
 *
 * @param[in] object This is the SCI_BASE_OBJECT which is cast to a
 *       SCIC_SDS_PHY object.
 *
 * @return none
 */
This method will perform the actions required by the SCIC_SDS_PHY on
entering the SCI_BASE_PHY_STATE_RESETTING.
- This function sets the state handlers for the phy object base state
machine resetting state.

@param[in] object This is the SCI_BASE_OBJECT which is cast to a
SCIC_SDS_PHY object.

@return none
This method will perform the actions required by the SCIC_SDS_PHY on entering the SCI_BASE_PHY_STATE_RESETTING . - This function sets the state handlers for the phy object base state machine resetting state . @param [ in ] object This is the SCI_BASE_OBJECT which is cast to a SCIC_SDS_PHY object . @return none
static
void scic_sds_phy_resetting_state_enter(
   SCI_BASE_OBJECT_T *object
)
{
   SCIC_SDS_PHY_T * this_phy;
   this_phy = (SCIC_SDS_PHY_T *)object;
   scic_sds_phy_set_base_state_handlers(this_phy, SCI_BASE_PHY_STATE_RESETTING);
   scic_sds_port_deactivate_phy(this_phy->owning_port, this_phy, FALSE);
   if (this_phy->protocol == SCIC_SDS_PHY_PROTOCOL_SAS)
   {
      scu_link_layer_tx_hard_reset(this_phy);
   }
   else
   {
      sci_base_state_machine_change_state(
         &this_phy->parent.state_machine,
         SCI_BASE_PHY_STATE_STARTING
      );
   }
}
static void scic_sds_phy_resetting_state_enter ( SCI_BASE_OBJECT_T * object ) { SCIC_SDS_PHY_T * this_phy ; this_phy = ( SCIC_SDS_PHY_T * ) object ; scic_sds_phy_set_base_state_handlers ( this_phy , SCI_BASE_PHY_STATE_RESETTING ) ; scic_sds_port_deactivate_phy ( this_phy -> owning_port , this_phy , FALSE ) ; if ( this_phy -> protocol == SCIC_SDS_PHY_PROTOCOL_SAS ) { scu_link_layer_tx_hard_reset ( this_phy ) ; } else { sci_base_state_machine_change_state ( & this_phy -> parent . state_machine , SCI_BASE_PHY_STATE_STARTING ) ; } }
This method will perform the actions required by the SCIC_SDS_PHY on
 entering the SCI_BASE_PHY_STATE_RESETTING.
This method will perform the actions required by the SCIC_SDS_PHY on entering the SCI_BASE_PHY_STATE_RESETTING .
// The phy is being reset, therefore deactivate it from the port. // In the resetting state we don't notify the user regarding // link up and link down notifications. // The SCU does not need to have a descrete reset state so just go back to // the starting state.