Lines Matching refs:ctlr
72 struct ata_pci_controller *ctlr = device_get_softc(dev); in ata_highpoint_probe() local
102 ctlr->chip = idx; in ata_highpoint_probe()
103 ctlr->chipinit = ata_highpoint_chipinit; in ata_highpoint_probe()
110 struct ata_pci_controller *ctlr = device_get_softc(dev); in ata_highpoint_chipinit() local
115 if (ctlr->chip->cfg2 == HPT_OLD) { in ata_highpoint_chipinit()
128 if (ctlr->chip->cfg1 < HPT_372) in ata_highpoint_chipinit()
134 ctlr->ch_attach = ata_highpoint_ch_attach; in ata_highpoint_chipinit()
135 ctlr->ch_detach = ata_pci_ch_detach; in ata_highpoint_chipinit()
136 ctlr->setmode = ata_highpoint_setmode; in ata_highpoint_chipinit()
143 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); in ata_highpoint_ch_attach() local
151 if (ctlr->chip->cfg1 == HPT_366) in ata_highpoint_ch_attach()
160 struct ata_pci_controller *ctlr = device_get_softc(parent); in ata_highpoint_setmode() local
182 mode = min(mode, ctlr->chip->max_dma); in ata_highpoint_setmode()
191 timings33[ata_mode2idx(mode)][ctlr->chip->cfg1], 4); in ata_highpoint_setmode()
199 struct ata_pci_controller *ctlr = device_get_softc(parent); in ata_highpoint_check_80pin() local
203 if (ctlr->chip->cfg1 == HPT_374 && pci_get_function(parent) == 1) { in ata_highpoint_check_80pin()