FreeBSD/sys/dev/isci/scil/sati_mode_sense.c
/**
 * @brief This method performs the all pages mode page specific data
 *        translation based upon the contents of the remote device
 *        IDENTIFY DEVICE data.  The ALL PAGES mode sense request asks
 *        for all of mode pages and sub-pages in a single page.
 *        The mode pages are added in ascending order.
 *        For more information on the parameters passed to this method,
 *        please reference sati_translate_command().
 *
 * @param[in] identify This parameter specifies the remote device's
 *            IDENTIFY DEVICE data received as part of the IO request.
 * @param[in] offset This parameter specifies the offset into the data
 *            buffer where the translated data is to be written.
 *
 * @return This method returns the size of the mode page data that was
 *         translated.
 */
@brief This method performs the all pages mode page specific data
translation based upon the contents of the remote device
IDENTIFY DEVICE data.  The ALL PAGES mode sense request asks
for all of mode pages and sub-pages in a single page.
The mode pages are added in ascending order.
For more information on the parameters passed to this method,
please reference sati_translate_command().

@param[in] identify This parameter specifies the remote device's
IDENTIFY DEVICE data received as part of the IO request.
@param[in] offset This parameter specifies the offset into the data
buffer where the translated data is to be written.

@return This method returns the size of the mode page data that was
translated.
@brief This method performs the all pages mode page specific data translation based upon the contents of the remote device IDENTIFY DEVICE data . The ALL PAGES mode sense request asks for all of mode pages and sub - pages in a single page . The mode pages are added in ascending order . For more information on the parameters passed to this method please reference sati_translate_command () . @param [ in ] identify This parameter specifies the remote device ' s IDENTIFY DEVICE data received as part of the IO request . @param [ in ] offset This parameter specifies the offset into the data buffer where the translated data is to be written . @return This method returns the size of the mode page data that was translated .
U32 sati_mode_sense_all_pages_translate_data(
   SATI_TRANSLATOR_SEQUENCE_T * sequence,
   void                       * scsi_io,
   ATA_IDENTIFY_DEVICE_DATA_T * identify,
   U32                          offset
)
{
   offset += sati_mode_sense_read_write_error_translate_data(
                sequence, scsi_io, identify, offset
             );
   offset += sati_mode_sense_disconnect_reconnect_translate_data(
                sequence, scsi_io, identify, offset
             );
   offset += sati_mode_sense_caching_translate_data(
                sequence, scsi_io, identify, offset
             );
   offset += sati_mode_sense_control_translate_data(
                sequence, scsi_io, identify, offset
             );
   offset += sati_mode_sense_informational_excp_control_translate_data(
                sequence, scsi_io, identify, offset
             );
   return offset;
}
U32 sati_mode_sense_all_pages_translate_data ( SATI_TRANSLATOR_SEQUENCE_T * sequence , void * scsi_io , ATA_IDENTIFY_DEVICE_DATA_T * identify , U32 offset ) { offset += sati_mode_sense_read_write_error_translate_data ( sequence , scsi_io , identify , offset ) ; offset += sati_mode_sense_disconnect_reconnect_translate_data ( sequence , scsi_io , identify , offset ) ; offset += sati_mode_sense_caching_translate_data ( sequence , scsi_io , identify , offset ) ; offset += sati_mode_sense_control_translate_data ( sequence , scsi_io , identify , offset ) ; offset += sati_mode_sense_informational_excp_control_translate_data ( sequence , scsi_io , identify , offset ) ; return offset ; }
@brief This method performs the all pages mode page specific data
        translation based upon the contents of the remote device
        IDENTIFY DEVICE data.
@brief This method performs the all pages mode page specific data translation based upon the contents of the remote device IDENTIFY DEVICE data .