Lines Matching refs:mci
55 struct mem_ctl_info *mci = dev_id; in highbank_mc_err_handler() local
56 struct hb_mc_drvdata *drvdata = mci->pvt_info; in highbank_mc_err_handler()
64 edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1, in highbank_mc_err_handler()
68 mci->ctl_name, ""); in highbank_mc_err_handler()
74 edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, 1, in highbank_mc_err_handler()
78 mci->ctl_name, ""); in highbank_mc_err_handler()
86 static void highbank_mc_err_inject(struct mem_ctl_info *mci, u8 synd) in highbank_mc_err_inject() argument
88 struct hb_mc_drvdata *pdata = mci->pvt_info; in highbank_mc_err_inject()
102 struct mem_ctl_info *mci = to_mci(dev); in highbank_mc_inject_ctrl() local
108 highbank_mc_err_inject(mci, synd); in highbank_mc_inject_ctrl()
149 struct mem_ctl_info *mci; in highbank_mc_probe() local
168 mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, in highbank_mc_probe()
170 if (!mci) in highbank_mc_probe()
173 mci->pdev = &pdev->dev; in highbank_mc_probe()
174 drvdata = mci->pvt_info; in highbank_mc_probe()
175 platform_set_drvdata(pdev, mci); in highbank_mc_probe()
212 mci->mtype_cap = MEM_FLAG_DDR3; in highbank_mc_probe()
213 mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; in highbank_mc_probe()
214 mci->edac_cap = EDAC_FLAG_SECDED; in highbank_mc_probe()
215 mci->mod_name = pdev->dev.driver->name; in highbank_mc_probe()
216 mci->ctl_name = id->compatible; in highbank_mc_probe()
217 mci->dev_name = dev_name(&pdev->dev); in highbank_mc_probe()
218 mci->scrub_mode = SCRUB_SW_SRC; in highbank_mc_probe()
221 dimm = *mci->dimms; in highbank_mc_probe()
228 res = edac_mc_add_mc_with_groups(mci, highbank_dev_groups); in highbank_mc_probe()
234 0, dev_name(&pdev->dev), mci); in highbank_mc_probe()
246 edac_mc_free(mci); in highbank_mc_probe()
252 struct mem_ctl_info *mci = platform_get_drvdata(pdev); in highbank_mc_remove() local
255 edac_mc_free(mci); in highbank_mc_remove()