Lines Matching refs:mci
120 static void i82443bxgx_edacmc_get_error_info(struct mem_ctl_info *mci, in i82443bxgx_edacmc_get_error_info() argument
125 pdev = to_pci_dev(mci->pdev); in i82443bxgx_edacmc_get_error_info()
140 static int i82443bxgx_edacmc_process_error_info(struct mem_ctl_info *mci, in i82443bxgx_edacmc_process_error_info() argument
157 edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, 1, in i82443bxgx_edacmc_process_error_info()
159 edac_mc_find_csrow_by_page(mci, page), in i82443bxgx_edacmc_process_error_info()
160 0, -1, mci->ctl_name, ""); in i82443bxgx_edacmc_process_error_info()
166 edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1, in i82443bxgx_edacmc_process_error_info()
168 edac_mc_find_csrow_by_page(mci, page), in i82443bxgx_edacmc_process_error_info()
169 0, -1, mci->ctl_name, ""); in i82443bxgx_edacmc_process_error_info()
175 static void i82443bxgx_edacmc_check(struct mem_ctl_info *mci) in i82443bxgx_edacmc_check() argument
179 i82443bxgx_edacmc_get_error_info(mci, &info); in i82443bxgx_edacmc_check()
180 i82443bxgx_edacmc_process_error_info(mci, &info, 1); in i82443bxgx_edacmc_check()
183 static void i82443bxgx_init_csrows(struct mem_ctl_info *mci, in i82443bxgx_init_csrows() argument
196 for (index = 0; index < mci->nr_csrows; index++) { in i82443bxgx_init_csrows()
197 csrow = mci->csrows[index]; in i82443bxgx_init_csrows()
202 mci->mc_idx, index, drbar); in i82443bxgx_init_csrows()
206 mci->mc_idx, index, row_high_limit, in i82443bxgx_init_csrows()
233 struct mem_ctl_info *mci; in i82443bxgx_edacmc_probe1() local
254 mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, 0); in i82443bxgx_edacmc_probe1()
255 if (mci == NULL) in i82443bxgx_edacmc_probe1()
258 edac_dbg(0, "MC: mci = %p\n", mci); in i82443bxgx_edacmc_probe1()
259 mci->pdev = &pdev->dev; in i82443bxgx_edacmc_probe1()
260 mci->mtype_cap = MEM_FLAG_EDO | MEM_FLAG_SDR | MEM_FLAG_RDR; in i82443bxgx_edacmc_probe1()
261 mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_EC | EDAC_FLAG_SECDED; in i82443bxgx_edacmc_probe1()
279 mci->edac_cap = mci->edac_ctl_cap; in i82443bxgx_edacmc_probe1()
281 mci->edac_cap = EDAC_FLAG_NONE; in i82443bxgx_edacmc_probe1()
283 mci->scrub_cap = SCRUB_FLAG_HW_SRC; in i82443bxgx_edacmc_probe1()
288 mci->scrub_mode = (ecc_mode == I82443BXGX_NBXCFG_INTEGRITY_SCRUB) in i82443bxgx_edacmc_probe1()
308 i82443bxgx_init_csrows(mci, pdev, edac_mode, mtype); in i82443bxgx_edacmc_probe1()
319 mci->mod_name = EDAC_MOD_STR; in i82443bxgx_edacmc_probe1()
320 mci->ctl_name = "I82443BXGX"; in i82443bxgx_edacmc_probe1()
321 mci->dev_name = pci_name(pdev); in i82443bxgx_edacmc_probe1()
322 mci->edac_check = i82443bxgx_edacmc_check; in i82443bxgx_edacmc_probe1()
323 mci->ctl_page_to_phys = NULL; in i82443bxgx_edacmc_probe1()
325 if (edac_mc_add_mc(mci)) { in i82443bxgx_edacmc_probe1()
345 edac_mc_free(mci); in i82443bxgx_edacmc_probe1()
368 struct mem_ctl_info *mci; in i82443bxgx_edacmc_remove_one() local
375 if ((mci = edac_mc_del_mc(&pdev->dev)) == NULL) in i82443bxgx_edacmc_remove_one()
378 edac_mc_free(mci); in i82443bxgx_edacmc_remove_one()