Lines Matching refs:gtf
403 static int ata_dev_get_GTF(struct ata_device *dev, struct ata_acpi_gtf **gtf) in ata_dev_get_GTF() argument
458 if (gtf) { in ata_dev_get_GTF()
459 *gtf = (void *)out_obj->buffer.pointer; in ata_dev_get_GTF()
461 *gtf, rc); in ata_dev_get_GTF()
542 const struct ata_acpi_gtf *gtf, in ata_acpi_gtf_to_tf() argument
549 tf->error = gtf->tf[0]; /* 0x1f1 */ in ata_acpi_gtf_to_tf()
550 tf->nsect = gtf->tf[1]; /* 0x1f2 */ in ata_acpi_gtf_to_tf()
551 tf->lbal = gtf->tf[2]; /* 0x1f3 */ in ata_acpi_gtf_to_tf()
552 tf->lbam = gtf->tf[3]; /* 0x1f4 */ in ata_acpi_gtf_to_tf()
553 tf->lbah = gtf->tf[4]; /* 0x1f5 */ in ata_acpi_gtf_to_tf()
554 tf->device = gtf->tf[5]; /* 0x1f6 */ in ata_acpi_gtf_to_tf()
555 tf->status = gtf->tf[6]; /* 0x1f7 */ in ata_acpi_gtf_to_tf()
639 const struct ata_acpi_gtf *gtf, in ata_acpi_run_tf() argument
648 if ((gtf->tf[0] == 0) && (gtf->tf[1] == 0) && (gtf->tf[2] == 0) in ata_acpi_run_tf()
649 && (gtf->tf[3] == 0) && (gtf->tf[4] == 0) && (gtf->tf[5] == 0) in ata_acpi_run_tf()
650 && (gtf->tf[6] == 0)) in ata_acpi_run_tf()
653 ata_acpi_gtf_to_tf(dev, gtf, &tf); in ata_acpi_run_tf()
723 struct ata_acpi_gtf *gtf = NULL, *pgtf = NULL; in ata_acpi_exec_tfs() local
727 rc = ata_dev_get_GTF(dev, >f); in ata_acpi_exec_tfs()
733 for (i = 0; i < gtf_count; i++, gtf++) { in ata_acpi_exec_tfs()
734 rc = ata_acpi_run_tf(dev, gtf, pgtf); in ata_acpi_exec_tfs()
739 pgtf = gtf; in ata_acpi_exec_tfs()