Lines Matching refs:ch
116 struct ata_channel *ch = device_get_softc(dev);
120 ch->flags |= ATA_CHECKS_CABLE;
121 ch->flags |= ATA_NO_ATAPI_DMA;
130 struct ata_channel *ch = device_get_softc(dev);
131 int devno = (ch->unit << 1) + target;
143 (ch->unit ? (1<<3) : (1<<2)))) {
154 0x56 + (ch->unit << 2) + target,
166 pci_write_config(parent, 0x54 + (ch->unit << 2),
167 max(timings[ch->unit << 1], timings[(ch->unit << 1) + 1]), 1);