• Home
  • Raw
  • Download

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 edac_dbg(1, "MC%d\n", mci->mc_idx); in i82443bxgx_edacmc_check()
180 i82443bxgx_edacmc_get_error_info(mci, &info); in i82443bxgx_edacmc_check()
181 i82443bxgx_edacmc_process_error_info(mci, &info, 1); in i82443bxgx_edacmc_check()
184 static void i82443bxgx_init_csrows(struct mem_ctl_info *mci, in i82443bxgx_init_csrows() argument
197 for (index = 0; index < mci->nr_csrows; index++) { in i82443bxgx_init_csrows()
198 csrow = mci->csrows[index]; in i82443bxgx_init_csrows()
203 mci->mc_idx, index, drbar); in i82443bxgx_init_csrows()
207 mci->mc_idx, index, row_high_limit, in i82443bxgx_init_csrows()
234 struct mem_ctl_info *mci; in i82443bxgx_edacmc_probe1() local
255 mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, 0); in i82443bxgx_edacmc_probe1()
256 if (mci == NULL) in i82443bxgx_edacmc_probe1()
259 edac_dbg(0, "MC: mci = %p\n", mci); in i82443bxgx_edacmc_probe1()
260 mci->pdev = &pdev->dev; in i82443bxgx_edacmc_probe1()
261 mci->mtype_cap = MEM_FLAG_EDO | MEM_FLAG_SDR | MEM_FLAG_RDR; in i82443bxgx_edacmc_probe1()
262 mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_EC | EDAC_FLAG_SECDED; in i82443bxgx_edacmc_probe1()
280 mci->edac_cap = mci->edac_ctl_cap; in i82443bxgx_edacmc_probe1()
282 mci->edac_cap = EDAC_FLAG_NONE; in i82443bxgx_edacmc_probe1()
284 mci->scrub_cap = SCRUB_FLAG_HW_SRC; in i82443bxgx_edacmc_probe1()
289 mci->scrub_mode = (ecc_mode == I82443BXGX_NBXCFG_INTEGRITY_SCRUB) in i82443bxgx_edacmc_probe1()
309 i82443bxgx_init_csrows(mci, pdev, edac_mode, mtype); in i82443bxgx_edacmc_probe1()
320 mci->mod_name = EDAC_MOD_STR; in i82443bxgx_edacmc_probe1()
321 mci->ctl_name = "I82443BXGX"; in i82443bxgx_edacmc_probe1()
322 mci->dev_name = pci_name(pdev); in i82443bxgx_edacmc_probe1()
323 mci->edac_check = i82443bxgx_edacmc_check; in i82443bxgx_edacmc_probe1()
324 mci->ctl_page_to_phys = NULL; in i82443bxgx_edacmc_probe1()
326 if (edac_mc_add_mc(mci)) { in i82443bxgx_edacmc_probe1()
346 edac_mc_free(mci); in i82443bxgx_edacmc_probe1()
369 struct mem_ctl_info *mci; in i82443bxgx_edacmc_remove_one() local
376 if ((mci = edac_mc_del_mc(&pdev->dev)) == NULL) in i82443bxgx_edacmc_remove_one()
379 edac_mc_free(mci); in i82443bxgx_edacmc_remove_one()