Lines Matching defs:gtm
267 const struct ata_acpi_gtm *gtm = ata_acpi_init_gtm(ap);
269 if (ACPI_HANDLE(&ap->tdev) && gtm)
270 ata_acpi_stm(ap, gtm);
277 * @gtm: out parameter for _GTM result
279 * Evaluate _GTM and store the result in @gtm.
287 int ata_acpi_gtm(struct ata_port *ap, struct ata_acpi_gtm *gtm)
325 memcpy(gtm, out_obj->buffer.pointer, sizeof(struct ata_acpi_gtm));
473 * @gtm: GTM parameter to use
475 * Determine xfermask for @dev from @gtm.
484 const struct ata_acpi_gtm *gtm)
493 if (!(gtm->flags & 0x10))
497 mode = ata_timing_cycle2mode(ATA_SHIFT_PIO, gtm->drive[unit].pio);
504 if (!(gtm->flags & (1 << (2 * unit))))
509 mode = ata_timing_cycle2mode(type, gtm->drive[unit].dma);
519 * @gtm: GTM data to use
521 * Return 1 if the @gtm indicates the BIOS selected an 80wire mode.
523 int ata_acpi_cbl_80wire(struct ata_port *ap, const struct ata_acpi_gtm *gtm)
530 xfer_mask = ata_acpi_gtm_xfermask(dev, gtm);
814 const struct ata_acpi_gtm *gtm = ata_acpi_init_gtm(ap);
817 if (ACPI_HANDLE(&ap->tdev) && gtm) {
821 ata_acpi_stm(ap, gtm);