FreeBSD/sys/dev/isci/scil/scic_sds_remote_device.c
/**
 * This is the enter method for the SCI_BASE_REMOTE_DEVICE_STATE_INITIAL it
 * sets the stopped state handlers and if this state is entered from the
 * SCI_BASE_REMOTE_DEVICE_STATE_STOPPING then the SCI User is informed that
 * the device stop is complete.
 *
 * @param[in] object This is the SCI_BASE_OBJECT that is cast into a
 *       SCIC_SDS_REMOTE_DEVICE.
 *
 * @return none
 */
This is the enter method for the SCI_BASE_REMOTE_DEVICE_STATE_INITIAL it
sets the stopped state handlers and if this state is entered from the
SCI_BASE_REMOTE_DEVICE_STATE_STOPPING then the SCI User is informed that
the device stop is complete.

@param[in] object This is the SCI_BASE_OBJECT that is cast into a
SCIC_SDS_REMOTE_DEVICE.

@return none
This is the enter method for the SCI_BASE_REMOTE_DEVICE_STATE_INITIAL it sets the stopped state handlers and if this state is entered from the SCI_BASE_REMOTE_DEVICE_STATE_STOPPING then the SCI User is informed that the device stop is complete . @param [ in ] object This is the SCI_BASE_OBJECT that is cast into a SCIC_SDS_REMOTE_DEVICE . @return none
static
void scic_sds_remote_device_stopped_state_enter(
   SCI_BASE_OBJECT_T *object
)
{
   SCIC_SDS_REMOTE_DEVICE_T *this_device = (SCIC_SDS_REMOTE_DEVICE_T *)object;
   SET_STATE_HANDLER(
      this_device,
      scic_sds_remote_device_state_handler_table,
      SCI_BASE_REMOTE_DEVICE_STATE_STOPPED
   );
   if (this_device->parent.state_machine.previous_state_id
       == SCI_BASE_REMOTE_DEVICE_STATE_STOPPING)
   {
      scic_cb_remote_device_stop_complete(
         scic_sds_remote_device_get_controller(this_device),
         this_device,
         SCI_SUCCESS
      );
   }
   scic_sds_controller_remote_device_stopped(
      scic_sds_remote_device_get_controller(this_device),
      this_device
   );
}
static void scic_sds_remote_device_stopped_state_enter ( SCI_BASE_OBJECT_T * object ) { SCIC_SDS_REMOTE_DEVICE_T * this_device = ( SCIC_SDS_REMOTE_DEVICE_T * ) object ; SET_STATE_HANDLER ( this_device , scic_sds_remote_device_state_handler_table , SCI_BASE_REMOTE_DEVICE_STATE_STOPPED ) ; if ( this_device -> parent . state_machine . previous_state_id == SCI_BASE_REMOTE_DEVICE_STATE_STOPPING ) { scic_cb_remote_device_stop_complete ( scic_sds_remote_device_get_controller ( this_device ) , this_device , SCI_SUCCESS ) ; } scic_sds_controller_remote_device_stopped ( scic_sds_remote_device_get_controller ( this_device ) , this_device ) ; }
This is the enter method for the SCI_BASE_REMOTE_DEVICE_STATE_INITIAL it
 sets the stopped state handlers and if this state is entered from the
 SCI_BASE_REMOTE_DEVICE_STATE_STOPPING then the SCI User is informed that
 the device stop is complete.
This is the enter method for the SCI_BASE_REMOTE_DEVICE_STATE_INITIAL it sets the stopped state handlers and if this state is entered from the SCI_BASE_REMOTE_DEVICE_STATE_STOPPING then the SCI User is informed that the device stop is complete .
// If we are entering from the stopping state let the SCI User know that // the stop operation has completed.