gtm
struct gtm;
struct gtm *gtm;
extern struct gtm_timer *gtm_get_specific_timer16(struct gtm *gtm,
spin_unlock_irq(>m->lock);
struct gtm_timer *gtm_get_specific_timer16(struct gtm *gtm,
spin_lock_irq(>m->lock);
if (gtm->timers[timer].requested)
ret = >m->timers[timer];
spin_unlock_irq(>m->lock);
spin_lock_irq(&tmr->gtm->lock);
spin_unlock_irq(&tmr->gtm->lock);
struct gtm *gtm = tmr->gtm;
int num = tmr - >m->timers[0];
prescaler = gtm->clock / frequency;
spin_lock_irqsave(>m->lock, flags);
spin_unlock_irqrestore(>m->lock, flags);
struct gtm *gtm = tmr->gtm;
int num = tmr - >m->timers[0];
spin_lock_irqsave(>m->lock, flags);
spin_unlock_irqrestore(>m->lock, flags);
struct gtm *gtm;
gtm = kzalloc_obj(*gtm);
if (!gtm) {
spin_lock_init(>m->lock);
gtm->clock = *clock;
for (i = 0; i < ARRAY_SIZE(gtm->timers); i++) {
gtm->timers[i].irq = irq;
gtm->timers[i].gtm = gtm;
gtm->regs = of_iomap(np, 0);
if (!gtm->regs) {
gtm_set_shortcuts(np, gtm->timers, gtm->regs);
list_add(>m->list_node, >ms);
np->data = gtm;
kfree(gtm);
struct gtm *gtm;
list_for_each_entry(gtm, >ms, list_node) {
spin_lock_irq(>m->lock);
for (i = 0; i < ARRAY_SIZE(gtm->timers); i++) {
if (!gtm->timers[i].requested) {
gtm->timers[i].requested = true;
spin_unlock_irq(>m->lock);
return >m->timers[i];
const struct ata_acpi_gtm *gtm = ata_acpi_init_gtm(ap);
if (ACPI_HANDLE(&ap->tdev) && gtm)
ata_acpi_stm(ap, gtm);
int ata_acpi_gtm(struct ata_port *ap, struct ata_acpi_gtm *gtm)
memcpy(gtm, out_obj->buffer.pointer, sizeof(struct ata_acpi_gtm));
const struct ata_acpi_gtm *gtm)
if (!(gtm->flags & 0x10))
mode = ata_timing_cycle2mode(ATA_SHIFT_PIO, gtm->drive[unit].pio);
if (!(gtm->flags & (1 << (2 * unit))))
mode = ata_timing_cycle2mode(type, gtm->drive[unit].dma);
const struct ata_acpi_gtm *gtm = ata_acpi_init_gtm(ap);
if (!gtm)
xfer_mask = ata_acpi_gtm_xfermask(dev, gtm);
const struct ata_acpi_gtm *gtm = ata_acpi_init_gtm(ap);
if (ACPI_HANDLE(&ap->tdev) && gtm) {
ata_acpi_stm(ap, gtm);
if (!(acpi->gtm.flags & 0x10))
acpi->gtm.drive[unit].pio = t->cycle;
ata_acpi_stm(ap, &acpi->gtm);
ata_acpi_gtm(ap, &acpi->gtm);
if (!(acpi->gtm.flags & 0x10))
acpi->gtm.drive[unit].dma = t->udma;
acpi->gtm.flags |= (1 << (2 * unit));
acpi->gtm.drive[unit].dma = t->cycle;
acpi->gtm.flags &= ~(1 << (2 * unit));
ata_acpi_stm(ap, &acpi->gtm);
ata_acpi_gtm(ap, &acpi->gtm);
if (acpi->gtm.flags & 0x10)
struct ata_acpi_gtm gtm;
if (ACPI_HANDLE(&ap->tdev) == NULL || ata_acpi_gtm(ap, &acpi->gtm) < 0)
probe = acpi->gtm;
const struct ata_acpi_gtm *gtm;
gtm = ata_acpi_init_gtm(ap);
if (gtm) {
acpi_limit = ata_acpi_gtm_xfermask(dev, gtm);
gtm->drive[0].dma, gtm->drive[1].dma, gtm->flags);
const struct ata_acpi_gtm *gtm);
const struct ata_acpi_gtm *gtm)