Lines Matching refs:task_context
215 struct scu_task_context *task_context) in scu_ssp_request_construct_task_context() argument
225 task_context->abort = 0; in scu_ssp_request_construct_task_context()
226 task_context->priority = 0; in scu_ssp_request_construct_task_context()
227 task_context->initiator_request = 1; in scu_ssp_request_construct_task_context()
228 task_context->connection_rate = idev->connection_rate; in scu_ssp_request_construct_task_context()
229 task_context->protocol_engine_index = ISCI_PEG; in scu_ssp_request_construct_task_context()
230 task_context->logical_port_index = iport->physical_port_index; in scu_ssp_request_construct_task_context()
231 task_context->protocol_type = SCU_TASK_CONTEXT_PROTOCOL_SSP; in scu_ssp_request_construct_task_context()
232 task_context->valid = SCU_TASK_CONTEXT_VALID; in scu_ssp_request_construct_task_context()
233 task_context->context_type = SCU_TASK_CONTEXT_TYPE; in scu_ssp_request_construct_task_context()
235 task_context->remote_node_index = idev->rnc.remote_node_index; in scu_ssp_request_construct_task_context()
236 task_context->command_code = 0; in scu_ssp_request_construct_task_context()
238 task_context->link_layer_control = 0; in scu_ssp_request_construct_task_context()
239 task_context->do_not_dma_ssp_good_response = 1; in scu_ssp_request_construct_task_context()
240 task_context->strict_ordering = 0; in scu_ssp_request_construct_task_context()
241 task_context->control_frame = 0; in scu_ssp_request_construct_task_context()
242 task_context->timeout_enable = 0; in scu_ssp_request_construct_task_context()
243 task_context->block_guard_enable = 0; in scu_ssp_request_construct_task_context()
245 task_context->address_modifier = 0; in scu_ssp_request_construct_task_context()
248 task_context->task_phase = 0x01; in scu_ssp_request_construct_task_context()
262 task_context->command_iu_upper = upper_32_bits(dma_addr); in scu_ssp_request_construct_task_context()
263 task_context->command_iu_lower = lower_32_bits(dma_addr); in scu_ssp_request_construct_task_context()
271 task_context->response_iu_upper = upper_32_bits(dma_addr); in scu_ssp_request_construct_task_context()
272 task_context->response_iu_lower = lower_32_bits(dma_addr); in scu_ssp_request_construct_task_context()
417 struct scu_task_context *task_context = ireq->tc; in scu_ssp_io_request_construct_task_context() local
423 scu_ssp_request_construct_task_context(ireq, task_context); in scu_ssp_io_request_construct_task_context()
425 task_context->ssp_command_iu_length = in scu_ssp_io_request_construct_task_context()
427 task_context->type.ssp.frame_type = SSP_COMMAND; in scu_ssp_io_request_construct_task_context()
433 task_context->task_type = SCU_TASK_TYPE_IOREAD; in scu_ssp_io_request_construct_task_context()
436 task_context->task_type = SCU_TASK_TYPE_IOWRITE; in scu_ssp_io_request_construct_task_context()
440 task_context->transfer_length_bytes = len; in scu_ssp_io_request_construct_task_context()
442 if (task_context->transfer_length_bytes > 0) in scu_ssp_io_request_construct_task_context()
467 struct scu_task_context *task_context = ireq->tc; in scu_ssp_task_request_construct_task_context() local
469 scu_ssp_request_construct_task_context(ireq, task_context); in scu_ssp_task_request_construct_task_context()
471 task_context->control_frame = 1; in scu_ssp_task_request_construct_task_context()
472 task_context->priority = SCU_TASK_PRIORITY_HIGH; in scu_ssp_task_request_construct_task_context()
473 task_context->task_type = SCU_TASK_TYPE_RAW_FRAME; in scu_ssp_task_request_construct_task_context()
474 task_context->transfer_length_bytes = 0; in scu_ssp_task_request_construct_task_context()
475 task_context->type.ssp.frame_type = SSP_TASK; in scu_ssp_task_request_construct_task_context()
476 task_context->ssp_command_iu_length = in scu_ssp_task_request_construct_task_context()
495 struct scu_task_context *task_context) in scu_sata_request_construct_task_context() argument
505 task_context->abort = 0; in scu_sata_request_construct_task_context()
506 task_context->priority = SCU_TASK_PRIORITY_NORMAL; in scu_sata_request_construct_task_context()
507 task_context->initiator_request = 1; in scu_sata_request_construct_task_context()
508 task_context->connection_rate = idev->connection_rate; in scu_sata_request_construct_task_context()
509 task_context->protocol_engine_index = ISCI_PEG; in scu_sata_request_construct_task_context()
510 task_context->logical_port_index = iport->physical_port_index; in scu_sata_request_construct_task_context()
511 task_context->protocol_type = SCU_TASK_CONTEXT_PROTOCOL_STP; in scu_sata_request_construct_task_context()
512 task_context->valid = SCU_TASK_CONTEXT_VALID; in scu_sata_request_construct_task_context()
513 task_context->context_type = SCU_TASK_CONTEXT_TYPE; in scu_sata_request_construct_task_context()
515 task_context->remote_node_index = idev->rnc.remote_node_index; in scu_sata_request_construct_task_context()
516 task_context->command_code = 0; in scu_sata_request_construct_task_context()
518 task_context->link_layer_control = 0; in scu_sata_request_construct_task_context()
519 task_context->do_not_dma_ssp_good_response = 1; in scu_sata_request_construct_task_context()
520 task_context->strict_ordering = 0; in scu_sata_request_construct_task_context()
521 task_context->control_frame = 0; in scu_sata_request_construct_task_context()
522 task_context->timeout_enable = 0; in scu_sata_request_construct_task_context()
523 task_context->block_guard_enable = 0; in scu_sata_request_construct_task_context()
525 task_context->address_modifier = 0; in scu_sata_request_construct_task_context()
526 task_context->task_phase = 0x01; in scu_sata_request_construct_task_context()
528 task_context->ssp_command_iu_length = in scu_sata_request_construct_task_context()
532 task_context->type.words[0] = *(u32 *)&ireq->stp.cmd; in scu_sata_request_construct_task_context()
548 task_context->command_iu_upper = upper_32_bits(dma_addr); in scu_sata_request_construct_task_context()
549 task_context->command_iu_lower = lower_32_bits(dma_addr); in scu_sata_request_construct_task_context()
552 task_context->response_iu_upper = 0; in scu_sata_request_construct_task_context()
553 task_context->response_iu_lower = 0; in scu_sata_request_construct_task_context()
558 struct scu_task_context *task_context = ireq->tc; in scu_stp_raw_request_construct_task_context() local
560 scu_sata_request_construct_task_context(ireq, task_context); in scu_stp_raw_request_construct_task_context()
562 task_context->control_frame = 0; in scu_stp_raw_request_construct_task_context()
563 task_context->priority = SCU_TASK_PRIORITY_NORMAL; in scu_stp_raw_request_construct_task_context()
564 task_context->task_type = SCU_TASK_TYPE_SATA_RAW_FRAME; in scu_stp_raw_request_construct_task_context()
565 task_context->type.stp.fis_type = FIS_REGH2D; in scu_stp_raw_request_construct_task_context()
566 task_context->transfer_length_bytes = sizeof(struct host_to_dev_fis) - sizeof(u32); in scu_stp_raw_request_construct_task_context()
608 struct scu_task_context *task_context = ireq->tc; in sci_stp_optimized_request_construct() local
611 scu_sata_request_construct_task_context(ireq, task_context); in sci_stp_optimized_request_construct()
617 task_context->transfer_length_bytes = len; in sci_stp_optimized_request_construct()
626 task_context->task_type = optimized_task_type + (SCU_TASK_TYPE_DMA_OUT in sci_stp_optimized_request_construct()
632 task_context->task_type = optimized_task_type; in sci_stp_optimized_request_construct()
1323 struct scu_task_context *task_context = ireq->tc; in sci_stp_request_pio_data_out_trasmit_data_frame() local
1337 task_context->command_iu_upper = current_sgl->address_upper; in sci_stp_request_pio_data_out_trasmit_data_frame()
1338 task_context->command_iu_lower = current_sgl->address_lower; in sci_stp_request_pio_data_out_trasmit_data_frame()
1339 task_context->transfer_length_bytes = length; in sci_stp_request_pio_data_out_trasmit_data_frame()
1340 task_context->type.stp.fis_type = FIS_DATA; in sci_stp_request_pio_data_out_trasmit_data_frame()
1647 struct scu_task_context *task_context = ireq->tc; in scu_atapi_reconstruct_raw_frame_task_context() local
1655 memset(&(task_context->type.stp), 0, sizeof(struct stp_task_context)); in scu_atapi_reconstruct_raw_frame_task_context()
1656 task_context->type.stp.fis_type = FIS_DATA; in scu_atapi_reconstruct_raw_frame_task_context()
1657 task_context->transfer_length_bytes = dev->cdb_len; in scu_atapi_reconstruct_raw_frame_task_context()
1664 struct scu_task_context *task_context = ireq->tc; in scu_atapi_construct_task_context() local
1671 task_context->task_type = SCU_TASK_TYPE_PACKET_DMA_OUT; in scu_atapi_construct_task_context()
1672 task_context->sata_direction = 0; in scu_atapi_construct_task_context()
1675 task_context->task_type = SCU_TASK_TYPE_PACKET_DMA_IN; in scu_atapi_construct_task_context()
1676 task_context->sata_direction = 1; in scu_atapi_construct_task_context()
1679 memset(&task_context->type.stp, 0, sizeof(task_context->type.stp)); in scu_atapi_construct_task_context()
1680 task_context->type.stp.fis_type = FIS_DATA; in scu_atapi_construct_task_context()
1684 task_context->ssp_command_iu_length = cdb_len / sizeof(u32); in scu_atapi_construct_task_context()
1687 task_context->task_phase = 0x1; in scu_atapi_construct_task_context()
1690 task_context->stp_retry_count = 0; in scu_atapi_construct_task_context()
1693 task_context->transfer_length_bytes = task->total_xfer_len; in scu_atapi_construct_task_context()
3182 struct scu_task_context *task_context; in sci_io_request_construct_smp() local
3224 task_context = ireq->tc; in sci_io_request_construct_smp()
3233 task_context->priority = 0; in sci_io_request_construct_smp()
3234 task_context->initiator_request = 1; in sci_io_request_construct_smp()
3235 task_context->connection_rate = idev->connection_rate; in sci_io_request_construct_smp()
3236 task_context->protocol_engine_index = ISCI_PEG; in sci_io_request_construct_smp()
3237 task_context->logical_port_index = iport->physical_port_index; in sci_io_request_construct_smp()
3238 task_context->protocol_type = SCU_TASK_CONTEXT_PROTOCOL_SMP; in sci_io_request_construct_smp()
3239 task_context->abort = 0; in sci_io_request_construct_smp()
3240 task_context->valid = SCU_TASK_CONTEXT_VALID; in sci_io_request_construct_smp()
3241 task_context->context_type = SCU_TASK_CONTEXT_TYPE; in sci_io_request_construct_smp()
3244 task_context->remote_node_index = idev->rnc.remote_node_index; in sci_io_request_construct_smp()
3245 task_context->command_code = 0; in sci_io_request_construct_smp()
3246 task_context->task_type = SCU_TASK_TYPE_SMP_REQUEST; in sci_io_request_construct_smp()
3249 task_context->link_layer_control = 0; in sci_io_request_construct_smp()
3250 task_context->do_not_dma_ssp_good_response = 1; in sci_io_request_construct_smp()
3251 task_context->strict_ordering = 0; in sci_io_request_construct_smp()
3252 task_context->control_frame = 1; in sci_io_request_construct_smp()
3253 task_context->timeout_enable = 0; in sci_io_request_construct_smp()
3254 task_context->block_guard_enable = 0; in sci_io_request_construct_smp()
3257 task_context->address_modifier = 0; in sci_io_request_construct_smp()
3260 task_context->ssp_command_iu_length = req_len; in sci_io_request_construct_smp()
3263 task_context->transfer_length_bytes = 0; in sci_io_request_construct_smp()
3269 memcpy(&task_context->type.smp, &cmd, sizeof(u32)); in sci_io_request_construct_smp()
3276 task_context->task_phase = 0; in sci_io_request_construct_smp()
3287 task_context->command_iu_upper = upper_32_bits(sg_dma_address(sg)); in sci_io_request_construct_smp()
3288 task_context->command_iu_lower = lower_32_bits(sg_dma_address(sg) + sizeof(u32)); in sci_io_request_construct_smp()
3291 task_context->response_iu_upper = 0; in sci_io_request_construct_smp()
3292 task_context->response_iu_lower = 0; in sci_io_request_construct_smp()