FreeBSD/sys/dev/isci/scil/scic_sds_controller.c
/**
 * This method is called when the SCIC_SDS_CONTROLLER is in the ready state
 * stop handler is called.
 *    - Start the timeout timer
 *    - Transition to SCI_BASE_CONTROLLER_STATE_STOPPING.
 *
 * @param[in] controller The SCI_BASE_CONTROLLER object which is cast into a
 *       SCIC_SDS_CONTROLLER object.
 * @param[in] timeout The timeout for when the stop operation should report a
 *       failure.
 *
 * @return SCI_STATUS
 * @retval SCI_SUCCESS
 */
This method is called when the SCIC_SDS_CONTROLLER is in the ready state
stop handler is called.
- Start the timeout timer
- Transition to SCI_BASE_CONTROLLER_STATE_STOPPING.

@param[in] controller The SCI_BASE_CONTROLLER object which is cast into a
SCIC_SDS_CONTROLLER object.
@param[in] timeout The timeout for when the stop operation should report a
failure.


This method is called when the SCIC_SDS_CONTROLLER is in the ready state stop handler is called . - Start the timeout timer - Transition to SCI_BASE_CONTROLLER_STATE_STOPPING . @param [ in ] controller The SCI_BASE_CONTROLLER object which is cast into a SCIC_SDS_CONTROLLER object . @param [ in ] timeout The timeout for when the stop operation should report a failure .
static
SCI_STATUS scic_sds_controller_ready_state_stop_handler(
   SCI_BASE_CONTROLLER_T *controller,
   U32                   timeout
)
{
   SCIC_SDS_CONTROLLER_T *this_controller;
   this_controller = (SCIC_SDS_CONTROLLER_T *)controller;
   if (timeout != 0)
      scic_cb_timer_start(controller, this_controller->timeout_timer, timeout);
   sci_base_state_machine_change_state(
      scic_sds_controller_get_base_state_machine(this_controller),
      SCI_BASE_CONTROLLER_STATE_STOPPING
   );
   return SCI_SUCCESS;
}
static SCI_STATUS scic_sds_controller_ready_state_stop_handler ( SCI_BASE_CONTROLLER_T * controller , U32 timeout ) { SCIC_SDS_CONTROLLER_T * this_controller ; this_controller = ( SCIC_SDS_CONTROLLER_T * ) controller ; if ( timeout != 0 ) scic_cb_timer_start ( controller , this_controller -> timeout_timer , timeout ) ; sci_base_state_machine_change_state ( scic_sds_controller_get_base_state_machine ( this_controller ) , SCI_BASE_CONTROLLER_STATE_STOPPING ) ; return SCI_SUCCESS ; }
This method is called when the SCIC_SDS_CONTROLLER is in the ready state
 stop handler is called.
This method is called when the SCIC_SDS_CONTROLLER is in the ready state stop handler is called .
// See if the user requested to timeout this operation