• Home
  • Raw
  • Download

Lines Matching refs:mci

152 static void x38_clear_error_info(struct mem_ctl_info *mci)  in x38_clear_error_info()  argument
156 pdev = to_pci_dev(mci->pdev); in x38_clear_error_info()
166 static void x38_get_and_clear_error_info(struct mem_ctl_info *mci, in x38_get_and_clear_error_info() argument
170 void __iomem *window = mci->pvt_info; in x38_get_and_clear_error_info()
172 pdev = to_pci_dev(mci->pdev); in x38_get_and_clear_error_info()
202 x38_clear_error_info(mci); in x38_get_and_clear_error_info()
205 static void x38_process_error_info(struct mem_ctl_info *mci, in x38_process_error_info() argument
215 edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1, 0, 0, 0, in x38_process_error_info()
224 edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1, in x38_process_error_info()
230 edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, 1, in x38_process_error_info()
239 static void x38_check(struct mem_ctl_info *mci) in x38_check() argument
243 edac_dbg(1, "MC%d\n", mci->mc_idx); in x38_check()
244 x38_get_and_clear_error_info(mci, &info); in x38_check()
245 x38_process_error_info(mci, &info); in x38_check()
324 struct mem_ctl_info *mci = NULL; in x38_probe1() local
347 mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, 0); in x38_probe1()
348 if (!mci) in x38_probe1()
353 mci->pdev = &pdev->dev; in x38_probe1()
354 mci->mtype_cap = MEM_FLAG_DDR2; in x38_probe1()
356 mci->edac_ctl_cap = EDAC_FLAG_SECDED; in x38_probe1()
357 mci->edac_cap = EDAC_FLAG_SECDED; in x38_probe1()
359 mci->mod_name = EDAC_MOD_STR; in x38_probe1()
360 mci->mod_ver = X38_REVISION; in x38_probe1()
361 mci->ctl_name = x38_devs[dev_idx].ctl_name; in x38_probe1()
362 mci->dev_name = pci_name(pdev); in x38_probe1()
363 mci->edac_check = x38_check; in x38_probe1()
364 mci->ctl_page_to_phys = NULL; in x38_probe1()
365 mci->pvt_info = window; in x38_probe1()
375 for (i = 0; i < mci->nr_csrows; i++) { in x38_probe1()
377 struct csrow_info *csrow = mci->csrows[i]; in x38_probe1()
397 x38_clear_error_info(mci); in x38_probe1()
400 if (edac_mc_add_mc(mci)) { in x38_probe1()
411 if (mci) in x38_probe1()
412 edac_mc_free(mci); in x38_probe1()
435 struct mem_ctl_info *mci; in x38_remove_one() local
439 mci = edac_mc_del_mc(&pdev->dev); in x38_remove_one()
440 if (!mci) in x38_remove_one()
443 iounmap(mci->pvt_info); in x38_remove_one()
445 edac_mc_free(mci); in x38_remove_one()