Home
last modified time | relevance | path

Searched refs:ata_task (Results 1 – 13 of 13) sorted by relevance

/linux-6.1.9/drivers/scsi/aic94xx/
Daic94xx_task.c355 if (unlikely(task->ata_task.device_control_reg_update)) in asd_build_ata_ascb()
362 scb->ata_task.proto_conn_rate = (1 << 5); /* STP */ in asd_build_ata_ascb()
364 scb->ata_task.proto_conn_rate |= dev->linkrate; in asd_build_ata_ascb()
366 scb->ata_task.total_xfer_len = cpu_to_le32(task->total_xfer_len); in asd_build_ata_ascb()
367 scb->ata_task.fis = task->ata_task.fis; in asd_build_ata_ascb()
368 if (likely(!task->ata_task.device_control_reg_update)) in asd_build_ata_ascb()
369 scb->ata_task.fis.flags |= 0x80; /* C=1: update ATA cmd reg */ in asd_build_ata_ascb()
370 scb->ata_task.fis.flags &= 0xF0; /* PM_PORT field shall be 0 */ in asd_build_ata_ascb()
372 memcpy(scb->ata_task.atapi_packet, task->ata_task.atapi_packet, in asd_build_ata_ascb()
374 scb->ata_task.sister_scb = cpu_to_le16(0xFFFF); in asd_build_ata_ascb()
[all …]
Daic94xx_sas.h576 struct initiate_ata_task ata_task; member
/linux-6.1.9/drivers/scsi/isci/
Drequest.h309 task->ata_task.fis.command == ATA_CMD_READ_LOG_EXT && in isci_task_is_ncq_recovery()
310 task->ata_task.fis.lbal == ATA_LOG_SATA_NCQ); in isci_task_is_ncq_recovery()
Drequest.c693 task->ata_task.fis.command == ATA_CMD_PACKET) { in sci_io_request_construct_sata()
705 if (task->ata_task.use_ncq) { in sci_io_request_construct_sata()
713 if (task->ata_task.dma_xfer) { in sci_io_request_construct_sata()
1646 void *atapi_cdb = ireq->ttype_ptr.io_task_ptr->ata_task.atapi_packet; in scu_atapi_reconstruct_raw_frame_task_context()
1683 memcpy(&ireq->stp.cmd.lbal, task->ata_task.atapi_packet, cdb_len); in scu_atapi_construct_task_context()
2974 !task->ata_task.use_ncq) { in sci_request_started_state_enter()
2976 task->ata_task.fis.command == ATA_CMD_PACKET) { in sci_request_started_state_enter()
2980 } else if (task->ata_task.dma_xfer) { in sci_request_started_state_enter()
3156 memcpy(fis, &task->ata_task.fis, sizeof(struct host_to_dev_fis)); in isci_request_stp_request_construct()
3157 if (!task->ata_task.device_control_reg_update) in isci_request_stp_request_construct()
Dremote_device.c716 if (task->ata_task.use_ncq) in sci_remote_device_start_io()
728 if (task->ata_task.use_ncq) { in sci_remote_device_start_io()
/linux-6.1.9/drivers/scsi/libsas/
Dsas_ata.c186 ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, (u8 *)&task->ata_task.fis); in sas_ata_qc_issue()
189 memcpy(task->ata_task.atapi_packet, qc->cdb, qc->dev->cdb_len); in sas_ata_qc_issue()
204 task->ata_task.retry_count = 1; in sas_ata_qc_issue()
207 task->ata_task.use_ncq = ata_is_ncq(qc->tf.protocol); in sas_ata_qc_issue()
208 task->ata_task.dma_xfer = ata_is_dma(qc->tf.protocol); in sas_ata_qc_issue()
Dsas_scsi_host.c1031 task->ata_task.device_control_reg_update = 1; in sas_execute_tmf()
1033 task->ata_task.force_phy = true; in sas_execute_tmf()
1034 task->ata_task.force_phy_id = force_phy_id; in sas_execute_tmf()
1036 memcpy(&task->ata_task.fis, parameter, para_len); in sas_execute_tmf()
/linux-6.1.9/drivers/scsi/pm8001/
Dpm80xx_hwi.c2483 if (t->ata_task.dma_xfer == 0 && in mpi_sata_completion()
2488 } else if (t->ata_task.use_ncq && in mpi_sata_completion()
4338 switch (task->ata_task.fis.command) { in check_enc_sat_cmd()
4559 if (task->data_dir == DMA_NONE && !task->ata_task.use_ncq) { in pm80xx_chip_sata_req()
4562 } else if (likely(!task->ata_task.device_control_reg_update)) { in pm80xx_chip_sata_req()
4563 if (task->ata_task.use_ncq && in pm80xx_chip_sata_req()
4567 } else if (task->ata_task.dma_xfer) { in pm80xx_chip_sata_req()
4575 if (task->ata_task.use_ncq && pm8001_get_ncq_tag(task, &hdr_tag)) { in pm80xx_chip_sata_req()
4576 task->ata_task.fis.sector_count |= (u8) (hdr_tag << 3); in pm80xx_chip_sata_req()
4584 sata_cmd.sata_fis = task->ata_task.fis; in pm80xx_chip_sata_req()
[all …]
Dpm8001_hwi.c2380 if (t->ata_task.dma_xfer == 0 && in mpi_sata_completion()
2385 } else if (t->ata_task.use_ncq && in mpi_sata_completion()
4203 if (task->data_dir == DMA_NONE && !task->ata_task.use_ncq) { in pm8001_chip_sata_req()
4206 } else if (likely(!task->ata_task.device_control_reg_update)) { in pm8001_chip_sata_req()
4207 if (task->ata_task.use_ncq && in pm8001_chip_sata_req()
4211 } else if (task->ata_task.dma_xfer) { in pm8001_chip_sata_req()
4219 if (task->ata_task.use_ncq && pm8001_get_ncq_tag(task, &hdr_tag)) { in pm8001_chip_sata_req()
4220 task->ata_task.fis.sector_count |= (u8) (hdr_tag << 3); in pm8001_chip_sata_req()
4229 sata_cmd.sata_fis = task->ata_task.fis; in pm8001_chip_sata_req()
4230 if (likely(!task->ata_task.device_control_reg_update)) in pm8001_chip_sata_req()
/linux-6.1.9/drivers/scsi/mvsas/
Dmv_sas.c467 if (task->ata_task.use_ncq) in mvs_task_prep_ata()
470 if (task->ata_task.fis.command != ATA_CMD_ID_ATAPI) in mvs_task_prep_ata()
476 if (task->ata_task.use_ncq && mvs_get_ncq_tag(task, &hdr_tag)) in mvs_task_prep_ata()
477 task->ata_task.fis.sector_count |= (u8) (hdr_tag << 3); in mvs_task_prep_ata()
532 if (likely(!task->ata_task.device_control_reg_update)) in mvs_task_prep_ata()
533 task->ata_task.fis.flags |= 0x80; /* C=1: update ATA cmd reg */ in mvs_task_prep_ata()
535 memcpy(buf_cmd, &task->ata_task.fis, sizeof(struct host_to_dev_fis)); in mvs_task_prep_ata()
538 task->ata_task.atapi_packet, 16); in mvs_task_prep_ata()
1527 task->ata_task.use_ncq = 0; in mvs_slot_err()
/linux-6.1.9/drivers/scsi/hisi_sas/
Dhisi_sas_v2_hw.c2492 struct sas_ata_task *ata_task = &task->ata_task; in prep_ata_v2_hw() local
2506 if (tmf && ata_task->force_phy) { in prep_ata_v2_hw()
2508 dw0 |= (1 << ata_task->force_phy_id) << CMD_HDR_PHY_ID_OFF; in prep_ata_v2_hw()
2527 if ((task->ata_task.fis.command == ATA_CMD_DEV_RESET) && in prep_ata_v2_hw()
2528 (task->ata_task.fis.control & ATA_SRST)) in prep_ata_v2_hw()
2532 &task->ata_task.fis, task->data_dir)) in prep_ata_v2_hw()
2538 if (task->ata_task.use_ncq) { in prep_ata_v2_hw()
2542 task->ata_task.fis.sector_count |= (u8) (hdr_tag << 3); in prep_ata_v2_hw()
2563 if (likely(!task->ata_task.device_control_reg_update)) in prep_ata_v2_hw()
2564 task->ata_task.fis.flags |= 0x80; /* C=1: update ATA cmd reg */ in prep_ata_v2_hw()
[all …]
Dhisi_sas_v3_hw.c1411 if ((task->ata_task.fis.command == ATA_CMD_DEV_RESET) && in prep_ata_v3_hw()
1412 (task->ata_task.fis.control & ATA_SRST)) in prep_ata_v3_hw()
1416 &task->ata_task.fis, task->data_dir)) in prep_ata_v3_hw()
1420 if (FIS_CMD_IS_UNCONSTRAINED(task->ata_task.fis)) in prep_ata_v3_hw()
1426 if (task->ata_task.use_ncq) { in prep_ata_v3_hw()
1430 task->ata_task.fis.sector_count |= (u8) (hdr_tag << 3); in prep_ata_v3_hw()
1451 if (likely(!task->ata_task.device_control_reg_update)) in prep_ata_v3_hw()
1452 task->ata_task.fis.flags |= 0x80; /* C=1: update ATA cmd reg */ in prep_ata_v3_hw()
1454 memcpy(buf_cmd, &task->ata_task.fis, sizeof(struct host_to_dev_fis)); in prep_ata_v3_hw()
/linux-6.1.9/include/scsi/
Dlibsas.h608 struct sas_ata_task ata_task; member