Lines Matching refs:ctlr
170 struct ahci_controller ctlr; /* Must be the first field. */ member
245 ahci = &ctrl->ctlr; in ahci_fsl_fdt_phy_init()
260 if (ctrl->ctlr.dma_coherent) in ahci_fsl_fdt_phy_init()
273 if (ctrl->ctlr.dma_coherent) in ahci_fsl_fdt_phy_init()
295 struct ahci_fsl_fdt_controller *ctlr; in ahci_fsl_fdt_attach() local
302 ctlr = device_get_softc(dev); in ahci_fsl_fdt_attach()
303 ctlr->soc_type = in ahci_fsl_fdt_attach()
305 ahci = &ctlr->ctlr; in ahci_fsl_fdt_attach()
340 &ctlr->r_ecc_rid); in ahci_fsl_fdt_attach()
342 ctlr->r_ecc = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in ahci_fsl_fdt_attach()
343 &ctlr->r_ecc_rid, RF_ACTIVE| RF_SHAREABLE); in ahci_fsl_fdt_attach()
344 if (!ctlr->r_ecc) { in ahci_fsl_fdt_attach()
356 ret = ahci_fsl_fdt_ecc_init(ctlr); in ahci_fsl_fdt_attach()
364 ahci_fsl_fdt_phy_init(ctlr); in ahci_fsl_fdt_attach()
382 if (ctlr->r_ecc) in ahci_fsl_fdt_attach()
383 bus_free_resource(dev, SYS_RES_MEMORY, ctlr->r_ecc); in ahci_fsl_fdt_attach()
390 struct ahci_fsl_fdt_controller *ctlr; in ahci_fsl_fdt_detach() local
392 ctlr = device_get_softc(dev); in ahci_fsl_fdt_detach()
393 if (ctlr->r_ecc) in ahci_fsl_fdt_detach()
394 bus_free_resource(dev, SYS_RES_MEMORY, ctlr->r_ecc); in ahci_fsl_fdt_detach()