Lines Matching full:mci
94 struct mem_ctl_info *mci = data; in ti_edac_isr() local
95 struct ti_edac *edac = mci->pvt_info; in ti_edac_isr()
106 edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, err_count, in ti_edac_isr()
109 mci->ctl_name, "1B"); in ti_edac_isr()
114 edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1, in ti_edac_isr()
117 mci->ctl_name, "2B"); in ti_edac_isr()
121 edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, 1, in ti_edac_isr()
123 mci->ctl_name, "WR"); in ti_edac_isr()
130 static void ti_edac_setup_dimm(struct mem_ctl_info *mci, u32 type) in ti_edac_setup_dimm() argument
133 struct ti_edac *edac = mci->pvt_info; in ti_edac_setup_dimm()
138 dimm = edac_get_dimm(mci, 0, 0, 0); in ti_edac_setup_dimm()
236 struct mem_ctl_info *mci; in ti_edac_probe() local
259 mci = edac_mc_alloc(emif_id, 1, layers, sizeof(*edac)); in ti_edac_probe()
260 if (!mci) in ti_edac_probe()
263 mci->pdev = &pdev->dev; in ti_edac_probe()
264 edac = mci->pvt_info; in ti_edac_probe()
266 platform_set_drvdata(pdev, mci); in ti_edac_probe()
268 mci->mtype_cap = MEM_FLAG_DDR3 | MEM_FLAG_DDR2; in ti_edac_probe()
269 mci->edac_ctl_cap = EDAC_FLAG_SECDED | EDAC_FLAG_NONE; in ti_edac_probe()
270 mci->mod_name = EDAC_MOD_NAME; in ti_edac_probe()
271 mci->ctl_name = id->compatible; in ti_edac_probe()
272 mci->dev_name = dev_name(&pdev->dev); in ti_edac_probe()
275 ti_edac_setup_dimm(mci, (u32)(id->data)); in ti_edac_probe()
285 "emif-edac-irq", mci); in ti_edac_probe()
292 ret = edac_mc_add_mc(mci); in ti_edac_probe()
295 "Failed to register mci: %d.\n", ret); in ti_edac_probe()
311 edac_mc_free(mci); in ti_edac_probe()
317 struct mem_ctl_info *mci = platform_get_drvdata(pdev); in ti_edac_remove() local
320 edac_mc_free(mci); in ti_edac_remove()