FreeBSD/sys/dev/isci/scil/scic_sds_ssp_request.c
/**
 * @brief This method is responsible for processing a terminate/abort
 *        request for this TC while the request is waiting for the task
 *        management response unsolicited frame.
 *
 * @param[in] this_request This parameter specifies the request for which
 *            the termination was requested.
 *
 * @return This method returns an indication as to whether the abort
 *         request was successfully handled.
 *
 * @todo need to update to ensure the received UF doesn't cause damage
 *       to subsequent requests (i.e. put the extended tag in a holding
 *       pattern for this particular device).
 */
@brief This method is responsible for processing a terminate/abort
request for this TC while the request is waiting for the task
management response unsolicited frame.

@param[in] this_request This parameter specifies the request for which
the termination was requested.

@return This method returns an indication as to whether the abort
request was successfully handled.

@todo need to update to ensure the received UF doesn't cause damage
to subsequent requests .
@brief This method is responsible for processing a terminate / abort request for this TC while the request is waiting for the task management response unsolicited frame . @param [ in ] this_request This parameter specifies the request for which the termination was requested . @return This method returns an indication as to whether the abort request was successfully handled . @todo need to update to ensure the received UF doesn ' t cause damage to subsequent requests .
static
SCI_STATUS scic_sds_ssp_task_request_await_tc_response_abort_handler(
   SCI_BASE_REQUEST_T * request
)
{
   SCIC_SDS_REQUEST_T *this_request = (SCIC_SDS_REQUEST_T *)request;
   SCIC_LOG_TRACE((
      sci_base_object_get_logger(this_request),
      SCIC_LOG_OBJECT_TASK_MANAGEMENT,
      "scic_sds_ssp_task_request_await_tc_response_abort_handler(0x%x) enter\n",
      this_request
   ));
   sci_base_state_machine_change_state(
      &this_request->parent.state_machine,
      SCI_BASE_REQUEST_STATE_ABORTING
   );
   sci_base_state_machine_change_state(
      &this_request->parent.state_machine,
      SCI_BASE_REQUEST_STATE_COMPLETED
   );
   return SCI_SUCCESS;
}
static SCI_STATUS scic_sds_ssp_task_request_await_tc_response_abort_handler ( SCI_BASE_REQUEST_T * request ) { SCIC_SDS_REQUEST_T * this_request = ( SCIC_SDS_REQUEST_T * ) request ; SCIC_LOG_TRACE ( ( sci_base_object_get_logger ( this_request ) , SCIC_LOG_OBJECT_TASK_MANAGEMENT , " \n " , this_request ) ) ; sci_base_state_machine_change_state ( & this_request -> parent . state_machine , SCI_BASE_REQUEST_STATE_ABORTING ) ; sci_base_state_machine_change_state ( & this_request -> parent . state_machine , SCI_BASE_REQUEST_STATE_COMPLETED ) ; return SCI_SUCCESS ; }
@brief This method is responsible for processing a terminate/abort
        request for this TC while the request is waiting for the task
        management response unsolicited frame.
@brief This method is responsible for processing a terminate / abort request for this TC while the request is waiting for the task management response unsolicited frame .