/freebsd/sys/dev/isci/scil/ |
H A D | sati_inquiry.c | 95 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_inquiry_construct_product_revision() argument 113 sequence, in sati_inquiry_construct_product_revision() 127 sequence, in sati_inquiry_construct_product_revision() 157 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_inquiry_standard_translate_data() argument 167 sati_set_data_byte(sequence, scsi_io, 0, 0x00); in sati_inquiry_standard_translate_data() 172 sati_set_data_byte(sequence, scsi_io, 1, 0x80); in sati_inquiry_standard_translate_data() 174 sati_set_data_byte(sequence, scsi_io, 1, 0x00); in sati_inquiry_standard_translate_data() 176 sati_set_data_byte(sequence, scsi_io, 2, 0x05); // Indicate SPC-3 support in sati_inquiry_standard_translate_data() 177 sati_set_data_byte(sequence, scsi_io, 3, 0x02); // Response Format SPC-3 in sati_inquiry_standard_translate_data() 179 sati_set_data_byte(sequence, scsi_io, 4, 62); // 62 Additional Data Bytes. in sati_inquiry_standard_translate_data() [all …]
|
H A D | sati_log_sense.c | 81 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_supported_log_page_construct() argument 87 sati_set_data_byte(sequence, scsi_io, 0, 0x00); in sati_supported_log_page_construct() 90 sati_set_data_byte(sequence, scsi_io, 1, 0x00); in sati_supported_log_page_construct() 93 sati_set_data_byte(sequence, scsi_io, 2, 0x00); in sati_supported_log_page_construct() 94 sati_set_data_byte(sequence, scsi_io, 3, 0x02); in sati_supported_log_page_construct() 99 if(sequence->device->capabilities & SATI_DEVICE_CAP_SMART_SUPPORT) in sati_supported_log_page_construct() 102 sequence, in sati_supported_log_page_construct() 110 if(sequence->device->capabilities & SATI_DEVICE_CAP_SMART_SELF_TEST_SUPPORT) in sati_supported_log_page_construct() 113 sequence, in sati_supported_log_page_construct() 129 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_set_parameters_to_zero() argument [all …]
|
H A D | sati.c | 112 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_translate_error() argument 120 sequence, in sati_translate_error() 131 sequence, in sati_translate_error() 142 sequence, in sati_translate_error() 153 sequence, in sati_translate_error() 165 sequence->state = SATI_SEQUENCE_STATE_READ_ERROR; in sati_translate_error() 167 sequence, in sati_translate_error() 175 else if ( (sequence->data_direction == SATI_DATA_DIRECTION_OUT) in sati_translate_error() 179 sequence, in sati_translate_error() 190 sequence, in sati_translate_error() [all …]
|
H A D | sati_start_stop_unit.c | 84 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_start_stop_unit_translate_command() argument 100 sati_ata_standby_immediate_construct(ata_io, sequence); in sati_start_stop_unit_translate_command() 101 sequence->command_specific_data.translated_command = ATA_STANDBY_IMMED; in sati_start_stop_unit_translate_command() 105 if ( sequence->state != SATI_SEQUENCE_STATE_INCOMPLETE ) in sati_start_stop_unit_translate_command() 108 sati_ata_flush_cache_construct(ata_io, sequence); in sati_start_stop_unit_translate_command() 109 sequence->command_specific_data.translated_command = ATA_FLUSH_CACHE; in sati_start_stop_unit_translate_command() 112 sequence->state = SATI_SEQUENCE_STATE_INCOMPLETE; in sati_start_stop_unit_translate_command() 118 sati_ata_standby_immediate_construct(ata_io, sequence); in sati_start_stop_unit_translate_command() 119 sequence->command_specific_data.translated_command = ATA_STANDBY_IMMED; in sati_start_stop_unit_translate_command() 128 if (sequence->device->capabilities & SATI_DEVICE_CAP_REMOVABLE_MEDIA) in sati_start_stop_unit_translate_command() [all …]
|
H A D | sati_mode_sense_10.c | 93 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_mode_sense_10_build_header() argument 106 sati_set_data_byte(sequence, scsi_io, 0, (U8)(mode_data_length >> 8) & 0xFF); in sati_mode_sense_10_build_header() 107 sati_set_data_byte(sequence, scsi_io, 1, (U8)(mode_data_length & 0xFF)); in sati_mode_sense_10_build_header() 110 sati_set_data_byte(sequence, scsi_io, 2, SCSI_MODE_HEADER_MEDIUM_TYPE_SBC); in sati_mode_sense_10_build_header() 113 if (sequence->device->capabilities & SATI_DEVICE_CAP_DMA_FUA_ENABLE) in sati_mode_sense_10_build_header() 114 sati_set_data_byte(sequence,scsi_io,3,SCSI_MODE_SENSE_HEADER_FUA_ENABLE); in sati_mode_sense_10_build_header() 116 sati_set_data_byte(sequence, scsi_io, 3, 0); in sati_mode_sense_10_build_header() 120 sati_set_data_byte(sequence, scsi_io, 4, 0); in sati_mode_sense_10_build_header() 121 sati_set_data_byte(sequence, scsi_io, 5, 0); in sati_mode_sense_10_build_header() 125 sati_set_data_byte(sequence, scsi_io, 6, 0); in sati_mode_sense_10_build_header() [all …]
|
H A D | sati_mode_select.c | 188 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_mode_select_initialize_mode_sel_processing_state() argument 195 sequence->command_specific_data.process_state.ata_command_sent_for_cmp = 0; in sati_mode_select_initialize_mode_sel_processing_state() 196 sequence->command_specific_data.process_state.mode_page_offset=mode_page_offset; in sati_mode_select_initialize_mode_sel_processing_state() 197 …sequence->command_specific_data.process_state.mode_pages_size = data_transfer_length - mode_page… in sati_mode_select_initialize_mode_sel_processing_state() 198 sequence->command_specific_data.process_state.size_of_data_processed = 0; in sati_mode_select_initialize_mode_sel_processing_state() 199 sequence->command_specific_data.process_state.current_mode_page_processed = FALSE; in sati_mode_select_initialize_mode_sel_processing_state() 262 SATI_TRANSLATOR_SEQUENCE_T* sequence, in sati_mode_select_process_mode_page_read_write_error_recovery() argument 272 mode_page_offset = sequence->command_specific_data.process_state.mode_page_offset; in sati_mode_select_process_mode_page_read_write_error_recovery() 278 sati_get_data_byte(sequence, scsi_io, mode_page_offset, ¤t_mode_page[0]); in sati_mode_select_process_mode_page_read_write_error_recovery() 279 sati_get_data_byte(sequence, scsi_io, mode_page_offset+1, ¤t_mode_page[1]); in sati_mode_select_process_mode_page_read_write_error_recovery() [all …]
|
H A D | sati_request_sense.c | 92 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_request_sense_translate_command() argument 100 switch(sequence->device->state) in sati_request_sense_translate_command() 104 sequence, in sati_request_sense_translate_command() 116 sequence, in sati_request_sense_translate_command() 120 sequence->device->unit_attention_asc, in sati_request_sense_translate_command() 121 sequence->device->unit_attention_ascq in sati_request_sense_translate_command() 128 sequence, in sati_request_sense_translate_command() 140 sequence, in sati_request_sense_translate_command() 152 sequence, in sati_request_sense_translate_command() 166 sequence->allocation_length = sati_get_cdb_byte(cdb, 4); in sati_request_sense_translate_command() [all …]
|
H A D | sati_mode_sense.c | 97 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_mode_sense_is_page_control_supported() argument 114 sequence, in sati_mode_sense_is_page_control_supported() 144 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_mode_sense_is_page_code_supported() argument 155 sequence->type = SATI_SEQUENCE_MODE_SENSE_6_CACHING; in sati_mode_sense_is_page_code_supported() 157 sequence->type = SATI_SEQUENCE_MODE_SENSE_10_CACHING; in sati_mode_sense_is_page_code_supported() 162 sequence->type = SATI_SEQUENCE_MODE_SENSE_6_ALL_PAGES; in sati_mode_sense_is_page_code_supported() 164 sequence->type = SATI_SEQUENCE_MODE_SENSE_10_ALL_PAGES; in sati_mode_sense_is_page_code_supported() 169 sequence->type = SATI_SEQUENCE_MODE_SENSE_6_READ_WRITE_ERROR; in sati_mode_sense_is_page_code_supported() 171 sequence->type = SATI_SEQUENCE_MODE_SENSE_10_READ_WRITE_ERROR; in sati_mode_sense_is_page_code_supported() 176 sequence->type = SATI_SEQUENCE_MODE_SENSE_6_DISCONNECT_RECONNECT; in sati_mode_sense_is_page_code_supported() [all …]
|
H A D | sati_write_and_verify.c | 90 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_write_and_verify_10_translate_command() argument 97 if(sequence->state == SATI_SEQUENCE_STATE_INITIAL) in sati_write_and_verify_10_translate_command() 99 status = sati_write_10_translate_command(sequence, scsi_io, ata_io); in sati_write_and_verify_10_translate_command() 100 sequence->state = SATI_SEQUENCE_STATE_INCOMPLETE; in sati_write_and_verify_10_translate_command() 101 sequence->is_translate_response_required = TRUE; in sati_write_and_verify_10_translate_command() 103 else if(sequence->state == SATI_SEQUENCE_STATE_INCOMPLETE) in sati_write_and_verify_10_translate_command() 105 status = sati_verify_10_translate_command(sequence, scsi_io, ata_io); in sati_write_and_verify_10_translate_command() 106 sequence->state = SATI_SEQUENCE_STATE_AWAIT_RESPONSE; in sati_write_and_verify_10_translate_command() 114 sequence->type = SATI_SEQUENCE_WRITE_AND_VERIFY; in sati_write_and_verify_10_translate_command() 135 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_write_and_verify_12_translate_command() argument [all …]
|
H A D | sati_read_capacity.c | 83 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_read_capacity_10_translate_command() argument 107 sequence, in sati_read_capacity_10_translate_command() 118 sequence->allocation_length = SCSI_READ_CAPACITY_10_DATA_LENGTH; in sati_read_capacity_10_translate_command() 119 sequence->type = SATI_SEQUENCE_READ_CAPACITY_10; in sati_read_capacity_10_translate_command() 121 sati_ata_identify_device_construct(ata_io, sequence); in sati_read_capacity_10_translate_command() 140 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_read_capacity_16_translate_command() argument 168 sequence, in sati_read_capacity_16_translate_command() 179 sequence->allocation_length = (sati_get_cdb_byte(cdb, 10) << 24) | in sati_read_capacity_16_translate_command() 184 sequence->type = SATI_SEQUENCE_READ_CAPACITY_16; in sati_read_capacity_16_translate_command() 186 sati_ata_identify_device_construct(ata_io, sequence); in sati_read_capacity_16_translate_command() [all …]
|
H A D | sati_reassign_blocks.c | 129 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_reassign_blocks_verify_command() argument 136 sati_ata_non_data_command(ata_io, sequence); in sati_reassign_blocks_verify_command() 139 if (sequence->device->capabilities & SATI_DEVICE_CAP_48BIT_ENABLE) in sati_reassign_blocks_verify_command() 162 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_reassign_blocks_write_command() argument 169 sati_ata_non_data_command(ata_io, sequence); in sati_reassign_blocks_write_command() 170 sequence->data_direction = SATI_DATA_DIRECTION_OUT; in sati_reassign_blocks_write_command() 176 if (sequence->device->capabilities & SATI_DEVICE_CAP_48BIT_ENABLE) in sati_reassign_blocks_write_command() 192 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_reassign_blocks_verify_condition() argument 203 lba_offset = sequence->command_specific_data.reassign_blocks_process_state.lba_offset; in sati_reassign_blocks_verify_condition() 204 page_size = sequence->command_specific_data.reassign_blocks_process_state.lba_size; in sati_reassign_blocks_verify_condition() [all …]
|
H A D | sati_unmap.c | 83 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_unmap_calculate_dsm_blocks() argument 87 U32 blocks = (dsm_descriptor_count * sizeof(TRIM_PAIR))/sequence->device->logical_block_size; in sati_unmap_calculate_dsm_blocks() 88 if ((dsm_descriptor_count * sizeof(TRIM_PAIR)) % sequence->device->logical_block_size) in sati_unmap_calculate_dsm_blocks() 109 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_unmap_construct() argument 128 sequence->data_direction = SATI_DATA_DIRECTION_OUT; in sati_unmap_construct() 129 sequence->protocol = SAT_PROTOCOL_UDMA_DATA_OUT; in sati_unmap_construct() 133 sequence->is_translate_response_required = TRUE; in sati_unmap_construct() 148 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_unmap_load_next_descriptor() argument 156 unmap_process_state = &sequence->command_specific_data.unmap_process_state; in sati_unmap_load_next_descriptor() 164 sati_get_data_byte(sequence, in sati_unmap_load_next_descriptor() [all …]
|
H A D | sati_move.c | 90 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_move_set_ata_command() argument 98 if (sequence->data_direction == SATI_DATA_DIRECTION_OUT) in sati_move_set_ata_command() 122 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_move_small_udma_translate_command() argument 132 sati_move_set_ata_command(sequence, ata_io, write_opcode, read_opcode); in sati_move_small_udma_translate_command() 135 if (sequence->data_direction == SATI_DATA_DIRECTION_IN) in sati_move_small_udma_translate_command() 136 sequence->protocol = SAT_PROTOCOL_UDMA_DATA_IN; in sati_move_small_udma_translate_command() 138 sequence->protocol = SAT_PROTOCOL_UDMA_DATA_OUT; in sati_move_small_udma_translate_command() 161 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_move_large_udma_translate_command() argument 169 sati_move_set_ata_command(sequence, ata_io, write_opcode, read_opcode); in sati_move_large_udma_translate_command() 171 if (sequence->data_direction == SATI_DATA_DIRECTION_IN) in sati_move_large_udma_translate_command() [all …]
|
H A D | sati_util.c | 87 SATI_TRANSLATOR_SEQUENCE_T * sequence in sati_ata_non_data_command() argument 90 sequence->data_direction = SATI_DATA_DIRECTION_NONE; in sati_ata_non_data_command() 91 sequence->protocol = SAT_PROTOCOL_NON_DATA; in sati_ata_non_data_command() 92 sequence->ata_transfer_length = 0; in sati_ata_non_data_command() 110 SATI_TRANSLATOR_SEQUENCE_T * sequence in sati_ata_identify_device_construct() argument 116 sequence->data_direction = SATI_DATA_DIRECTION_IN; in sati_ata_identify_device_construct() 117 sequence->protocol = SAT_PROTOCOL_PIO_DATA_IN; in sati_ata_identify_device_construct() 118 sequence->ata_transfer_length = sizeof(ATA_IDENTIFY_DEVICE_DATA_T); in sati_ata_identify_device_construct() 133 SATI_TRANSLATOR_SEQUENCE_T * sequence in sati_ata_execute_device_diagnostic_construct() argument 140 sequence->data_direction = SATI_DATA_DIRECTION_IN; in sati_ata_execute_device_diagnostic_construct() [all …]
|
H A D | sati_mode_sense_6.c | 93 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_mode_sense_6_build_header() argument 103 sati_set_data_byte(sequence, scsi_io, 0, (U8)mode_data_length-1); in sati_mode_sense_6_build_header() 106 sati_set_data_byte(sequence, scsi_io, 1, SCSI_MODE_HEADER_MEDIUM_TYPE_SBC); in sati_mode_sense_6_build_header() 109 if (sequence->device->capabilities & SATI_DEVICE_CAP_DMA_FUA_ENABLE) in sati_mode_sense_6_build_header() 110 sati_set_data_byte(sequence,scsi_io,2,SCSI_MODE_SENSE_HEADER_FUA_ENABLE); in sati_mode_sense_6_build_header() 112 sati_set_data_byte(sequence, scsi_io, 2, 0); in sati_mode_sense_6_build_header() 116 sati_set_data_byte(sequence, scsi_io, 3, 0); in sati_mode_sense_6_build_header() 119 sequence, scsi_io, 3, SCSI_MODE_SENSE_STD_BLOCK_DESCRIPTOR_LENGTH in sati_mode_sense_6_build_header() 142 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_mode_sense_6_translate_data() argument 152 sequence, scsi_io, identify, transfer_length in sati_mode_sense_6_translate_data() [all …]
|
H A D | sati_read.c | 92 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_read_large_translate_command() argument 99 sequence->data_direction = SATI_DATA_DIRECTION_IN; in sati_read_large_translate_command() 102 sequence, in sati_read_large_translate_command() 134 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_read_32_bit_lba_translate_command() argument 145 sequence, scsi_io, ata_io, sector_count, &device_head in sati_read_32_bit_lba_translate_command() 151 sequence, scsi_io, ata_io, device_head in sati_read_32_bit_lba_translate_command() 177 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_read_6_translate_command() argument 182 if(sati_device_state_stopped(sequence, scsi_io)) in sati_read_6_translate_command() 188 sequence->data_direction = SATI_DATA_DIRECTION_IN; in sati_read_6_translate_command() 189 sequence->type = SATI_SEQUENCE_READ_6; in sati_read_6_translate_command() [all …]
|
H A D | sati_write.c | 92 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_write_large_translate_command() argument 99 sequence->data_direction = SATI_DATA_DIRECTION_OUT; in sati_write_large_translate_command() 102 sequence, in sati_write_large_translate_command() 134 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_write_32_bit_lba_translate_command() argument 145 sequence, scsi_io, ata_io, sector_count, &device_head in sati_write_32_bit_lba_translate_command() 151 sequence, scsi_io, ata_io, device_head in sati_write_32_bit_lba_translate_command() 177 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_write_6_translate_command() argument 182 if(sati_device_state_stopped(sequence, scsi_io)) in sati_write_6_translate_command() 188 sequence->data_direction = SATI_DATA_DIRECTION_OUT; in sati_write_6_translate_command() 189 sequence->type = SATI_SEQUENCE_WRITE_6; in sati_write_6_translate_command() [all …]
|
H A D | sati_report_luns.c | 82 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_report_luns_translate_command() argument 90 sequence->allocation_length = (sati_get_cdb_byte(cdb, 6) << 24) | in sati_report_luns_translate_command() 99 sati_set_data_byte(sequence, scsi_io, 0, 0); in sati_report_luns_translate_command() 100 sati_set_data_byte(sequence, scsi_io, 1, 0); in sati_report_luns_translate_command() 101 sati_set_data_byte(sequence, scsi_io, 2, 0); in sati_report_luns_translate_command() 102 sati_set_data_byte(sequence, scsi_io, 3, 8); in sati_report_luns_translate_command() 105 sati_set_data_byte(sequence, scsi_io, 4, 0); in sati_report_luns_translate_command() 106 sati_set_data_byte(sequence, scsi_io, 5, 0); in sati_report_luns_translate_command() 107 sati_set_data_byte(sequence, scsi_io, 6, 0); in sati_report_luns_translate_command() 108 sati_set_data_byte(sequence, scsi_io, 7, 0); in sati_report_luns_translate_command() [all …]
|
H A D | sati_write_buffer.c | 84 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_write_buffer_translate_command() argument 103 sequence->allocation_length = allocation_length; in sati_write_buffer_translate_command() 113 sati_ata_write_buffer_construct(ata_io, sequence); in sati_write_buffer_translate_command() 114 sequence->type = SATI_SEQUENCE_WRITE_BUFFER; in sati_write_buffer_translate_command() 115 sequence->state = SATI_SEQUENCE_STATE_AWAIT_RESPONSE; in sati_write_buffer_translate_command() 121 sequence, in sati_write_buffer_translate_command() 129 sequence->state = SATI_SEQUENCE_STATE_FINAL; in sati_write_buffer_translate_command() 138 sequence, in sati_write_buffer_translate_command() 144 sequence->type = SATI_SEQUENCE_WRITE_BUFFER_MICROCODE; in sati_write_buffer_translate_command() 145 sequence->state = SATI_SEQUENCE_STATE_AWAIT_RESPONSE; in sati_write_buffer_translate_command() [all …]
|
H A D | sati_atapi.c | 81 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_atapi_translate_command() argument 96 sequence->is_sense_response_set = FALSE; in sati_atapi_translate_command() 98 sequence->is_translate_response_required = FALSE; in sati_atapi_translate_command() 100 sequence->number_data_bytes_set = 0; in sati_atapi_translate_command() 101 sequence->device = sati_device; in sati_atapi_translate_command() 102 sequence->command_specific_data.scratch = 0; in sati_atapi_translate_command() 108 sequence->protocol = SAT_PROTOCOL_PACKET_NON_DATA; in sati_atapi_translate_command() 110 sequence->protocol = SAT_PROTOCOL_PACKET_DMA_DATA_IN; in sati_atapi_translate_command() 112 sequence->protocol = SAT_PROTOCOL_PACKET_DMA_DATA_OUT; in sati_atapi_translate_command() 118 sequence, scsi_io, atapi_io in sati_atapi_translate_command() [all …]
|
H A D | sati_verify.c | 92 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_verify_translate_command() argument 107 sequence, in sati_verify_translate_command() 117 sequence->protocol = SAT_PROTOCOL_NON_DATA; in sati_verify_translate_command() 118 sequence->data_direction = SATI_DATA_DIRECTION_NONE; in sati_verify_translate_command() 123 if (sequence->device->capabilities & SATI_DEVICE_CAP_48BIT_ENABLE) in sati_verify_translate_command() 150 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_verify_10_translate_command() argument 160 if(sati_device_state_stopped(sequence, scsi_io)) in sati_verify_10_translate_command() 166 sequence->type = SATI_SEQUENCE_VERIFY_10; in sati_verify_10_translate_command() 169 sati_move_translate_32_bit_lba(sequence, scsi_io, ata_io); in sati_verify_10_translate_command() 170 status = sati_move_set_sector_count(sequence,scsi_io,ata_io,sector_count,0); in sati_verify_10_translate_command() [all …]
|
H A D | sati_passthrough.c | 167 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_passthrough_construct_sense() argument 201 sequence, in sati_passthrough_construct_sense() 237 sequence->is_sense_response_set = TRUE; in sati_passthrough_construct_sense() 252 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_passthrough_check_direction() argument 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() [all …]
|
H A D | sati_read_buffer.c | 84 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_read_buffer_translate_command() argument 102 sequence->allocation_length = allocation_length; in sati_read_buffer_translate_command() 110 sati_ata_read_buffer_construct(ata_io, sequence); in sati_read_buffer_translate_command() 111 sequence->type = SATI_SEQUENCE_READ_BUFFER; in sati_read_buffer_translate_command() 112 sequence->state = SATI_SEQUENCE_STATE_AWAIT_RESPONSE; in sati_read_buffer_translate_command() 118 sequence, in sati_read_buffer_translate_command() 125 sequence->state = SATI_SEQUENCE_STATE_FINAL; in sati_read_buffer_translate_command() 136 sequence, in sati_read_buffer_translate_command() 143 sequence->state = SATI_SEQUENCE_STATE_FINAL; in sati_read_buffer_translate_command() 149 sati_set_data_byte(sequence, scsi_io, 0, 0x09); //offset boundary in sati_read_buffer_translate_command() [all …]
|
H A D | sati_util.h | 151 SATI_TRANSLATOR_SEQUENCE_T * sequence 156 SATI_TRANSLATOR_SEQUENCE_T * sequence 161 SATI_TRANSLATOR_SEQUENCE_T * sequence 165 SATI_TRANSLATOR_SEQUENCE_T * sequence, 175 SATI_TRANSLATOR_SEQUENCE_T * sequence, 191 SATI_TRANSLATOR_SEQUENCE_T * sequence 195 SATI_TRANSLATOR_SEQUENCE_T * sequence, 207 SATI_TRANSLATOR_SEQUENCE_T * sequence, 216 SATI_TRANSLATOR_SEQUENCE_T * sequence, 226 SATI_TRANSLATOR_SEQUENCE_T * sequence, [all …]
|
H A D | sati_write_long.c | 94 SATI_TRANSLATOR_SEQUENCE_T * sequence, in sati_write_long_translate_command() argument 104 if((sequence->device->capabilities & in sati_write_long_translate_command() 108 sequence, in sati_write_long_translate_command() 124 sati_move_translate_32_bit_lba(sequence, scsi_io, ata_io); in sati_write_long_translate_command() 131 status = sati_move_translate_64_bit_lba(sequence, scsi_io, ata_io); in sati_write_long_translate_command() 140 sati_move_translate_command(sequence, scsi_io, ata_io, device_head); in sati_write_long_translate_command() 145 sequence, in sati_write_long_translate_command() 159 if( (sequence->device->capabilities & in sati_write_long_translate_command() 163 sequence, in sati_write_long_translate_command() 176 sequence, in sati_write_long_translate_command() [all …]
|