Lines Matching refs:ctlr
62 ahci_mv_regret_config(struct ahci_controller *ctlr) in ahci_mv_regret_config() argument
70 ATA_OUTL(ctlr->r_mem, AHCI_VENDOR_SPECIFIC_0_ADDR, 0x4); in ahci_mv_regret_config()
71 ATA_OUTL(ctlr->r_mem, AHCI_VENDOR_SPECIFIC_0_DATA, 0x80); in ahci_mv_regret_config()
92 struct ahci_controller *ctlr; in ahci_mv_fdt_attach() local
95 ctlr = device_get_softc(dev); in ahci_mv_fdt_attach()
96 ctlr->dev = dev; in ahci_mv_fdt_attach()
97 ctlr->r_rid = 0; in ahci_mv_fdt_attach()
98 ctlr->quirks = AHCI_Q_2CH; in ahci_mv_fdt_attach()
99 ctlr->numirqs = 1; in ahci_mv_fdt_attach()
102 ctlr->quirks |= AHCI_Q_MRVL_SR_DEL; in ahci_mv_fdt_attach()
105 ctlr->r_mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in ahci_mv_fdt_attach()
106 &ctlr->r_rid, RF_ACTIVE | RF_SHAREABLE); in ahci_mv_fdt_attach()
107 if (ctlr->r_mem == NULL) { in ahci_mv_fdt_attach()
116 bus_release_resource(dev, SYS_RES_MEMORY, ctlr->r_rid, ctlr->r_mem); in ahci_mv_fdt_attach()
120 ahci_mv_regret_config(ctlr); in ahci_mv_fdt_attach()