Lines Matching refs:mci
166 static void i3200_clear_error_info(struct mem_ctl_info *mci) in i3200_clear_error_info() argument
170 pdev = to_pci_dev(mci->pdev); in i3200_clear_error_info()
180 static void i3200_get_and_clear_error_info(struct mem_ctl_info *mci, in i3200_get_and_clear_error_info() argument
184 struct i3200_priv *priv = mci->pvt_info; in i3200_get_and_clear_error_info()
187 pdev = to_pci_dev(mci->pdev); in i3200_get_and_clear_error_info()
216 i3200_clear_error_info(mci); in i3200_get_and_clear_error_info()
219 static void i3200_process_error_info(struct mem_ctl_info *mci, in i3200_process_error_info() argument
229 edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1, 0, 0, 0, in i3200_process_error_info()
237 edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1, in i3200_process_error_info()
243 edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, 1, in i3200_process_error_info()
252 static void i3200_check(struct mem_ctl_info *mci) in i3200_check() argument
256 i3200_get_and_clear_error_info(mci, &info); in i3200_check()
257 i3200_process_error_info(mci, &info); in i3200_check()
339 struct mem_ctl_info *mci = NULL; in i3200_probe1() local
361 mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, in i3200_probe1()
363 if (!mci) in i3200_probe1()
368 mci->pdev = &pdev->dev; in i3200_probe1()
369 mci->mtype_cap = MEM_FLAG_DDR2; in i3200_probe1()
371 mci->edac_ctl_cap = EDAC_FLAG_SECDED; in i3200_probe1()
372 mci->edac_cap = EDAC_FLAG_SECDED; in i3200_probe1()
374 mci->mod_name = EDAC_MOD_STR; in i3200_probe1()
375 mci->ctl_name = i3200_devs[dev_idx].ctl_name; in i3200_probe1()
376 mci->dev_name = pci_name(pdev); in i3200_probe1()
377 mci->edac_check = i3200_check; in i3200_probe1()
378 mci->ctl_page_to_phys = NULL; in i3200_probe1()
379 priv = mci->pvt_info; in i3200_probe1()
394 struct dimm_info *dimm = edac_get_dimm(mci, i, j, 0); in i3200_probe1()
411 i3200_clear_error_info(mci); in i3200_probe1()
414 if (edac_mc_add_mc(mci)) { in i3200_probe1()
425 if (mci) in i3200_probe1()
426 edac_mc_free(mci); in i3200_probe1()
449 struct mem_ctl_info *mci; in i3200_remove_one() local
454 mci = edac_mc_del_mc(&pdev->dev); in i3200_remove_one()
455 if (!mci) in i3200_remove_one()
458 priv = mci->pvt_info; in i3200_remove_one()
461 edac_mc_free(mci); in i3200_remove_one()