FreeBSD/sys/dev/isci/scil/scic_sds_stp_remote_device.c
/**
 * This method will perform the STP request (both io or task) completion
 * processing for await reset state.
 *
 * @param[in] device This parameter specifies the device for which the
 *            request is being completed.
 * @param[in] request This parameter specifies the request being completed.
 *
 * @return This method returns an indication as to whether the request
 *         processing completed successfully.
 */
This method will perform the STP request (both io or task) completion
processing for await reset state.

@param[in] device This parameter specifies the device for which the
request is being completed.
@param[in] request This parameter specifies the request being completed.

@return This method returns an indication as to whether the request
processing completed successfully.
This method will perform the STP request ( both io or task ) completion processing for await reset state . @param [ in ] device This parameter specifies the device for which the request is being completed . @param [ in ] request This parameter specifies the request being completed . @return This method returns an indication as to whether the request processing completed successfully .
static
SCI_STATUS scic_sds_stp_remote_device_ready_await_reset_substate_complete_request_handler(
   SCI_BASE_REMOTE_DEVICE_T * device,
   SCI_BASE_REQUEST_T       * request
)
{
   SCIC_SDS_REMOTE_DEVICE_T * this_device = (SCIC_SDS_REMOTE_DEVICE_T *)device;
   SCIC_SDS_REQUEST_T       * the_request = (SCIC_SDS_REQUEST_T *)request;
   SCI_STATUS                 status;
   status = scic_sds_io_request_complete(the_request);
   if (status == SCI_SUCCESS)
   {
      status = scic_sds_port_complete_io(
                  this_device->owning_port, this_device, the_request
               );
      if (status == SCI_SUCCESS)
         scic_sds_remote_device_decrement_request_count(this_device);
   }
   if (status != SCI_SUCCESS)
   {
      SCIC_LOG_ERROR((
         sci_base_object_get_logger(this_device),
         SCIC_LOG_OBJECT_STP_REMOTE_TARGET,
         "Port:0x%x Device:0x%x Request:0x%x Status:0x%x could not complete\n",
         this_device->owning_port, this_device, the_request, status
      ));
   }
   return status;
}
static SCI_STATUS scic_sds_stp_remote_device_ready_await_reset_substate_complete_request_handler ( SCI_BASE_REMOTE_DEVICE_T * device , SCI_BASE_REQUEST_T * request ) { SCIC_SDS_REMOTE_DEVICE_T * this_device = ( SCIC_SDS_REMOTE_DEVICE_T * ) device ; SCIC_SDS_REQUEST_T * the_request = ( SCIC_SDS_REQUEST_T * ) request ; SCI_STATUS status ; status = scic_sds_io_request_complete ( the_request ) ; if ( status == SCI_SUCCESS ) { status = scic_sds_port_complete_io ( this_device -> owning_port , this_device , the_request ) ; if ( status == SCI_SUCCESS ) scic_sds_remote_device_decrement_request_count ( this_device ) ; } if ( status != SCI_SUCCESS ) { SCIC_LOG_ERROR ( ( sci_base_object_get_logger ( this_device ) , SCIC_LOG_OBJECT_STP_REMOTE_TARGET , " \n " , this_device -> owning_port , this_device , the_request , status ) ) ; } return status ; }
This method will perform the STP request (both io or task) completion
 processing for await reset state.
This method will perform the STP request ( both io or task ) completion processing for await reset state .