Lines Matching refs:r_ecc
172 struct resource *r_ecc; member
201 if (!ecc_inited && ctrl->r_ecc == NULL) in ahci_fsl_fdt_ecc_init()
204 ATA_OUTL(ctrl->r_ecc, AHCI_FSL_REG_ECC, in ahci_fsl_fdt_ecc_init()
210 if (!ecc_inited && ctrl->r_ecc == NULL) in ahci_fsl_fdt_ecc_init()
213 val = ATA_INL(ctrl->r_ecc, AHCI_FSL_REG_ECC); in ahci_fsl_fdt_ecc_init()
215 ATA_OUTL(ctrl->r_ecc, AHCI_FSL_REG_ECC, val); in ahci_fsl_fdt_ecc_init()
222 if (!ecc_inited && ctrl->r_ecc == NULL) in ahci_fsl_fdt_ecc_init()
226 val = ATA_INL(ctrl->r_ecc, AHCI_FSL_REG_ECC); in ahci_fsl_fdt_ecc_init()
228 ATA_OUTL(ctrl->r_ecc, AHCI_FSL_REG_ECC, val); in ahci_fsl_fdt_ecc_init()
342 ctlr->r_ecc = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in ahci_fsl_fdt_attach()
344 if (!ctlr->r_ecc) { 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()
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()