Lines Matching defs:ch
251 struct ata_channel *ch = device_get_softc(dev);
257 ch->r_io[ATA_SSTATUS].res = ctlr->r_res2;
258 ch->r_io[ATA_SSTATUS].offset = (ch->unit << 6);
259 ch->r_io[ATA_SERROR].res = ctlr->r_res2;
260 ch->r_io[ATA_SERROR].offset = 0x04 + (ch->unit << 6);
261 ch->r_io[ATA_SCONTROL].res = ctlr->r_res2;
262 ch->r_io[ATA_SCONTROL].offset = 0x08 + (ch->unit << 6);
264 ch->hw.status = ata_nvidia_status;
265 ch->flags |= ATA_NO_SLAVE;
266 ch->flags |= ATA_SATA;
273 struct ata_channel *ch = device_get_softc(dev);
277 ch->flags |= ATA_SATA;
285 struct ata_channel *ch = device_get_softc(dev);
287 int shift = ch->unit << (ctlr->chip->cfg1 & NVQ ? 4 : 2);
313 struct ata_channel *ch = device_get_softc(dev);
318 ch->devices = 0;
326 struct ata_channel *ch = device_get_softc(dev);
327 int devno = (ch->unit << 1) + target;