Lines Matching refs:tf
235 __le16 tf[12]; /* 8-31 */ member
331 static void nv_adma_tf_read(struct ata_port *ap, struct ata_taskfile *tf);
789 static void nv_adma_tf_read(struct ata_port *ap, struct ata_taskfile *tf) in nv_adma_tf_read() argument
800 ata_sff_tf_read(ap, tf); in nv_adma_tf_read()
803 static unsigned int nv_adma_tf_to_cpb(struct ata_taskfile *tf, __le16 *cpb) in nv_adma_tf_to_cpb() argument
807 if (tf->flags & ATA_TFLAG_ISADDR) { in nv_adma_tf_to_cpb()
808 if (tf->flags & ATA_TFLAG_LBA48) { in nv_adma_tf_to_cpb()
809 cpb[idx++] = cpu_to_le16((ATA_REG_ERR << 8) | tf->hob_feature | WNB); in nv_adma_tf_to_cpb()
810 cpb[idx++] = cpu_to_le16((ATA_REG_NSECT << 8) | tf->hob_nsect); in nv_adma_tf_to_cpb()
811 cpb[idx++] = cpu_to_le16((ATA_REG_LBAL << 8) | tf->hob_lbal); in nv_adma_tf_to_cpb()
812 cpb[idx++] = cpu_to_le16((ATA_REG_LBAM << 8) | tf->hob_lbam); in nv_adma_tf_to_cpb()
813 cpb[idx++] = cpu_to_le16((ATA_REG_LBAH << 8) | tf->hob_lbah); in nv_adma_tf_to_cpb()
814 cpb[idx++] = cpu_to_le16((ATA_REG_ERR << 8) | tf->feature); in nv_adma_tf_to_cpb()
816 cpb[idx++] = cpu_to_le16((ATA_REG_ERR << 8) | tf->feature | WNB); in nv_adma_tf_to_cpb()
818 cpb[idx++] = cpu_to_le16((ATA_REG_NSECT << 8) | tf->nsect); in nv_adma_tf_to_cpb()
819 cpb[idx++] = cpu_to_le16((ATA_REG_LBAL << 8) | tf->lbal); in nv_adma_tf_to_cpb()
820 cpb[idx++] = cpu_to_le16((ATA_REG_LBAM << 8) | tf->lbam); in nv_adma_tf_to_cpb()
821 cpb[idx++] = cpu_to_le16((ATA_REG_LBAH << 8) | tf->lbah); in nv_adma_tf_to_cpb()
824 if (tf->flags & ATA_TFLAG_DEVICE) in nv_adma_tf_to_cpb()
825 cpb[idx++] = cpu_to_le16((ATA_REG_DEVICE << 8) | tf->device); in nv_adma_tf_to_cpb()
827 cpb[idx++] = cpu_to_le16((ATA_REG_CMD << 8) | tf->command | CMDEND); in nv_adma_tf_to_cpb()
895 if (unlikely(!qc || (qc->tf.flags & ATA_TFLAG_POLLING))) { in nv_host_intr()
1335 if (qc->tf.flags & ATA_TFLAG_WRITE) in nv_adma_fill_aprd()
1375 (qc->tf.flags & ATA_TFLAG_POLLING)) in nv_adma_use_reg_mode()
1379 (qc->tf.protocol == ATA_PROT_NODATA)) in nv_adma_use_reg_mode()
1410 if (qc->tf.protocol == ATA_PROT_NCQ) in nv_adma_qc_prep()
1415 nv_adma_tf_to_cpb(&qc->tf, cpb->tf); in nv_adma_qc_prep()
1435 int curr_ncq = (qc->tf.protocol == ATA_PROT_NCQ); in nv_adma_qc_issue()
1442 if (unlikely(qc->tf.protocol == ATA_PROT_NCQ && in nv_adma_qc_issue()
1490 if (qc && (!(qc->tf.flags & ATA_TFLAG_POLLING))) { in nv_generic_interrupt()
1994 if (qc->tf.protocol != ATA_PROT_NCQ) { in nv_swncq_qc_prep()
2057 ap->ops->sff_tf_load(ap, &qc->tf); /* load tf registers */ in nv_swncq_issue_atacmd()
2058 ap->ops->sff_exec_command(ap, &qc->tf); in nv_swncq_issue_atacmd()
2070 if (qc->tf.protocol != ATA_PROT_NCQ) in nv_swncq_qc_issue()
2207 rw = qc->tf.flags & ATA_TFLAG_WRITE; in nv_swncq_dmafis()