Lines Matching refs:dci
407 static void aurora_l2_check(struct edac_device_ctl_info *dci) in aurora_l2_check() argument
409 struct aurora_l2_drvdata *drvdata = dci->pvt_info; in aurora_l2_check()
479 edac_device_handle_ue(dci, 0, 0, drvdata->msg); in aurora_l2_check()
483 edac_device_handle_ce(dci, 0, 0, drvdata->msg); in aurora_l2_check()
489 edac_device_handle_ue(dci, 0, 0, "details unavailable (multiple errors)"); in aurora_l2_check()
491 edac_device_handle_ue(dci, 0, 0, "details unavailable (multiple errors)"); in aurora_l2_check()
494 static void aurora_l2_poll(struct edac_device_ctl_info *dci) in aurora_l2_poll() argument
497 struct aurora_l2_drvdata *drvdata = dci->pvt_info; in aurora_l2_poll()
500 aurora_l2_check(dci); in aurora_l2_poll()
515 struct edac_device_ctl_info *dci; in aurora_l2_probe() local
539 dci = edac_device_alloc_ctl_info(sizeof(*drvdata), in aurora_l2_probe()
541 if (!dci) in aurora_l2_probe()
544 drvdata = dci->pvt_info; in aurora_l2_probe()
546 dci->dev = &pdev->dev; in aurora_l2_probe()
547 platform_set_drvdata(pdev, dci); in aurora_l2_probe()
550 dci->edac_check = aurora_l2_poll; in aurora_l2_probe()
551 dci->mod_name = pdev->dev.driver->name; in aurora_l2_probe()
552 dci->ctl_name = id ? id->compatible : "unknown"; in aurora_l2_probe()
553 dci->dev_name = dev_name(&pdev->dev); in aurora_l2_probe()
559 if (edac_device_add_device(dci)) { in aurora_l2_probe()
560 edac_device_free_ctl_info(dci); in aurora_l2_probe()
583 struct edac_device_ctl_info *dci = platform_get_drvdata(pdev); in aurora_l2_remove() local
585 struct aurora_l2_drvdata *drvdata = dci->pvt_info; in aurora_l2_remove()
590 edac_device_free_ctl_info(dci); in aurora_l2_remove()