Lines Matching refs:edac_dev
277 struct edac_device_ctl_info *edac_dev; member
280 void (*check)(struct edac_device_ctl_info *edac_dev);
653 static void cpc925_cpu_check(struct edac_device_ctl_info *edac_dev) in cpc925_cpu_check() argument
655 struct cpc925_dev_info *dev_info = edac_dev->pvt_info; in cpc925_cpu_check()
673 edac_device_handle_ue(edac_dev, 0, 0, edac_dev->ctl_name); in cpc925_cpu_check()
700 static void cpc925_htlink_check(struct edac_device_ctl_info *edac_dev) in cpc925_htlink_check() argument
702 struct cpc925_dev_info *dev_info = edac_dev->pvt_info; in cpc925_htlink_check()
747 edac_device_handle_ce(edac_dev, 0, 0, edac_dev->ctl_name); in cpc925_htlink_check()
798 dev_info->edac_dev = in cpc925_add_edac_devices()
801 if (!dev_info->edac_dev) { in cpc925_add_edac_devices()
806 dev_info->edac_dev->pvt_info = dev_info; in cpc925_add_edac_devices()
807 dev_info->edac_dev->dev = &dev_info->pdev->dev; in cpc925_add_edac_devices()
808 dev_info->edac_dev->ctl_name = dev_info->ctl_name; in cpc925_add_edac_devices()
809 dev_info->edac_dev->mod_name = CPC925_EDAC_MOD_STR; in cpc925_add_edac_devices()
810 dev_info->edac_dev->dev_name = dev_name(&dev_info->pdev->dev); in cpc925_add_edac_devices()
813 dev_info->edac_dev->edac_check = dev_info->check; in cpc925_add_edac_devices()
818 if (edac_device_add_device(dev_info->edac_dev) > 0) { in cpc925_add_edac_devices()
833 edac_device_free_ctl_info(dev_info->edac_dev); in cpc925_add_edac_devices()
848 if (dev_info->edac_dev) { in cpc925_del_edac_devices()
849 edac_device_del_device(dev_info->edac_dev->dev); in cpc925_del_edac_devices()
850 edac_device_free_ctl_info(dev_info->edac_dev); in cpc925_del_edac_devices()