Lines Matching refs:edac_dev
169 static void amd8111_pci_bridge_check(struct edac_pci_ctl_info *edac_dev) in amd8111_pci_bridge_check() argument
171 struct amd8111_pci_info *pci_info = edac_dev->pvt_info; in amd8111_pci_bridge_check()
188 edac_pci_handle_npe(edac_dev, edac_dev->ctl_name); in amd8111_pci_bridge_check()
202 edac_pci_handle_npe(edac_dev, edac_dev->ctl_name); in amd8111_pci_bridge_check()
216 edac_pci_handle_npe(edac_dev, edac_dev->ctl_name); in amd8111_pci_bridge_check()
237 edac_pci_handle_npe(edac_dev, edac_dev->ctl_name); in amd8111_pci_bridge_check()
289 static void amd8111_lpc_bridge_check(struct edac_device_ctl_info *edac_dev) in amd8111_lpc_bridge_check() argument
291 struct amd8111_dev_info *dev_info = edac_dev->pvt_info; in amd8111_lpc_bridge_check()
307 edac_device_handle_ue(edac_dev, 0, 0, edac_dev->ctl_name); in amd8111_lpc_bridge_check()
319 edac_device_handle_ue(edac_dev, 0, 0, in amd8111_lpc_bridge_check()
320 edac_dev->ctl_name); in amd8111_lpc_bridge_check()
380 dev_info->edac_dev = in amd8111_dev_probe()
384 if (!dev_info->edac_dev) { in amd8111_dev_probe()
389 dev_info->edac_dev->pvt_info = dev_info; in amd8111_dev_probe()
390 dev_info->edac_dev->dev = &dev_info->dev->dev; in amd8111_dev_probe()
391 dev_info->edac_dev->mod_name = AMD8111_EDAC_MOD_STR; in amd8111_dev_probe()
392 dev_info->edac_dev->ctl_name = dev_info->ctl_name; in amd8111_dev_probe()
393 dev_info->edac_dev->dev_name = dev_name(&dev_info->dev->dev); in amd8111_dev_probe()
396 dev_info->edac_dev->edac_check = dev_info->check; in amd8111_dev_probe()
401 if (edac_device_add_device(dev_info->edac_dev) > 0) { in amd8111_dev_probe()
415 edac_device_free_ctl_info(dev_info->edac_dev); in amd8111_dev_probe()
433 if (dev_info->edac_dev) { in amd8111_dev_remove()
434 edac_device_del_device(dev_info->edac_dev->dev); in amd8111_dev_remove()
435 edac_device_free_ctl_info(dev_info->edac_dev); in amd8111_dev_remove()
475 pci_info->edac_dev = edac_pci_alloc_ctl_info(0, pci_info->ctl_name); in amd8111_pci_probe()
476 if (!pci_info->edac_dev) { in amd8111_pci_probe()
481 pci_info->edac_dev->pvt_info = pci_info; in amd8111_pci_probe()
482 pci_info->edac_dev->dev = &pci_info->dev->dev; in amd8111_pci_probe()
483 pci_info->edac_dev->mod_name = AMD8111_EDAC_MOD_STR; in amd8111_pci_probe()
484 pci_info->edac_dev->ctl_name = pci_info->ctl_name; in amd8111_pci_probe()
485 pci_info->edac_dev->dev_name = dev_name(&pci_info->dev->dev); in amd8111_pci_probe()
488 pci_info->edac_dev->edac_check = pci_info->check; in amd8111_pci_probe()
493 if (edac_pci_add_device(pci_info->edac_dev, pci_info->edac_idx) > 0) { in amd8111_pci_probe()
507 edac_pci_free_ctl_info(pci_info->edac_dev); in amd8111_pci_probe()
525 if (pci_info->edac_dev) { in amd8111_pci_remove()
526 edac_pci_del_device(pci_info->edac_dev->dev); in amd8111_pci_remove()
527 edac_pci_free_ctl_info(pci_info->edac_dev); in amd8111_pci_remove()