Lines Matching refs:gtm
300 const struct ata_acpi_gtm *gtm = ata_acpi_init_gtm(ap);
302 if (ap->acpi_handle && gtm)
303 ata_acpi_stm(ap, gtm);
310 * @gtm: out parameter for _GTM result
312 * Evaluate _GTM and store the result in @gtm.
320 int ata_acpi_gtm(struct ata_port *ap, struct ata_acpi_gtm *gtm)
357 memcpy(gtm, out_obj->buffer.pointer, sizeof(struct ata_acpi_gtm));
516 * @gtm: GTM parameter to use
518 * Determine xfermask for @dev from @gtm.
527 const struct ata_acpi_gtm *gtm)
536 if (!(gtm->flags & 0x10))
540 mode = ata_timing_cycle2mode(ATA_SHIFT_PIO, gtm->drive[unit].pio);
547 if (!(gtm->flags & (1 << (2 * unit))))
552 mode = ata_timing_cycle2mode(type, gtm->drive[unit].dma);
562 * @gtm: GTM data to use
564 * Return 1 if the @gtm indicates the BIOS selected an 80wire mode.
566 int ata_acpi_cbl_80wire(struct ata_port *ap, const struct ata_acpi_gtm *gtm)
573 xfer_mask = ata_acpi_gtm_xfermask(dev, gtm);
877 const struct ata_acpi_gtm *gtm = ata_acpi_init_gtm(ap);
880 if (ap->acpi_handle && gtm) {
884 ata_acpi_stm(ap, gtm);