FreeBSD/sys/dev/isci/scil/sati_unmap.c
/**
 * @brief This method will handle termination of the
 *        SCSI unmap translation and frees previously allocated
 *        dma buffer.
 *
 * @return None
 */
@brief This method will handle termination of the
SCSI unmap translation and frees previously allocated
dma buffer.

@return None
@brief This method will handle termination of the SCSI unmap translation and frees previously allocated dma buffer . @return None
void sati_unmap_terminate(
   SATI_TRANSLATOR_SEQUENCE_T * sequence,
   void                       * scsi_io,
   void                       * ata_io
)
{
   SATI_UNMAP_PROCESSING_STATE_T * unmap_process_state;
   unmap_process_state = &sequence->command_specific_data.unmap_process_state;
   if (unmap_process_state->virtual_unmap_buffer != NULL)
   {
      sati_cb_free_dma_buffer(scsi_io, unmap_process_state->virtual_unmap_buffer);
      unmap_process_state->virtual_unmap_buffer = NULL;
   }
}
void sati_unmap_terminate ( SATI_TRANSLATOR_SEQUENCE_T * sequence , void * scsi_io , void * ata_io ) { SATI_UNMAP_PROCESSING_STATE_T * unmap_process_state ; unmap_process_state = & sequence -> command_specific_data . unmap_process_state ; if ( unmap_process_state -> virtual_unmap_buffer != NULL ) { sati_cb_free_dma_buffer ( scsi_io , unmap_process_state -> virtual_unmap_buffer ) ; unmap_process_state -> virtual_unmap_buffer = NULL ; } }
@brief This method will handle termination of the
        SCSI unmap translation and frees previously allocated
        dma buffer.
@brief This method will handle termination of the SCSI unmap translation and frees previously allocated dma buffer .