Lines Matching refs: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));
481 * @gtm: GTM parameter to use
483 * Determine xfermask for @dev from @gtm.
492 const struct ata_acpi_gtm *gtm)
501 if (!(gtm->flags & 0x10))
505 mode = ata_timing_cycle2mode(ATA_SHIFT_PIO, gtm->drive[unit].pio);
512 if (!(gtm->flags & (1 << (2 * unit))))
517 mode = ata_timing_cycle2mode(type, gtm->drive[unit].dma);
527 * @gtm: GTM data to use
529 * Return 1 if the @gtm indicates the BIOS selected an 80wire mode.
531 int ata_acpi_cbl_80wire(struct ata_port *ap, const struct ata_acpi_gtm *gtm)
538 xfer_mask = ata_acpi_gtm_xfermask(dev, gtm);
841 const struct ata_acpi_gtm *gtm = ata_acpi_init_gtm(ap);
844 if (ACPI_HANDLE(&ap->tdev) && gtm) {
848 ata_acpi_stm(ap, gtm);