Lines Matching refs:ctlr

76     struct ata_pci_controller *ctlr = device_get_softc(dev);
93 if (!(ctlr->chip = ata_match_chip(dev, ids)))
97 ctlr->chipinit = ata_ali_chipinit;
98 ctlr->chipdeinit = ata_ali_chipdeinit;
105 struct ata_pci_controller *ctlr = device_get_softc(dev);
112 switch (ctlr->chip->cfg2) {
114 ctlr->channels = ctlr->chip->cfg1;
115 ctlr->ch_attach = ata_ali_sata_ch_attach;
116 ctlr->ch_detach = ata_pci_ch_detach;
117 ctlr->setmode = ata_sata_setmode;
118 ctlr->getrev = ata_sata_getrev;
135 ctlr->chipset_data = res;
143 if (ctlr->chip->chiprev < 0xc7)
149 (ctlr->chip->chiprev >= 0xc7 ? 0x03 : 0x01), 1);
152 if (ctlr->chip->chiprev <= 0xc4)
156 ctlr->ch_attach = ata_ali_ch_attach;
157 ctlr->ch_detach = ata_pci_ch_detach;
158 ctlr->reset = ata_ali_reset;
159 ctlr->setmode = ata_ali_setmode;
165 ctlr->setmode = ata_ali_setmode;
174 struct ata_pci_controller *ctlr = device_get_softc(dev);
178 if (ctlr->chip->cfg2 == ALI_SATA) {
179 res = ctlr->chipset_data;
187 ctlr->chipset_data = NULL;
195 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev));
202 if (ctlr->chip->cfg2 & ALI_NEW && ctlr->chip->chiprev < 0xc7)
205 if (ctlr->chip->chiprev <= 0xc4) {
210 if (ctlr->chip->cfg2 & ALI_NEW)
220 struct ata_pci_controller *ctlr = device_get_softc(parent);
227 res = ctlr->chipset_data;
244 if (ctlr->r_res1) {
246 ch->r_io[i].res = ctlr->r_res1;
261 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev));
273 if (ctlr->chip->chiprev == 0xc3 || ctlr->chip->chiprev == 0xc2) {
295 struct ata_pci_controller *ctlr = device_get_softc(parent);
306 mode = min(mode, ctlr->chip->max_dma);
308 if (ctlr->chip->cfg2 & ALI_NEW && ctlr->chip->chiprev < 0xc7) {
315 if (ctlr->chip->cfg2 & ALI_OLD) {