Lines Matching refs:dci

558 	struct edac_device_ctl_info *dci = dev_id;  in altr_edac_device_handler()  local
559 struct altr_edac_device_dev *drvdata = dci->pvt_info; in altr_edac_device_handler()
565 edac_device_handle_ce(dci, 0, 0, drvdata->edac_dev_name); in altr_edac_device_handler()
570 edac_device_handle_ue(dci, 0, 0, drvdata->edac_dev_name); in altr_edac_device_handler()
716 struct edac_device_ctl_info *dci; in altr_edac_device_probe() local
746 dci = edac_device_alloc_ctl_info(sizeof(*drvdata), ecc_name, in altr_edac_device_probe()
750 if (!dci) { in altr_edac_device_probe()
757 drvdata = dci->pvt_info; in altr_edac_device_probe()
758 dci->dev = &pdev->dev; in altr_edac_device_probe()
759 platform_set_drvdata(pdev, dci); in altr_edac_device_probe()
781 0, dev_name(&pdev->dev), dci); in altr_edac_device_probe()
788 0, dev_name(&pdev->dev), dci); in altr_edac_device_probe()
792 dci->mod_name = "Altera ECC Manager"; in altr_edac_device_probe()
793 dci->dev_name = drvdata->edac_dev_name; in altr_edac_device_probe()
795 res = edac_device_add_device(dci); in altr_edac_device_probe()
799 altr_create_edacdev_dbgfs(dci, drvdata->data); in altr_edac_device_probe()
806 edac_device_free_ctl_info(dci); in altr_edac_device_probe()
817 struct edac_device_ctl_info *dci = platform_get_drvdata(pdev); in altr_edac_device_remove() local
818 struct altr_edac_device_dev *drvdata = dci->pvt_info; in altr_edac_device_remove()
822 edac_device_free_ctl_info(dci); in altr_edac_device_remove()
862 struct altr_edac_device_dev *dci = dev_id; in altr_edac_a10_ecc_irq() local
863 void __iomem *base = dci->base; in altr_edac_a10_ecc_irq()
865 if (irq == dci->sb_irq) { in altr_edac_a10_ecc_irq()
868 edac_device_handle_ce(dci->edac_dev, 0, 0, dci->edac_dev_name); in altr_edac_a10_ecc_irq()
871 } else if (irq == dci->db_irq) { in altr_edac_a10_ecc_irq()
874 edac_device_handle_ue(dci->edac_dev, 0, 0, dci->edac_dev_name); in altr_edac_a10_ecc_irq()
875 if (dci->data->panic) in altr_edac_a10_ecc_irq()
1255 struct altr_edac_device_dev *dci = dev_id; in altr_edac_a10_l2_irq() local
1257 if (irq == dci->sb_irq) { in altr_edac_a10_l2_irq()
1258 regmap_write(dci->edac->ecc_mgr_map, in altr_edac_a10_l2_irq()
1261 edac_device_handle_ce(dci->edac_dev, 0, 0, dci->edac_dev_name); in altr_edac_a10_l2_irq()
1264 } else if (irq == dci->db_irq) { in altr_edac_a10_l2_irq()
1265 regmap_write(dci->edac->ecc_mgr_map, in altr_edac_a10_l2_irq()
1268 edac_device_handle_ue(dci->edac_dev, 0, 0, dci->edac_dev_name); in altr_edac_a10_l2_irq()
1468 struct edac_device_ctl_info *dci; in altr_portb_setup() local
1487 dci = edac_device_alloc_ctl_info(sizeof(*altdev), ecc_name, 1, in altr_portb_setup()
1489 if (!dci) { in altr_portb_setup()
1497 altdev = dci->pvt_info; in altr_portb_setup()
1506 altdev->edac_dev = dci; in altr_portb_setup()
1508 dci->dev = &altdev->ddev; in altr_portb_setup()
1509 dci->ctl_name = "Altera ECC Manager"; in altr_portb_setup()
1510 dci->mod_name = ecc_name; in altr_portb_setup()
1511 dci->dev_name = ecc_name; in altr_portb_setup()
1563 rc = edac_device_add_device(dci); in altr_portb_setup()
1570 altr_create_edacdev_dbgfs(dci, prv); in altr_portb_setup()
1579 edac_device_free_ctl_info(dci); in altr_portb_setup()
1858 struct edac_device_ctl_info *dci; in altr_edac_a10_device_add() local
1894 dci = edac_device_alloc_ctl_info(sizeof(*altdev), ecc_name, in altr_edac_a10_device_add()
1898 if (!dci) { in altr_edac_a10_device_add()
1905 altdev = dci->pvt_info; in altr_edac_a10_device_add()
1906 dci->dev = edac->dev; in altr_edac_a10_device_add()
1910 altdev->edac_dev = dci; in altr_edac_a10_device_add()
1913 dci->dev = &altdev->ddev; in altr_edac_a10_device_add()
1914 dci->ctl_name = "Altera ECC Manager"; in altr_edac_a10_device_add()
1915 dci->mod_name = ecc_name; in altr_edac_a10_device_add()
1916 dci->dev_name = ecc_name; in altr_edac_a10_device_add()
1969 rc = edac_device_add_device(dci); in altr_edac_a10_device_add()
1976 altr_create_edacdev_dbgfs(dci, prv); in altr_edac_a10_device_add()
1985 edac_device_free_ctl_info(dci); in altr_edac_a10_device_add()