Lines Matching refs:ctlr
87 struct ata_pci_controller *ctlr = device_get_softc(dev); in ata_marvell_probe() local
102 if (!(ctlr->chip = ata_match_chip(dev, ids))) in ata_marvell_probe()
107 switch (ctlr->chip->cfg2) { in ata_marvell_probe()
109 ctlr->chipinit = ata_marvell_chipinit; in ata_marvell_probe()
112 ctlr->chipinit = ata_marvell_dummy_chipinit; in ata_marvell_probe()
121 struct ata_pci_controller *ctlr = device_get_softc(dev); in ata_marvell_chipinit() local
127 if (ctlr->chip->cfg1) { in ata_marvell_chipinit()
134 ctlr->ch_attach = ata_marvell_ch_attach; in ata_marvell_chipinit()
135 ctlr->ch_detach = ata_pci_ch_detach; in ata_marvell_chipinit()
136 ctlr->reset = ata_generic_reset; in ata_marvell_chipinit()
137 ctlr->setmode = ata_marvell_setmode; in ata_marvell_chipinit()
138 ctlr->channels = 1; in ata_marvell_chipinit()
158 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); in ata_marvell_setmode() local
161 mode = min(mode, ctlr->chip->max_dma); in ata_marvell_setmode()
175 struct ata_pci_controller *ctlr = device_get_softc(dev); in ata_marvell_dummy_chipinit() local
177 ctlr->channels = 0; in ata_marvell_dummy_chipinit()