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()
387 dev_info->edac_dev->pvt_info = dev_info; in amd8111_dev_probe()
388 dev_info->edac_dev->dev = &dev_info->dev->dev; in amd8111_dev_probe()
389 dev_info->edac_dev->mod_name = AMD8111_EDAC_MOD_STR; in amd8111_dev_probe()
390 dev_info->edac_dev->ctl_name = dev_info->ctl_name; in amd8111_dev_probe()
391 dev_info->edac_dev->dev_name = dev_name(&dev_info->dev->dev); in amd8111_dev_probe()
394 dev_info->edac_dev->edac_check = dev_info->check; in amd8111_dev_probe()
399 if (edac_device_add_device(dev_info->edac_dev) > 0) { in amd8111_dev_probe()
402 edac_device_free_ctl_info(dev_info->edac_dev); in amd8111_dev_probe()
425 if (dev_info->edac_dev) { in amd8111_dev_remove()
426 edac_device_del_device(dev_info->edac_dev->dev); in amd8111_dev_remove()
427 edac_device_free_ctl_info(dev_info->edac_dev); in amd8111_dev_remove()
467 pci_info->edac_dev = edac_pci_alloc_ctl_info(0, pci_info->ctl_name); in amd8111_pci_probe()
468 if (!pci_info->edac_dev) in amd8111_pci_probe()
471 pci_info->edac_dev->pvt_info = pci_info; in amd8111_pci_probe()
472 pci_info->edac_dev->dev = &pci_info->dev->dev; in amd8111_pci_probe()
473 pci_info->edac_dev->mod_name = AMD8111_EDAC_MOD_STR; in amd8111_pci_probe()
474 pci_info->edac_dev->ctl_name = pci_info->ctl_name; in amd8111_pci_probe()
475 pci_info->edac_dev->dev_name = dev_name(&pci_info->dev->dev); in amd8111_pci_probe()
478 pci_info->edac_dev->edac_check = pci_info->check; in amd8111_pci_probe()
483 if (edac_pci_add_device(pci_info->edac_dev, pci_info->edac_idx) > 0) { in amd8111_pci_probe()
486 edac_pci_free_ctl_info(pci_info->edac_dev); in amd8111_pci_probe()
509 if (pci_info->edac_dev) { in amd8111_pci_remove()
510 edac_pci_del_device(pci_info->edac_dev->dev); in amd8111_pci_remove()
511 edac_pci_free_ctl_info(pci_info->edac_dev); in amd8111_pci_remove()