Lines Matching +full:sense +full:- +full:mode

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0
9 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
22 * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
28 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
99 * @param[in] cdb The SCSI cdb for the ATA pass-through command
102 @retval TRUE - multiple_count is nonzero with a unsupported command
103 @retval FALSE - multiple_count is zero or the command supports a nonzero value
142 * @brief This method will construct the sense data buffer in the user's
143 * sense data buffer location. Additionally, it will set the user's
147 * for which to construct the sense data.
151 * for which to construct the sense data.
154 * @param[in] sense_key This parameter specifies the sense key to
157 * additional sense code (ASC) key to be set for the user's
160 * the additional sense code qualifier (ASCQ) key to be set
193 sense_data = (U8*) rsp_iu->data; in sati_passthrough_construct_sense()
237 sequence->is_sense_response_set = TRUE; in sati_passthrough_construct_sense()
245 * for which to construct the sense data.
256 if ((sequence->protocol == PASSTHROUGH_PIO_DATA_IN) || in sati_passthrough_check_direction()
257 (sequence->protocol == PASSTHROUGH_UDMA_DATA_IN)) in sati_passthrough_check_direction()
265 sequence->data_direction = SATI_DATA_DIRECTION_IN; in sati_passthrough_check_direction()
268 else if ((sequence->protocol == PASSTHROUGH_PIO_DATA_OUT) || in sati_passthrough_check_direction()
269 (sequence->protocol == PASSTHROUGH_UDMA_DATA_OUT)) in sati_passthrough_check_direction()
277 sequence->data_direction = SATI_DATA_DIRECTION_OUT; in sati_passthrough_check_direction()
282 sequence->data_direction = SATI_DATA_DIRECTION_NONE; in sati_passthrough_check_direction()
315 sequence->type = SATI_SEQUENCE_ATA_PASSTHROUGH_12; in sati_passthrough_12_translate_command()
316 sequence->state = SATI_SEQUENCE_STATE_TRANSLATE_DATA; in sati_passthrough_12_translate_command()
319 sequence->protocol = PASSTHROUGH_CDB_PROTOCOL (cdb); in sati_passthrough_12_translate_command()
324 * DMA even though no multiword DMA mode is selected on the device. in sati_passthrough_12_translate_command()
326 * ATA_PASSTHROUGH commands with DMA mode - not UDMA_IN/OUT. in sati_passthrough_12_translate_command()
330 if (sequence->protocol == PASSTHROUGH_DMA) in sati_passthrough_12_translate_command()
334 sequence->protocol = PASSTHROUGH_UDMA_DATA_IN; in sati_passthrough_12_translate_command()
338 sequence->protocol = PASSTHROUGH_UDMA_DATA_OUT; in sati_passthrough_12_translate_command()
366 sequence->state = SATI_SEQUENCE_STATE_AWAIT_RESPONSE; in sati_passthrough_12_translate_command()
393 sequence->type = SATI_SEQUENCE_ATA_PASSTHROUGH_16; in sati_passthrough_16_translate_command()
394 sequence->state = SATI_SEQUENCE_STATE_TRANSLATE_DATA; in sati_passthrough_16_translate_command()
397 sequence->protocol = PASSTHROUGH_CDB_PROTOCOL(cdb); in sati_passthrough_16_translate_command()
402 * DMA even though no multiword DMA mode is selected on the device. in sati_passthrough_16_translate_command()
404 * ATA_PASSTHROUGH commands with DMA mode - not UDMA_IN/OUT. in sati_passthrough_16_translate_command()
408 if (sequence->protocol == PASSTHROUGH_DMA) in sati_passthrough_16_translate_command()
412 sequence->protocol = PASSTHROUGH_UDMA_DATA_IN; in sati_passthrough_16_translate_command()
416 sequence->protocol = PASSTHROUGH_UDMA_DATA_OUT; in sati_passthrough_16_translate_command()
448 sequence->is_translate_response_required = TRUE; in sati_passthrough_16_translate_command()
459 sequence->state = SATI_SEQUENCE_STATE_AWAIT_RESPONSE; in sati_passthrough_16_translate_command()
493 sequence->state = SATI_SEQUENCE_STATE_FINAL; in sati_passthrough_translate_response()
495 // If the user set the check condition bit, fill out the sense data in sati_passthrough_translate_response()