Lines Matching refs:mci
31 #define r82600_mc_printk(mci, level, fmt, arg...) \ argument
32 edac_mc_chipset_printk(mci, level, "r82600", fmt, ##arg)
138 static void r82600_get_error_info(struct mem_ctl_info *mci, in r82600_get_error_info() argument
143 pdev = to_pci_dev(mci->pdev); in r82600_get_error_info()
159 static int r82600_process_error_info(struct mem_ctl_info *mci, in r82600_process_error_info() argument
182 edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, 1, in r82600_process_error_info()
184 edac_mc_find_csrow_by_page(mci, page), in r82600_process_error_info()
186 mci->ctl_name, ""); in r82600_process_error_info()
194 edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1, in r82600_process_error_info()
196 edac_mc_find_csrow_by_page(mci, page), in r82600_process_error_info()
198 mci->ctl_name, ""); in r82600_process_error_info()
204 static void r82600_check(struct mem_ctl_info *mci) in r82600_check() argument
208 edac_dbg(1, "MC%d\n", mci->mc_idx); in r82600_check()
209 r82600_get_error_info(mci, &info); in r82600_check()
210 r82600_process_error_info(mci, &info, 1); in r82600_check()
218 static void r82600_init_csrows(struct mem_ctl_info *mci, struct pci_dev *pdev, in r82600_init_csrows() argument
232 for (index = 0; index < mci->nr_csrows; index++) { in r82600_init_csrows()
233 csrow = mci->csrows[index]; in r82600_init_csrows()
272 struct mem_ctl_info *mci; in r82600_probe1() local
293 mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, 0); in r82600_probe1()
294 if (mci == NULL) in r82600_probe1()
297 edac_dbg(0, "mci = %p\n", mci); in r82600_probe1()
298 mci->pdev = &pdev->dev; in r82600_probe1()
299 mci->mtype_cap = MEM_FLAG_RDDR | MEM_FLAG_DDR; in r82600_probe1()
300 mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_EC | EDAC_FLAG_SECDED; in r82600_probe1()
309 mci->edac_cap = EDAC_FLAG_NONE | EDAC_FLAG_EC | EDAC_FLAG_SECDED; in r82600_probe1()
314 mci, eapr); in r82600_probe1()
316 mci->edac_cap = EDAC_FLAG_NONE; in r82600_probe1()
318 mci->mod_name = EDAC_MOD_STR; in r82600_probe1()
319 mci->mod_ver = R82600_REVISION; in r82600_probe1()
320 mci->ctl_name = "R82600"; in r82600_probe1()
321 mci->dev_name = pci_name(pdev); in r82600_probe1()
322 mci->edac_check = r82600_check; in r82600_probe1()
323 mci->ctl_page_to_phys = NULL; in r82600_probe1()
324 r82600_init_csrows(mci, pdev, dramcr); in r82600_probe1()
325 r82600_get_error_info(mci, &discard); /* clear counters */ in r82600_probe1()
330 if (edac_mc_add_mc(mci)) { in r82600_probe1()
357 edac_mc_free(mci); in r82600_probe1()
373 struct mem_ctl_info *mci; in r82600_remove_one() local
380 if ((mci = edac_mc_del_mc(&pdev->dev)) == NULL) in r82600_remove_one()
383 edac_mc_free(mci); in r82600_remove_one()