FreeBSD/sys/dev/isci/scil/sati_mode_select.c
/**
 * @brief This method will set the initial Mode Select processing state.
 */
@brief This method will set the initial Mode Select processing state.
@brief This method will set the initial Mode Select processing state .
static
void  sati_mode_select_initialize_mode_sel_processing_state(
   SATI_TRANSLATOR_SEQUENCE_T * sequence,
   void                       * scsi_io,
   void                       * ata_io,
   U32 data_transfer_length,
   U32 mode_page_offset
   )
{
   sequence->command_specific_data.process_state.ata_command_sent_for_cmp = 0;
   sequence->command_specific_data.process_state.mode_page_offset=mode_page_offset;
   sequence->command_specific_data.process_state.mode_pages_size = data_transfer_length  -  mode_page_offset;
   sequence->command_specific_data.process_state.size_of_data_processed = 0;
   sequence->command_specific_data.process_state.current_mode_page_processed = FALSE;
}
static void sati_mode_select_initialize_mode_sel_processing_state ( SATI_TRANSLATOR_SEQUENCE_T * sequence , void * scsi_io , void * ata_io , U32 data_transfer_length , U32 mode_page_offset ) { sequence -> command_specific_data . process_state . ata_command_sent_for_cmp = 0 ; sequence -> command_specific_data . process_state . mode_page_offset = mode_page_offset ; sequence -> command_specific_data . process_state . mode_pages_size = data_transfer_length - mode_page_offset ; sequence -> command_specific_data . process_state . size_of_data_processed = 0 ; sequence -> command_specific_data . process_state . current_mode_page_processed = FALSE ; }
@brief This method will set the initial Mode Select processing state.
@brief This method will set the initial Mode Select processing state .