Lines Matching refs:mci
25 #define i82975x_mc_printk(mci, level, fmt, arg...) \ argument
26 edac_mc_chipset_printk(mci, level, "i82975x", fmt, ##arg)
239 static void i82975x_get_error_info(struct mem_ctl_info *mci, in i82975x_get_error_info() argument
244 pdev = to_pci_dev(mci->pdev); in i82975x_get_error_info()
278 static int i82975x_process_error_info(struct mem_ctl_info *mci, in i82975x_process_error_info() argument
291 edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1, 0, 0, 0, in i82975x_process_error_info()
301 row = edac_mc_find_csrow_by_page(mci, page); in i82975x_process_error_info()
304 i82975x_mc_printk(mci, KERN_ERR, "error processing EAP:\n" in i82975x_process_error_info()
311 chan = (mci->csrows[row]->nr_channels == 1) ? 0 : info->eap & 1; in i82975x_process_error_info()
314 (1 << mci->csrows[row]->channels[chan]->dimm->grain)); in i82975x_process_error_info()
317 edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1, in i82975x_process_error_info()
322 edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, 1, in i82975x_process_error_info()
330 static void i82975x_check(struct mem_ctl_info *mci) in i82975x_check() argument
334 edac_dbg(1, "MC%d\n", mci->mc_idx); in i82975x_check()
335 i82975x_get_error_info(mci, &info); in i82975x_check()
336 i82975x_process_error_info(mci, &info, 1); in i82975x_check()
370 static void i82975x_init_csrows(struct mem_ctl_info *mci, in i82975x_init_csrows() argument
392 for (index = 0; index < mci->nr_csrows; index++) { in i82975x_init_csrows()
393 csrow = mci->csrows[index]; in i82975x_init_csrows()
419 dimm = mci->csrows[index]->channels[chan]->dimm; in i82975x_init_csrows()
475 struct mem_ctl_info *mci; in i82975x_probe1() local
551 mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, sizeof(*pvt)); in i82975x_probe1()
552 if (!mci) { in i82975x_probe1()
558 mci->pdev = &pdev->dev; in i82975x_probe1()
559 mci->mtype_cap = MEM_FLAG_DDR2; in i82975x_probe1()
560 mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; in i82975x_probe1()
561 mci->edac_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; in i82975x_probe1()
562 mci->mod_name = EDAC_MOD_STR; in i82975x_probe1()
563 mci->mod_ver = I82975X_REVISION; in i82975x_probe1()
564 mci->ctl_name = i82975x_devs[dev_idx].ctl_name; in i82975x_probe1()
565 mci->dev_name = pci_name(pdev); in i82975x_probe1()
566 mci->edac_check = i82975x_check; in i82975x_probe1()
567 mci->ctl_page_to_phys = NULL; in i82975x_probe1()
569 pvt = (struct i82975x_pvt *) mci->pvt_info; in i82975x_probe1()
571 i82975x_init_csrows(mci, pdev, mch_window); in i82975x_probe1()
572 mci->scrub_mode = SCRUB_HW_SRC; in i82975x_probe1()
573 i82975x_get_error_info(mci, &discard); /* clear counters */ in i82975x_probe1()
576 if (edac_mc_add_mc(mci)) { in i82975x_probe1()
586 edac_mc_free(mci); in i82975x_probe1()
615 struct mem_ctl_info *mci; in i82975x_remove_one() local
620 mci = edac_mc_del_mc(&pdev->dev); in i82975x_remove_one()
621 if (mci == NULL) in i82975x_remove_one()
624 pvt = mci->pvt_info; in i82975x_remove_one()
628 edac_mc_free(mci); in i82975x_remove_one()