FreeBSD/sys/dev/isci/scil/scif_sas_controller_state_handlers.c
/**
 * @brief This method simply executes the reset operation by entering
 *        the reset state and allowing the state to perform it's work.
 *
 * @param[in]  fw_controller This parameter specifies the SAS framework
 *             controller for execute the reset.
 *
 * @return Indicate the status of the reset operation.  Was it successful?
 * @retval SCI_SUCCESS This value is returned if it was successfully reset.
 */
@brief This method simply executes the reset operation by entering
the reset state and allowing the state to perform it's work.

@param[in]  fw_controller This parameter specifies the SAS framework
controller for execute the reset.

@return Indicate the status of the reset operation.  Was it successful.
@retval SCI_SUCCESS This value is returned if it was successfully reset.
@brief This method simply executes the reset operation by entering the reset state and allowing the state to perform it ' s work . @param [ in ] fw_controller This parameter specifies the SAS framework controller for execute the reset . @return Indicate the status of the reset operation . Was it successful . @retval SCI_SUCCESS This value is returned if it was successfully reset .
static
SCI_STATUS scif_sas_controller_execute_reset(
   SCIF_SAS_CONTROLLER_T * fw_controller
)
{
   SCI_STATUS  status;
   SCIF_LOG_TRACE((
      sci_base_object_get_logger(fw_controller),
      SCIF_LOG_OBJECT_CONTROLLER | SCIF_LOG_OBJECT_CONTROLLER_RESET,
      "scif_sas_controller_execute_reset(0x%x) enter\n",
      fw_controller
   ));
   scif_sas_controller_release_resource(fw_controller);
   sci_base_state_machine_change_state(
      &fw_controller->parent.state_machine,
      SCI_BASE_CONTROLLER_STATE_RESETTING
   );
   status = fw_controller->operation_status;
   fw_controller->operation_status = SCI_SUCCESS;
   return status;
}
static SCI_STATUS scif_sas_controller_execute_reset ( SCIF_SAS_CONTROLLER_T * fw_controller ) { SCI_STATUS status ; SCIF_LOG_TRACE ( ( sci_base_object_get_logger ( fw_controller ) , SCIF_LOG_OBJECT_CONTROLLER | SCIF_LOG_OBJECT_CONTROLLER_RESET , " \n " , fw_controller ) ) ; scif_sas_controller_release_resource ( fw_controller ) ; sci_base_state_machine_change_state ( & fw_controller -> parent . state_machine , SCI_BASE_CONTROLLER_STATE_RESETTING ) ; status = fw_controller -> operation_status ; fw_controller -> operation_status = SCI_SUCCESS ; return status ; }
@brief This method simply executes the reset operation by entering
        the reset state and allowing the state to perform it's work.
@brief This method simply executes the reset operation by entering the reset state and allowing the state to perform it ' s work .
//clean the timer to avoid timer leak. // Retrieve the status for the operations performed during the entrance // to the resetting state were executing successfully.