Lines Matching refs:mci

24 #define i82860_mc_printk(mci, level, fmt, arg...) \  argument
25 edac_mc_chipset_printk(mci, level, "i82860", fmt, ##arg)
64 static void i82860_get_error_info(struct mem_ctl_info *mci, in i82860_get_error_info() argument
69 pdev = to_pci_dev(mci->pdev); in i82860_get_error_info()
97 static int i82860_process_error_info(struct mem_ctl_info *mci, in i82860_process_error_info() argument
111 edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1, 0, 0, 0, in i82860_process_error_info()
117 row = edac_mc_find_csrow_by_page(mci, info->eap); in i82860_process_error_info()
118 dimm = mci->csrows[row]->channels[0]->dimm; in i82860_process_error_info()
121 edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1, in i82860_process_error_info()
126 edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, 1, in i82860_process_error_info()
134 static void i82860_check(struct mem_ctl_info *mci) in i82860_check() argument
138 i82860_get_error_info(mci, &info); in i82860_check()
139 i82860_process_error_info(mci, &info, 1); in i82860_check()
142 static void i82860_init_csrows(struct mem_ctl_info *mci, struct pci_dev *pdev) in i82860_init_csrows() argument
161 for (index = 0; index < mci->nr_csrows; index++) { in i82860_init_csrows()
162 csrow = mci->csrows[index]; in i82860_init_csrows()
186 struct mem_ctl_info *mci; in i82860_probe1() local
206 mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, 0); in i82860_probe1()
207 if (!mci) in i82860_probe1()
211 mci->pdev = &pdev->dev; in i82860_probe1()
212 mci->mtype_cap = MEM_FLAG_DDR; in i82860_probe1()
213 mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; in i82860_probe1()
215 mci->edac_cap = EDAC_FLAG_SECDED; in i82860_probe1()
216 mci->mod_name = EDAC_MOD_STR; in i82860_probe1()
217 mci->ctl_name = i82860_devs[dev_idx].ctl_name; in i82860_probe1()
218 mci->dev_name = pci_name(pdev); in i82860_probe1()
219 mci->edac_check = i82860_check; in i82860_probe1()
220 mci->ctl_page_to_phys = NULL; in i82860_probe1()
221 i82860_init_csrows(mci, pdev); in i82860_probe1()
222 i82860_get_error_info(mci, &discard); /* clear counters */ in i82860_probe1()
227 if (edac_mc_add_mc(mci)) { in i82860_probe1()
249 edac_mc_free(mci); in i82860_probe1()
275 struct mem_ctl_info *mci; in i82860_remove_one() local
282 if ((mci = edac_mc_del_mc(&pdev->dev)) == NULL) in i82860_remove_one()
285 edac_mc_free(mci); in i82860_remove_one()