Lines Matching refs:al_mc
77 struct al_mc_edac *al_mc = mci->pvt_info; in handle_ce() local
83 eccerrcnt = readl_relaxed(al_mc->mmio_base + AL_MC_ECC_ERR_COUNT); in handle_ce()
88 ecccaddr0 = readl_relaxed(al_mc->mmio_base + AL_MC_ECC_CE_ADDR0); in handle_ce()
89 ecccaddr1 = readl_relaxed(al_mc->mmio_base + AL_MC_ECC_CE_ADDR1); in handle_ce()
90 ecccsyn0 = readl_relaxed(al_mc->mmio_base + AL_MC_ECC_CE_SYND0); in handle_ce()
91 ecccsyn1 = readl_relaxed(al_mc->mmio_base + AL_MC_ECC_CE_SYND1); in handle_ce()
92 ecccsyn2 = readl_relaxed(al_mc->mmio_base + AL_MC_ECC_CE_SYND2); in handle_ce()
95 al_mc->mmio_base + AL_MC_ECC_CLEAR); in handle_ce()
111 spin_lock_irqsave(&al_mc->lock, flags); in handle_ce()
114 spin_unlock_irqrestore(&al_mc->lock, flags); in handle_ce()
122 struct al_mc_edac *al_mc = mci->pvt_info; in handle_ue() local
128 eccerrcnt = readl_relaxed(al_mc->mmio_base + AL_MC_ECC_ERR_COUNT); in handle_ue()
133 eccuaddr0 = readl_relaxed(al_mc->mmio_base + AL_MC_ECC_UE_ADDR0); in handle_ue()
134 eccuaddr1 = readl_relaxed(al_mc->mmio_base + AL_MC_ECC_UE_ADDR1); in handle_ue()
135 eccusyn0 = readl_relaxed(al_mc->mmio_base + AL_MC_ECC_UE_SYND0); in handle_ue()
136 eccusyn1 = readl_relaxed(al_mc->mmio_base + AL_MC_ECC_UE_SYND1); in handle_ue()
137 eccusyn2 = readl_relaxed(al_mc->mmio_base + AL_MC_ECC_UE_SYND2); in handle_ue()
140 al_mc->mmio_base + AL_MC_ECC_CLEAR); in handle_ue()
156 spin_lock_irqsave(&al_mc->lock, flags); in handle_ue()
159 spin_unlock_irqrestore(&al_mc->lock, flags); in handle_ue()
166 struct al_mc_edac *al_mc = mci->pvt_info; in al_mc_edac_check() local
168 if (al_mc->irq_ue <= 0) in al_mc_edac_check()
171 if (al_mc->irq_ce <= 0) in al_mc_edac_check()
221 struct al_mc_edac *al_mc; in al_mc_edac_probe() local
246 al_mc = mci->pvt_info; in al_mc_edac_probe()
248 al_mc->mmio_base = mmio_base; in al_mc_edac_probe()
250 al_mc->irq_ue = of_irq_get_byname(pdev->dev.of_node, "ue"); in al_mc_edac_probe()
251 if (al_mc->irq_ue <= 0) in al_mc_edac_probe()
255 al_mc->irq_ce = of_irq_get_byname(pdev->dev.of_node, "ce"); in al_mc_edac_probe()
256 if (al_mc->irq_ce <= 0) in al_mc_edac_probe()
266 if (al_mc->irq_ue <= 0 || al_mc->irq_ce <= 0) { in al_mc_edac_probe()
273 spin_lock_init(&al_mc->lock); in al_mc_edac_probe()
298 if (al_mc->irq_ue > 0) { in al_mc_edac_probe()
300 al_mc->irq_ue, in al_mc_edac_probe()
308 al_mc->irq_ue, ret); in al_mc_edac_probe()
313 if (al_mc->irq_ce > 0) { in al_mc_edac_probe()
315 al_mc->irq_ce, in al_mc_edac_probe()
323 al_mc->irq_ce, ret); in al_mc_edac_probe()