FreeBSD/sys/dev/isci/scil/scic_sds_controller.c
/**
 * @brief This method will attempt to transition into the ready state
 *        for the controller and indicate that the controller start
 *        operation has completed if all criteria are met.
 *
 * @param[in,out] this_controller This parameter indicates the controller
 *                object for which to transition to ready.
 * @param[in]     status This parameter indicates the status value to be
 *                pass into the call to scic_cb_controller_start_complete().
 *
 * @return none.
 */
@brief This method will attempt to transition into the ready state
for the controller and indicate that the controller start
operation has completed if all criteria are met.

@param[in,out] this_controller This parameter indicates the controller
object for which to transition to ready.
@param[in]     status This parameter indicates the status value to be
pass into the call to scic_cb_controller_start_complete().

@return none.
@brief This method will attempt to transition into the ready state for the controller and indicate that the controller start operation has completed if all criteria are met . @param [ in out ] this_controller This parameter indicates the controller object for which to transition to ready . @param [ in ] status This parameter indicates the status value to be pass into the call to scic_cb_controller_start_complete () . @return none .
static
void scic_sds_controller_transition_to_ready(
   SCIC_SDS_CONTROLLER_T *this_controller,
   SCI_STATUS             status
)
{
   SCIC_LOG_TRACE((
      sci_base_object_get_logger(this_controller),
      SCIC_LOG_OBJECT_CONTROLLER,
      "scic_sds_controller_transition_to_ready(0x%x, 0x%x) enter\n",
      this_controller, status
   ));
   if (this_controller->parent.state_machine.current_state_id
       == SCI_BASE_CONTROLLER_STATE_STARTING)
   {
      sci_base_state_machine_change_state(
         scic_sds_controller_get_base_state_machine(this_controller),
         SCI_BASE_CONTROLLER_STATE_READY
      );
      scic_cb_controller_start_complete(this_controller, status);
   }
}
static void scic_sds_controller_transition_to_ready ( SCIC_SDS_CONTROLLER_T * this_controller , SCI_STATUS status ) { SCIC_LOG_TRACE ( ( sci_base_object_get_logger ( this_controller ) , SCIC_LOG_OBJECT_CONTROLLER , " \n " , this_controller , status ) ) ; if ( this_controller -> parent . state_machine . current_state_id == SCI_BASE_CONTROLLER_STATE_STARTING ) { sci_base_state_machine_change_state ( scic_sds_controller_get_base_state_machine ( this_controller ) , SCI_BASE_CONTROLLER_STATE_READY ) ; scic_cb_controller_start_complete ( this_controller , status ) ; } }
@brief This method will attempt to transition into the ready state
        for the controller and indicate that the controller start
        operation has completed if all criteria are met.
@brief This method will attempt to transition into the ready state for the controller and indicate that the controller start operation has completed if all criteria are met .
// We move into the ready state, because some of the phys/ports // may be up and operational.