Lines Matching refs:chip
131 if (!(ctlr->chip = ata_find_chip(dev, ids, -99))) in ata_via_probe()
135 if (!(ctlr->chip = ata_match_chip(dev, new_ids))) in ata_via_probe()
153 if (ctlr->chip->cfg2 & VIASATA) { in ata_via_chipinit()
161 if (ctlr->chip->max_dma >= ATA_SA150) { in ata_via_chipinit()
170 if (ctlr->chip->cfg2 & VIABAR) { in ata_via_chipinit()
180 if (ctlr->chip->cfg2 & VIACLK) in ata_via_chipinit()
184 if (ctlr->chip->cfg2 & VIABUG) in ata_via_chipinit()
213 if (ctlr->chip->cfg2 & VIABAR) { in ata_via_ch_attach()
248 ch->r_io[ATA_SSTATUS].offset = (ch->unit << ctlr->chip->cfg1); in ata_via_ch_attach()
250 ch->r_io[ATA_SERROR].offset = 0x04 + (ch->unit << ctlr->chip->cfg1); in ata_via_ch_attach()
252 ch->r_io[ATA_SCONTROL].offset = 0x08 + (ch->unit << ctlr->chip->cfg1); in ata_via_ch_attach()
270 if (ctlr->chip->cfg2 & VIABAR) { in ata_via_ch_detach()
294 if ((ctlr->chip->cfg2 & VIABAR) && (ch->unit > 1)) in ata_via_reset()
319 if ((ctlr->chip->cfg2 & VIABAR) && (ch->unit > 1)) { in ata_via_new_setmode()
358 mode = min(mode, ctlr->chip->max_dma); in ata_via_old_setmode()
362 modes[ctlr->chip->cfg1][mode & ATA_MODE_MASK], 1); in ata_via_old_setmode()