Lines Matching defs:ctlr
69 struct ata_pci_controller *ctlr = device_get_softc(dev);
81 if (!(ctlr->chip = ata_match_chip(dev, ids)))
85 ctlr->chipinit = ata_acard_chipinit;
92 struct ata_pci_controller *ctlr = device_get_softc(dev);
97 ctlr->ch_attach = ata_acard_ch_attach;
98 ctlr->ch_detach = ata_pci_ch_detach;
99 if (ctlr->chip->cfg1 == ATP_OLD) {
100 ctlr->setmode = ata_acard_850_setmode;
102 ctlr->channels = 1;
106 ctlr->setmode = ata_acard_86X_setmode;
153 struct ata_pci_controller *ctlr = device_get_softc(parent);
157 mode = min(mode, ctlr->chip->max_dma);
177 struct ata_pci_controller *ctlr = device_get_softc(parent);
181 mode = min(mode, ctlr->chip->max_dma);