FreeBSD/sys/dev/isci/scil/scif_sas_task_request_state_handlers.c
/**
 * @brief This method provides COMPLETED state specific handling for
 *        when the user attempts to destruct the supplied task request.
 *
 * @param[in] task_request This parameter specifies the task request object
 *            to be destructed.
 *
 * @return This method returns a value indicating if the destruct
 *         operation was successful.
 * @retval SCI_SUCCESS This return value indicates that the destruct
 *         was successful.
 */
@brief This method provides COMPLETED state specific handling for
when the user attempts to destruct the supplied task request.

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

@return This method returns a value indicating if the destruct
operation was successful.
@retval SCI_SUCCESS This return value indicates that the destruct
was successful.
@brief This method provides COMPLETED state specific handling for when the user attempts to destruct the supplied task request . @param [ in ] task_request This parameter specifies the task request object to be destructed . @return This method returns a value indicating if the destruct operation was successful . @retval SCI_SUCCESS This return value indicates that the destruct was successful .
static
SCI_STATUS scif_sas_task_request_completed_destruct_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_FINAL
   );
   sci_base_state_machine_logger_deinitialize(
      &task_request->state_machine_logger,
      &task_request->state_machine
   );
   if (fw_request->is_internal == TRUE)
   {
      scif_sas_internal_task_request_destruct(
         (SCIF_SAS_TASK_REQUEST_T *)fw_request
      );
   }
   return SCI_SUCCESS;
}
static SCI_STATUS scif_sas_task_request_completed_destruct_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_FINAL ) ; sci_base_state_machine_logger_deinitialize ( & task_request -> state_machine_logger , & task_request -> state_machine ) ; if ( fw_request -> is_internal == TRUE ) { scif_sas_internal_task_request_destruct ( ( SCIF_SAS_TASK_REQUEST_T * ) fw_request ) ; } return SCI_SUCCESS ; }
@brief This method provides COMPLETED state specific handling for
        when the user attempts to destruct the supplied task request.
@brief This method provides COMPLETED state specific handling for when the user attempts to destruct the supplied task request .