Lines Matching refs:tf
33 u8 tf[REGS_PER_GTF]; /* regs. 0x1f1 - 0x1f7 */ member
551 struct ata_taskfile *tf) in ata_acpi_gtf_to_tf() argument
553 ata_tf_init(dev, tf); in ata_acpi_gtf_to_tf()
555 tf->flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE; in ata_acpi_gtf_to_tf()
556 tf->protocol = ATA_PROT_NODATA; in ata_acpi_gtf_to_tf()
557 tf->feature = gtf->tf[0]; /* 0x1f1 */ in ata_acpi_gtf_to_tf()
558 tf->nsect = gtf->tf[1]; /* 0x1f2 */ in ata_acpi_gtf_to_tf()
559 tf->lbal = gtf->tf[2]; /* 0x1f3 */ in ata_acpi_gtf_to_tf()
560 tf->lbam = gtf->tf[3]; /* 0x1f4 */ in ata_acpi_gtf_to_tf()
561 tf->lbah = gtf->tf[4]; /* 0x1f5 */ in ata_acpi_gtf_to_tf()
562 tf->device = gtf->tf[5]; /* 0x1f6 */ in ata_acpi_gtf_to_tf()
563 tf->command = gtf->tf[6]; /* 0x1f7 */ in ata_acpi_gtf_to_tf()
567 const struct ata_taskfile *tf, in ata_acpi_filter_tf() argument
574 if (tf->command == ATA_CMD_SET_FEATURES && in ata_acpi_filter_tf()
575 tf->feature == SETFEATURES_XFER) in ata_acpi_filter_tf()
585 if (tf->command == ATA_CMD_CONF_OVERLAY && in ata_acpi_filter_tf()
586 tf->feature == ATA_DCO_FREEZE_LOCK) in ata_acpi_filter_tf()
590 if (tf->command == ATA_CMD_SEC_FREEZE_LOCK) in ata_acpi_filter_tf()
595 tf->command == ATA_CMD_SET_MAX && in ata_acpi_filter_tf()
596 (tf->feature == ATA_SET_MAX_LOCK || in ata_acpi_filter_tf()
597 tf->feature == ATA_SET_MAX_FREEZE_LOCK)) in ata_acpi_filter_tf()
601 if (tf->command == ATA_CMD_SET_FEATURES && in ata_acpi_filter_tf()
602 tf->feature == SETFEATURES_SATA_ENABLE) { in ata_acpi_filter_tf()
605 tf->nsect == SATA_DIPM) in ata_acpi_filter_tf()
610 (tf->nsect == SATA_FPDMA_OFFSET || in ata_acpi_filter_tf()
611 tf->nsect == SATA_FPDMA_IN_ORDER)) in ata_acpi_filter_tf()
616 tf->nsect == SATA_FPDMA_AA) in ata_acpi_filter_tf()
651 struct ata_taskfile tf, ptf, rtf; in ata_acpi_run_tf() local
658 if ((gtf->tf[0] == 0) && (gtf->tf[1] == 0) && (gtf->tf[2] == 0) in ata_acpi_run_tf()
659 && (gtf->tf[3] == 0) && (gtf->tf[4] == 0) && (gtf->tf[5] == 0) in ata_acpi_run_tf()
660 && (gtf->tf[6] == 0)) in ata_acpi_run_tf()
663 ata_acpi_gtf_to_tf(dev, gtf, &tf); in ata_acpi_run_tf()
669 if (!ata_acpi_filter_tf(dev, &tf, pptf)) { in ata_acpi_run_tf()
670 rtf = tf; in ata_acpi_run_tf()
702 descr = ata_get_cmd_descript(tf.command); in ata_acpi_run_tf()
706 tf.command, tf.feature, tf.nsect, tf.lbal, in ata_acpi_run_tf()
707 tf.lbam, tf.lbah, tf.device, in ata_acpi_run_tf()