Searched refs:task_context (Results 1 - 3 of 3) sorted by relevance

/linux-4.1.27/drivers/scsi/isci/
H A Drequest.c213 * @task_context:
218 struct scu_task_context *task_context) scu_ssp_reqeust_construct_task_context()
228 task_context->abort = 0; scu_ssp_reqeust_construct_task_context()
229 task_context->priority = 0; scu_ssp_reqeust_construct_task_context()
230 task_context->initiator_request = 1; scu_ssp_reqeust_construct_task_context()
231 task_context->connection_rate = idev->connection_rate; scu_ssp_reqeust_construct_task_context()
232 task_context->protocol_engine_index = ISCI_PEG; scu_ssp_reqeust_construct_task_context()
233 task_context->logical_port_index = iport->physical_port_index; scu_ssp_reqeust_construct_task_context()
234 task_context->protocol_type = SCU_TASK_CONTEXT_PROTOCOL_SSP; scu_ssp_reqeust_construct_task_context()
235 task_context->valid = SCU_TASK_CONTEXT_VALID; scu_ssp_reqeust_construct_task_context()
236 task_context->context_type = SCU_TASK_CONTEXT_TYPE; scu_ssp_reqeust_construct_task_context()
238 task_context->remote_node_index = idev->rnc.remote_node_index; scu_ssp_reqeust_construct_task_context()
239 task_context->command_code = 0; scu_ssp_reqeust_construct_task_context()
241 task_context->link_layer_control = 0; scu_ssp_reqeust_construct_task_context()
242 task_context->do_not_dma_ssp_good_response = 1; scu_ssp_reqeust_construct_task_context()
243 task_context->strict_ordering = 0; scu_ssp_reqeust_construct_task_context()
244 task_context->control_frame = 0; scu_ssp_reqeust_construct_task_context()
245 task_context->timeout_enable = 0; scu_ssp_reqeust_construct_task_context()
246 task_context->block_guard_enable = 0; scu_ssp_reqeust_construct_task_context()
248 task_context->address_modifier = 0; scu_ssp_reqeust_construct_task_context()
250 /* task_context->type.ssp.tag = ireq->io_tag; */ scu_ssp_reqeust_construct_task_context()
251 task_context->task_phase = 0x01; scu_ssp_reqeust_construct_task_context()
265 task_context->command_iu_upper = upper_32_bits(dma_addr); scu_ssp_reqeust_construct_task_context()
266 task_context->command_iu_lower = lower_32_bits(dma_addr); scu_ssp_reqeust_construct_task_context()
274 task_context->response_iu_upper = upper_32_bits(dma_addr); scu_ssp_reqeust_construct_task_context()
275 task_context->response_iu_lower = lower_32_bits(dma_addr); scu_ssp_reqeust_construct_task_context()
422 struct scu_task_context *task_context = ireq->tc; scu_ssp_io_request_construct_task_context() local
428 scu_ssp_reqeust_construct_task_context(ireq, task_context); scu_ssp_io_request_construct_task_context()
430 task_context->ssp_command_iu_length = scu_ssp_io_request_construct_task_context()
432 task_context->type.ssp.frame_type = SSP_COMMAND; scu_ssp_io_request_construct_task_context()
438 task_context->task_type = SCU_TASK_TYPE_IOREAD; scu_ssp_io_request_construct_task_context()
441 task_context->task_type = SCU_TASK_TYPE_IOWRITE; scu_ssp_io_request_construct_task_context()
445 task_context->transfer_length_bytes = len; scu_ssp_io_request_construct_task_context()
447 if (task_context->transfer_length_bytes > 0) scu_ssp_io_request_construct_task_context()
473 struct scu_task_context *task_context = ireq->tc; scu_ssp_task_request_construct_task_context() local
475 scu_ssp_reqeust_construct_task_context(ireq, task_context); scu_ssp_task_request_construct_task_context()
477 task_context->control_frame = 1; scu_ssp_task_request_construct_task_context()
478 task_context->priority = SCU_TASK_PRIORITY_HIGH; scu_ssp_task_request_construct_task_context()
479 task_context->task_type = SCU_TASK_TYPE_RAW_FRAME; scu_ssp_task_request_construct_task_context()
480 task_context->transfer_length_bytes = 0; scu_ssp_task_request_construct_task_context()
481 task_context->type.ssp.frame_type = SSP_TASK; scu_ssp_task_request_construct_task_context()
482 task_context->ssp_command_iu_length = scu_ssp_task_request_construct_task_context()
491 * @task_context: The buffer pointer for the SCU task context which is being
500 struct scu_task_context *task_context) scu_sata_reqeust_construct_task_context()
510 task_context->abort = 0; scu_sata_reqeust_construct_task_context()
511 task_context->priority = SCU_TASK_PRIORITY_NORMAL; scu_sata_reqeust_construct_task_context()
512 task_context->initiator_request = 1; scu_sata_reqeust_construct_task_context()
513 task_context->connection_rate = idev->connection_rate; scu_sata_reqeust_construct_task_context()
514 task_context->protocol_engine_index = ISCI_PEG; scu_sata_reqeust_construct_task_context()
515 task_context->logical_port_index = iport->physical_port_index; scu_sata_reqeust_construct_task_context()
516 task_context->protocol_type = SCU_TASK_CONTEXT_PROTOCOL_STP; scu_sata_reqeust_construct_task_context()
517 task_context->valid = SCU_TASK_CONTEXT_VALID; scu_sata_reqeust_construct_task_context()
518 task_context->context_type = SCU_TASK_CONTEXT_TYPE; scu_sata_reqeust_construct_task_context()
520 task_context->remote_node_index = idev->rnc.remote_node_index; scu_sata_reqeust_construct_task_context()
521 task_context->command_code = 0; scu_sata_reqeust_construct_task_context()
523 task_context->link_layer_control = 0; scu_sata_reqeust_construct_task_context()
524 task_context->do_not_dma_ssp_good_response = 1; scu_sata_reqeust_construct_task_context()
525 task_context->strict_ordering = 0; scu_sata_reqeust_construct_task_context()
526 task_context->control_frame = 0; scu_sata_reqeust_construct_task_context()
527 task_context->timeout_enable = 0; scu_sata_reqeust_construct_task_context()
528 task_context->block_guard_enable = 0; scu_sata_reqeust_construct_task_context()
530 task_context->address_modifier = 0; scu_sata_reqeust_construct_task_context()
531 task_context->task_phase = 0x01; scu_sata_reqeust_construct_task_context()
533 task_context->ssp_command_iu_length = scu_sata_reqeust_construct_task_context()
537 task_context->type.words[0] = *(u32 *)&ireq->stp.cmd; scu_sata_reqeust_construct_task_context()
553 task_context->command_iu_upper = upper_32_bits(dma_addr); scu_sata_reqeust_construct_task_context()
554 task_context->command_iu_lower = lower_32_bits(dma_addr); scu_sata_reqeust_construct_task_context()
557 task_context->response_iu_upper = 0; scu_sata_reqeust_construct_task_context()
558 task_context->response_iu_lower = 0; scu_sata_reqeust_construct_task_context()
563 struct scu_task_context *task_context = ireq->tc; scu_stp_raw_request_construct_task_context() local
565 scu_sata_reqeust_construct_task_context(ireq, task_context); scu_stp_raw_request_construct_task_context()
567 task_context->control_frame = 0; scu_stp_raw_request_construct_task_context()
568 task_context->priority = SCU_TASK_PRIORITY_NORMAL; scu_stp_raw_request_construct_task_context()
569 task_context->task_type = SCU_TASK_TYPE_SATA_RAW_FRAME; scu_stp_raw_request_construct_task_context()
570 task_context->type.stp.fis_type = FIS_REGH2D; scu_stp_raw_request_construct_task_context()
571 task_context->transfer_length_bytes = sizeof(struct host_to_dev_fis) - sizeof(u32); scu_stp_raw_request_construct_task_context()
613 struct scu_task_context *task_context = ireq->tc; sci_stp_optimized_request_construct() local
616 scu_sata_reqeust_construct_task_context(ireq, task_context); sci_stp_optimized_request_construct()
622 task_context->transfer_length_bytes = len; sci_stp_optimized_request_construct()
631 task_context->task_type = optimized_task_type + (SCU_TASK_TYPE_DMA_OUT sci_stp_optimized_request_construct()
637 task_context->task_type = optimized_task_type; sci_stp_optimized_request_construct()
1327 struct scu_task_context *task_context = ireq->tc; sci_stp_request_pio_data_out_trasmit_data_frame() local
1341 task_context->command_iu_upper = current_sgl->address_upper; sci_stp_request_pio_data_out_trasmit_data_frame()
1342 task_context->command_iu_lower = current_sgl->address_lower; sci_stp_request_pio_data_out_trasmit_data_frame()
1343 task_context->transfer_length_bytes = length; sci_stp_request_pio_data_out_trasmit_data_frame()
1344 task_context->type.stp.fis_type = FIS_DATA; sci_stp_request_pio_data_out_trasmit_data_frame()
1653 struct scu_task_context *task_context = ireq->tc; scu_atapi_reconstruct_raw_frame_task_context() local
1661 memset(&(task_context->type.stp), 0, sizeof(struct stp_task_context)); scu_atapi_reconstruct_raw_frame_task_context()
1662 task_context->type.stp.fis_type = FIS_DATA; scu_atapi_reconstruct_raw_frame_task_context()
1663 task_context->transfer_length_bytes = dev->cdb_len; scu_atapi_reconstruct_raw_frame_task_context()
1670 struct scu_task_context *task_context = ireq->tc; scu_atapi_construct_task_context() local
1677 task_context->task_type = SCU_TASK_TYPE_PACKET_DMA_OUT; scu_atapi_construct_task_context()
1678 task_context->sata_direction = 0; scu_atapi_construct_task_context()
1681 task_context->task_type = SCU_TASK_TYPE_PACKET_DMA_IN; scu_atapi_construct_task_context()
1682 task_context->sata_direction = 1; scu_atapi_construct_task_context()
1685 memset(&task_context->type.stp, 0, sizeof(task_context->type.stp)); scu_atapi_construct_task_context()
1686 task_context->type.stp.fis_type = FIS_DATA; scu_atapi_construct_task_context()
1690 task_context->ssp_command_iu_length = cdb_len / sizeof(u32); scu_atapi_construct_task_context()
1693 task_context->task_phase = 0x1; scu_atapi_construct_task_context()
1696 task_context->stp_retry_count = 0; scu_atapi_construct_task_context()
1699 task_context->transfer_length_bytes = task->total_xfer_len; scu_atapi_construct_task_context()
3187 struct scu_task_context *task_context; sci_io_request_construct_smp() local
3229 task_context = ireq->tc; sci_io_request_construct_smp()
3238 task_context->priority = 0; sci_io_request_construct_smp()
3239 task_context->initiator_request = 1; sci_io_request_construct_smp()
3240 task_context->connection_rate = idev->connection_rate; sci_io_request_construct_smp()
3241 task_context->protocol_engine_index = ISCI_PEG; sci_io_request_construct_smp()
3242 task_context->logical_port_index = iport->physical_port_index; sci_io_request_construct_smp()
3243 task_context->protocol_type = SCU_TASK_CONTEXT_PROTOCOL_SMP; sci_io_request_construct_smp()
3244 task_context->abort = 0; sci_io_request_construct_smp()
3245 task_context->valid = SCU_TASK_CONTEXT_VALID; sci_io_request_construct_smp()
3246 task_context->context_type = SCU_TASK_CONTEXT_TYPE; sci_io_request_construct_smp()
3249 task_context->remote_node_index = idev->rnc.remote_node_index; sci_io_request_construct_smp()
3250 task_context->command_code = 0; sci_io_request_construct_smp()
3251 task_context->task_type = SCU_TASK_TYPE_SMP_REQUEST; sci_io_request_construct_smp()
3254 task_context->link_layer_control = 0; sci_io_request_construct_smp()
3255 task_context->do_not_dma_ssp_good_response = 1; sci_io_request_construct_smp()
3256 task_context->strict_ordering = 0; sci_io_request_construct_smp()
3257 task_context->control_frame = 1; sci_io_request_construct_smp()
3258 task_context->timeout_enable = 0; sci_io_request_construct_smp()
3259 task_context->block_guard_enable = 0; sci_io_request_construct_smp()
3262 task_context->address_modifier = 0; sci_io_request_construct_smp()
3265 task_context->ssp_command_iu_length = req_len; sci_io_request_construct_smp()
3268 task_context->transfer_length_bytes = 0; sci_io_request_construct_smp()
3274 memcpy(&task_context->type.smp, &cmd, sizeof(u32)); sci_io_request_construct_smp()
3281 task_context->task_phase = 0; sci_io_request_construct_smp()
3292 task_context->command_iu_upper = upper_32_bits(sg_dma_address(sg)); sci_io_request_construct_smp()
3293 task_context->command_iu_lower = lower_32_bits(sg_dma_address(sg) + sizeof(u32)); sci_io_request_construct_smp()
3296 task_context->response_iu_upper = 0; sci_io_request_construct_smp()
3297 task_context->response_iu_lower = 0; sci_io_request_construct_smp()
216 scu_ssp_reqeust_construct_task_context( struct isci_request *ireq, struct scu_task_context *task_context) scu_ssp_reqeust_construct_task_context() argument
498 scu_sata_reqeust_construct_task_context( struct isci_request *ireq, struct scu_task_context *task_context) scu_sata_reqeust_construct_task_context() argument
H A Dport.c573 struct scu_task_context *task_context; sci_port_construct_dummy_task() local
575 task_context = &ihost->task_context_table[ISCI_TAG_TCI(tag)]; sci_port_construct_dummy_task()
576 memset(task_context, 0, sizeof(struct scu_task_context)); sci_port_construct_dummy_task()
578 task_context->initiator_request = 1; sci_port_construct_dummy_task()
579 task_context->connection_rate = 1; sci_port_construct_dummy_task()
580 task_context->logical_port_index = iport->physical_port_index; sci_port_construct_dummy_task()
581 task_context->protocol_type = SCU_TASK_CONTEXT_PROTOCOL_SSP; sci_port_construct_dummy_task()
582 task_context->task_index = ISCI_TAG_TCI(tag); sci_port_construct_dummy_task()
583 task_context->valid = SCU_TASK_CONTEXT_VALID; sci_port_construct_dummy_task()
584 task_context->context_type = SCU_TASK_CONTEXT_TYPE; sci_port_construct_dummy_task()
585 task_context->remote_node_index = iport->reserved_rni; sci_port_construct_dummy_task()
586 task_context->do_not_dma_ssp_good_response = 1; sci_port_construct_dummy_task()
587 task_context->task_phase = 0x01; sci_port_construct_dummy_task()
/linux-4.1.27/drivers/message/fusion/
H A Dmptsas.c4759 * @task_context: Context for the task to be aborted
4767 int task_context, ulong timeout, u8 *issue_reset) mptsas_issue_tm()
4785 "fw_id = %d, lun = %lld,\n\t task_context = 0x%x\n", ioc->name, mf, mptsas_issue_tm()
4787 task_context)); mptsas_issue_tm()
4799 pScsiTm->TaskMsgContext = task_context; mptsas_issue_tm()
4849 int task_context; mptsas_broadcast_primative_work() local
4880 task_context = mf->u.frame.hwhdr.msgctxu.MsgContext; mptsas_broadcast_primative_work()
4892 channel, id, (u64)lun, task_context, 30, &issue_reset)) mptsas_broadcast_primative_work()
4766 mptsas_issue_tm(MPT_ADAPTER *ioc, u8 type, u8 channel, u8 id, u64 lun, int task_context, ulong timeout, u8 *issue_reset) mptsas_issue_tm() argument

Completed in 180 milliseconds