FreeBSD/sys/dev/isci/scil/scif_sas_task_request_state_handlers.c
/**
 * @brief This method provides STARTED state specific handling for
 *        when the user attempts to abort the supplied task request.
 *
 * @param[in] task_request This parameter specifies the task request object
 *            to be aborted.
 *
 * @return This method returns a value indicating if the aborting the
 *         task request was successfully started.
 * @retval SCI_SUCCESS This return value indicates that the abort process
 *         began successfully.
 */
@brief This method provides STARTED state specific handling for
when the user attempts to abort the supplied task request.

@param[in] task_request This parameter specifies the task request object
to be aborted.

@return This method returns a value indicating if the aborting the
task request was successfully started.
@retval SCI_SUCCESS This return value indicates that the abort process
began successfully.
@brief This method provides STARTED state specific handling for when the user attempts to abort the supplied task request . @param [ in ] task_request This parameter specifies the task request object to be aborted . @return This method returns a value indicating if the aborting the task request was successfully started . @retval SCI_SUCCESS This return value indicates that the abort process began successfully .
static
SCI_STATUS scif_sas_task_request_started_abort_handler(
   SCI_BASE_REQUEST_T * task_request
)
{
   SCIF_SAS_REQUEST_T * fw_request = (SCIF_SAS_REQUEST_T *) task_request;
   sci_base_state_machine_change_state(
      &task_request->state_machine, SCI_BASE_REQUEST_STATE_ABORTING
   );
   return fw_request->status;
}
static SCI_STATUS scif_sas_task_request_started_abort_handler ( SCI_BASE_REQUEST_T * task_request ) { SCIF_SAS_REQUEST_T * fw_request = ( SCIF_SAS_REQUEST_T * ) task_request ; sci_base_state_machine_change_state ( & task_request -> state_machine , SCI_BASE_REQUEST_STATE_ABORTING ) ; return fw_request -> status ; }
@brief This method provides STARTED state specific handling for
        when the user attempts to abort the supplied task request.
@brief This method provides STARTED state specific handling for when the user attempts to abort the supplied task request .