Lines Matching refs:mci

594 static void mv64x60_mc_check(struct mem_ctl_info *mci)  in mv64x60_mc_check()  argument
596 struct mv64x60_mc_pdata *pdata = mci->pvt_info; in mv64x60_mc_check()
614 edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, 1, in mv64x60_mc_check()
618 mci->ctl_name, ""); in mv64x60_mc_check()
620 edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1, in mv64x60_mc_check()
624 mci->ctl_name, ""); in mv64x60_mc_check()
632 struct mem_ctl_info *mci = dev_id; in mv64x60_mc_isr() local
633 struct mv64x60_mc_pdata *pdata = mci->pvt_info; in mv64x60_mc_isr()
641 mv64x60_mc_check(mci); in mv64x60_mc_isr()
660 static void mv64x60_init_csrows(struct mem_ctl_info *mci, in mv64x60_init_csrows() argument
673 csrow = mci->csrows[0]; in mv64x60_init_csrows()
702 struct mem_ctl_info *mci; in mv64x60_mc_err_probe() local
718 mci = edac_mc_alloc(edac_mc_idx, ARRAY_SIZE(layers), layers, in mv64x60_mc_err_probe()
720 if (!mci) { in mv64x60_mc_err_probe()
726 pdata = mci->pvt_info; in mv64x60_mc_err_probe()
727 mci->pdev = &pdev->dev; in mv64x60_mc_err_probe()
728 platform_set_drvdata(pdev, mci); in mv64x60_mc_err_probe()
731 mci->dev_name = dev_name(&pdev->dev); in mv64x60_mc_err_probe()
770 mci->mtype_cap = MEM_FLAG_RDDR | MEM_FLAG_DDR; in mv64x60_mc_err_probe()
771 mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; in mv64x60_mc_err_probe()
772 mci->edac_cap = EDAC_FLAG_SECDED; in mv64x60_mc_err_probe()
773 mci->mod_name = EDAC_MOD_STR; in mv64x60_mc_err_probe()
774 mci->mod_ver = MV64x60_REVISION; in mv64x60_mc_err_probe()
775 mci->ctl_name = mv64x60_ctl_name; in mv64x60_mc_err_probe()
778 mci->edac_check = mv64x60_mc_check; in mv64x60_mc_err_probe()
780 mci->ctl_page_to_phys = NULL; in mv64x60_mc_err_probe()
782 mci->scrub_mode = SCRUB_SW_SRC; in mv64x60_mc_err_probe()
784 mv64x60_init_csrows(mci, pdata); in mv64x60_mc_err_probe()
792 res = edac_mc_add_mc(mci); in mv64x60_mc_err_probe()
806 mci); in mv64x60_mc_err_probe()
827 edac_mc_free(mci); in mv64x60_mc_err_probe()
833 struct mem_ctl_info *mci = platform_get_drvdata(pdev); in mv64x60_mc_err_remove() local
838 edac_mc_free(mci); in mv64x60_mc_err_remove()