Lines Matching refs:edac_dev
290 struct edac_device_ctl_info *edac_dev; member
293 void (*check)(struct edac_device_ctl_info *edac_dev);
682 static void cpc925_cpu_check(struct edac_device_ctl_info *edac_dev) in cpc925_cpu_check() argument
684 struct cpc925_dev_info *dev_info = edac_dev->pvt_info; in cpc925_cpu_check()
702 edac_device_handle_ue(edac_dev, 0, 0, edac_dev->ctl_name); in cpc925_cpu_check()
729 static void cpc925_htlink_check(struct edac_device_ctl_info *edac_dev) in cpc925_htlink_check() argument
731 struct cpc925_dev_info *dev_info = edac_dev->pvt_info; in cpc925_htlink_check()
776 edac_device_handle_ce(edac_dev, 0, 0, edac_dev->ctl_name); in cpc925_htlink_check()
827 dev_info->edac_dev = in cpc925_add_edac_devices()
830 if (!dev_info->edac_dev) { in cpc925_add_edac_devices()
835 dev_info->edac_dev->pvt_info = dev_info; in cpc925_add_edac_devices()
836 dev_info->edac_dev->dev = &dev_info->pdev->dev; in cpc925_add_edac_devices()
837 dev_info->edac_dev->ctl_name = dev_info->ctl_name; in cpc925_add_edac_devices()
838 dev_info->edac_dev->mod_name = CPC925_EDAC_MOD_STR; in cpc925_add_edac_devices()
839 dev_info->edac_dev->dev_name = dev_name(&dev_info->pdev->dev); in cpc925_add_edac_devices()
842 dev_info->edac_dev->edac_check = dev_info->check; in cpc925_add_edac_devices()
847 if (edac_device_add_device(dev_info->edac_dev) > 0) { in cpc925_add_edac_devices()
862 edac_device_free_ctl_info(dev_info->edac_dev); in cpc925_add_edac_devices()
877 if (dev_info->edac_dev) { in cpc925_del_edac_devices()
878 edac_device_del_device(dev_info->edac_dev->dev); in cpc925_del_edac_devices()
879 edac_device_free_ctl_info(dev_info->edac_dev); in cpc925_del_edac_devices()