FreeBSD/sys/dev/isci/scil/scic_sds_controller.c
/**
 * @brief This is a helper method to determine if any remote devices on this
 *        controller are still in the stopping state.
 *
 * @param[in] this_controller
 */
@brief This is a helper method to determine if any remote devices on this
controller are still in the stopping state.


@brief This is a helper method to determine if any remote devices on this controller are still in the stopping state .
BOOL scic_sds_controller_has_remote_devices_stopping(
   SCIC_SDS_CONTROLLER_T * this_controller
)
{
   U32 index;
   for (index = 0; index < this_controller->remote_node_entries; index++)
   {
      if (
            (this_controller->device_table[index] != NULL)
         && (
               this_controller->device_table[index]->parent.state_machine.current_state_id
            == SCI_BASE_REMOTE_DEVICE_STATE_STOPPING
            )
         )
      {
         return TRUE;
      }
   }
   return FALSE;
}
BOOL scic_sds_controller_has_remote_devices_stopping ( SCIC_SDS_CONTROLLER_T * this_controller ) { U32 index ; for ( index = 0 ; index < this_controller -> remote_node_entries ; index ++ ) { if ( ( this_controller -> device_table [ index ] != NULL ) && ( this_controller -> device_table [ index ] -> parent . state_machine . current_state_id == SCI_BASE_REMOTE_DEVICE_STATE_STOPPING ) ) { return TRUE ; } } return FALSE ; }
@brief This is a helper method to determine if any remote devices on this
        controller are still in the stopping state.
@brief This is a helper method to determine if any remote devices on this controller are still in the stopping state .