Lines Matching full:mci
74 static int handle_ce(struct mem_ctl_info *mci) in handle_ce() argument
77 struct al_mc_edac *al_mc = mci->pvt_info; in handle_ce()
97 dev_dbg(mci->pdev, "eccuaddr0=0x%08x eccuaddr1=0x%08x\n", in handle_ce()
112 edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, in handle_ce()
113 ce_count, 0, 0, 0, 0, 0, -1, mci->ctl_name, msg); in handle_ce()
119 static int handle_ue(struct mem_ctl_info *mci) in handle_ue() argument
122 struct al_mc_edac *al_mc = mci->pvt_info; in handle_ue()
142 dev_dbg(mci->pdev, "eccuaddr0=0x%08x eccuaddr1=0x%08x\n", in handle_ue()
157 edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, in handle_ue()
158 ue_count, 0, 0, 0, 0, 0, -1, mci->ctl_name, msg); in handle_ue()
164 static void al_mc_edac_check(struct mem_ctl_info *mci) in al_mc_edac_check() argument
166 struct al_mc_edac *al_mc = mci->pvt_info; in al_mc_edac_check()
169 handle_ue(mci); in al_mc_edac_check()
172 handle_ce(mci); in al_mc_edac_check()
178 struct mem_ctl_info *mci = platform_get_drvdata(pdev); in al_mc_edac_irq_handler_ue() local
180 if (handle_ue(mci)) in al_mc_edac_irq_handler_ue()
188 struct mem_ctl_info *mci = platform_get_drvdata(pdev); in al_mc_edac_irq_handler_ce() local
190 if (handle_ce(mci)) in al_mc_edac_irq_handler_ce()
220 struct mem_ctl_info *mci; in al_mc_edac_probe() local
236 mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, in al_mc_edac_probe()
238 if (!mci) in al_mc_edac_probe()
241 ret = devm_add_action_or_reset(&pdev->dev, devm_al_mc_edac_free, mci); in al_mc_edac_probe()
245 platform_set_drvdata(pdev, mci); in al_mc_edac_probe()
246 al_mc = mci->pvt_info; in al_mc_edac_probe()
268 mci->edac_check = al_mc_edac_check; in al_mc_edac_probe()
275 mci->mtype_cap = MEM_FLAG_DDR3 | MEM_FLAG_DDR4; in al_mc_edac_probe()
276 mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; in al_mc_edac_probe()
277 mci->edac_cap = EDAC_FLAG_SECDED; in al_mc_edac_probe()
278 mci->mod_name = DRV_NAME; in al_mc_edac_probe()
279 mci->ctl_name = "al_mc"; in al_mc_edac_probe()
280 mci->pdev = &pdev->dev; in al_mc_edac_probe()
281 mci->scrub_mode = get_scrub_mode(mmio_base); in al_mc_edac_probe()
283 dimm = *mci->dimms; in al_mc_edac_probe()
286 ret = edac_mc_add_mc(mci); in al_mc_edac_probe()