FreeBSD/sys/dev/isci/scil/sati_mode_select.c
/**
 * @brief This method will check the validity of parameter data of Disconnect Reconnect mode
 *            page and further processing the page data if necessary.
 *
 * @param[in] page_size This parameter specifies page size of current mode page.
 *
 * @return Indicate if the translation was successful.
 * @retval SATI_SUCCESS
 * @retval SATI_COMPLETE
 * @retval SATI_FAILURE_CHECK_RESPONSE_DATA
 */
@brief This method will check the validity of parameter data of Disconnect Reconnect mode
page and further processing the page data if necessary.

@param[in] page_size This parameter specifies page size of current mode page.

@return Indicate if the translation was successful.
@brief This method will check the validity of parameter data of Disconnect Reconnect mode page and further processing the page data if necessary . @param [ in ] page_size This parameter specifies page size of current mode page . @return Indicate if the translation was successful .
static
SATI_STATUS sati_mode_select_process_mode_page_disconnect_reconnect(
   SATI_MODE_SELECT_PROCESSING_STATE_T * mode_select_process_state,
   U32 page_size
   )
{
   SATI_STATUS status = SATI_FAILURE_CHECK_RESPONSE_DATA;
   {
      mode_select_process_state->size_of_data_processed += page_size;
      mode_select_process_state->mode_page_offset += page_size;
      mode_select_process_state->current_mode_page_processed = TRUE;
   }
   status = SATI_COMPLETE;
   return status;
}
static SATI_STATUS sati_mode_select_process_mode_page_disconnect_reconnect ( SATI_MODE_SELECT_PROCESSING_STATE_T * mode_select_process_state , U32 page_size ) { SATI_STATUS status = SATI_FAILURE_CHECK_RESPONSE_DATA ; { mode_select_process_state -> size_of_data_processed += page_size ; mode_select_process_state -> mode_page_offset += page_size ; mode_select_process_state -> current_mode_page_processed = TRUE ; } status = SATI_COMPLETE ; return status ; }
@brief This method will check the validity of parameter data of Disconnect Reconnect mode
            page and further processing the page data if necessary.
@brief This method will check the validity of parameter data of Disconnect Reconnect mode page and further processing the page data if necessary .
// No need to check data for valid or invalid this page (undefined) // No ata command to send // No further interaction with remote devices