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);
526 const struct ata_acpi_gtm *gtm = ata_acpi_init_gtm(ap);
528 if (!gtm)
534 xfer_mask = ata_acpi_gtm_xfermask(dev, gtm);
822 const struct ata_acpi_gtm *gtm = ata_acpi_init_gtm(ap);
825 if (ACPI_HANDLE(&ap->tdev) && gtm) {
829 ata_acpi_stm(ap, gtm);