FreeBSD/sys/dev/isci/scil/scif_sas_request.c
/**
 * @brief This method will perform termination completion processing for
 *        the supplied request.  This includes updated the affected
 *        request count, if a task management request is what generated
 *        this termination.  Also, this method will attempt to transition
 *        to the READY OPERATIONAL state if this represents the last
 *        affected request.
 *
 * @param[in] fw_request This parameter specifies the request for which to
 *            perform termination completion processing.
 *
 * @return none
 */
@brief This method will perform termination completion processing for
the supplied request.  This includes updated the affected
request count, if a task management request is what generated
this termination.  Also, this method will attempt to transition
to the READY OPERATIONAL state if this represents the last
affected request.

@param[in] fw_request This parameter specifies the request for which to
perform termination completion processing.

@return none
@brief This method will perform termination completion processing for the supplied request . This includes updated the affected request count if a task management request is what generated this termination . Also this method will attempt to transition to the READY OPERATIONAL state if this represents the last affected request . @param [ in ] fw_request This parameter specifies the request for which to perform termination completion processing . @return none
void scif_sas_request_terminate_complete(
   SCIF_SAS_REQUEST_T * fw_request
)
{
   SCIF_LOG_TRACE((
      sci_base_object_get_logger(fw_request),
      SCIF_LOG_OBJECT_TASK_MANAGEMENT,
      "scif_sas_request_terminate_complete(0x%x) enter\n",
      fw_request
   ));
   if (fw_request->terminate_requestor != NULL)
      scif_sas_task_request_operation_complete(fw_request->terminate_requestor);
}
void scif_sas_request_terminate_complete ( SCIF_SAS_REQUEST_T * fw_request ) { SCIF_LOG_TRACE ( ( sci_base_object_get_logger ( fw_request ) , SCIF_LOG_OBJECT_TASK_MANAGEMENT , " \n " , fw_request ) ) ; if ( fw_request -> terminate_requestor != NULL ) scif_sas_task_request_operation_complete ( fw_request -> terminate_requestor ) ; }
@brief This method will perform termination completion processing for
        the supplied request.
@brief This method will perform termination completion processing for the supplied request .
// For requests that were terminated due to a task management request, // check to see if the task management request has completed.