Lines Matching defs:ch
113 struct ata_channel *ch = device_get_softc(dev);
119 ch->hw.status = ata_acard_status;
120 ch->flags |= ATA_NO_ATAPI_DMA;
127 struct ata_channel *ch = device_get_softc(dev);
129 if (ch->dma.flags & ATA_DMA_ACTIVE) {
130 int bmstat = ATA_IDX_INB(ch, ATA_BMSTAT_PORT) & ATA_BMSTAT_MASK;
135 ATA_IDX_OUTB(ch, ATA_BMSTAT_PORT, bmstat & ~ATA_BMSTAT_ERROR);
137 ATA_IDX_OUTB(ch, ATA_BMCMD_PORT,
138 ATA_IDX_INB(ch, ATA_BMCMD_PORT) & ~ATA_BMCMD_START_STOP);
141 if (ATA_IDX_INB(ch, ATA_ALTSTAT) & ATA_S_BUSY) {
143 if (ATA_IDX_INB(ch, ATA_ALTSTAT) & ATA_S_BUSY)
154 struct ata_channel *ch = device_get_softc(dev);
155 int devno = (ch->unit << 1) + target;
178 struct ata_channel *ch = device_get_softc(dev);
179 int devno = (ch->unit << 1) + target;