FreeBSD/sys/dev/isci/scil/scic_sds_controller.c
/**
 * This method is called when the SCIC_SDS_CONTROLLER is in the failed state
 * reset handler is in place.
 *    - Transition to SCI_BASE_CONTROLLER_STATE_RESETTING
 *
 * @param[in] controller The SCI_BASE_CONTROLLER object which is cast into a
 *       SCIC_SDS_CONTROLLER object.
 *
 * @return SCI_STATUS
 * @retval SCI_FAILURE if fatal memory error occurred
 */
This method is called when the SCIC_SDS_CONTROLLER is in the failed state
reset handler is in place.
- Transition to SCI_BASE_CONTROLLER_STATE_RESETTING

@param[in] controller The SCI_BASE_CONTROLLER object which is cast into a
SCIC_SDS_CONTROLLER object.

@return SCI_STATUS
@retval SCI_FAILURE if fatal memory error occurred
This method is called when the SCIC_SDS_CONTROLLER is in the failed state reset handler is in place . - Transition to SCI_BASE_CONTROLLER_STATE_RESETTING @param [ in ] controller The SCI_BASE_CONTROLLER object which is cast into a SCIC_SDS_CONTROLLER object . @return SCI_STATUS @retval SCI_FAILURE if fatal memory error occurred
static
SCI_STATUS scic_sds_controller_failed_state_reset_handler(
   SCI_BASE_CONTROLLER_T *controller
)
{
    SCIC_SDS_CONTROLLER_T *this_controller;
    this_controller = (SCIC_SDS_CONTROLLER_T *)controller;
    if (this_controller->parent.error == SCI_CONTROLLER_FATAL_MEMORY_ERROR) {
        SCIC_LOG_TRACE((
           sci_base_object_get_logger(controller),
           SCIC_LOG_OBJECT_CONTROLLER,
           "scic_sds_controller_resetting_state_enter(0x%x) enter\n not allowed with fatal memory error",
           controller
        ));
        return SCI_FAILURE;
    } else {
        return scic_sds_controller_general_reset_handler(controller);
    }
}
static SCI_STATUS scic_sds_controller_failed_state_reset_handler ( SCI_BASE_CONTROLLER_T * controller ) { SCIC_SDS_CONTROLLER_T * this_controller ; this_controller = ( SCIC_SDS_CONTROLLER_T * ) controller ; if ( this_controller -> parent . error == SCI_CONTROLLER_FATAL_MEMORY_ERROR ) { SCIC_LOG_TRACE ( ( sci_base_object_get_logger ( controller ) , SCIC_LOG_OBJECT_CONTROLLER , " \n " , controller ) ) ; return SCI_FAILURE ; } else { return scic_sds_controller_general_reset_handler ( controller ) ; } }
This method is called when the SCIC_SDS_CONTROLLER is in the failed state
 reset handler is in place.
This method is called when the SCIC_SDS_CONTROLLER is in the failed state reset handler is in place .