Lines Matching refs:dci
400 static void aurora_l2_check(struct edac_device_ctl_info *dci) in aurora_l2_check() argument
402 struct aurora_l2_drvdata *drvdata = dci->pvt_info; in aurora_l2_check()
472 edac_device_handle_ue(dci, 0, 0, drvdata->msg); in aurora_l2_check()
476 edac_device_handle_ce(dci, 0, 0, drvdata->msg); in aurora_l2_check()
482 edac_device_handle_ue(dci, 0, 0, "details unavailable (multiple errors)"); in aurora_l2_check()
484 edac_device_handle_ue(dci, 0, 0, "details unavailable (multiple errors)"); in aurora_l2_check()
487 static void aurora_l2_poll(struct edac_device_ctl_info *dci) in aurora_l2_poll() argument
490 struct aurora_l2_drvdata *drvdata = dci->pvt_info; in aurora_l2_poll()
493 aurora_l2_check(dci); in aurora_l2_poll()
508 struct edac_device_ctl_info *dci; in aurora_l2_probe() local
525 dci = edac_device_alloc_ctl_info(sizeof(*drvdata), in aurora_l2_probe()
527 if (!dci) in aurora_l2_probe()
530 drvdata = dci->pvt_info; in aurora_l2_probe()
532 dci->dev = &pdev->dev; in aurora_l2_probe()
533 platform_set_drvdata(pdev, dci); in aurora_l2_probe()
536 dci->edac_check = aurora_l2_poll; in aurora_l2_probe()
537 dci->mod_name = pdev->dev.driver->name; in aurora_l2_probe()
538 dci->ctl_name = id ? id->compatible : "unknown"; in aurora_l2_probe()
539 dci->dev_name = dev_name(&pdev->dev); in aurora_l2_probe()
545 if (edac_device_add_device(dci)) { in aurora_l2_probe()
546 edac_device_free_ctl_info(dci); in aurora_l2_probe()
569 struct edac_device_ctl_info *dci = platform_get_drvdata(pdev); in aurora_l2_remove() local
571 struct aurora_l2_drvdata *drvdata = dci->pvt_info; in aurora_l2_remove()
576 edac_device_free_ctl_info(dci); in aurora_l2_remove()