Lines Matching refs:altdev

1469 	struct altr_edac_device_dev *altdev;  in altr_portb_setup()  local
1487 dci = edac_device_alloc_ctl_info(sizeof(*altdev), ecc_name, 1, in altr_portb_setup()
1497 altdev = dci->pvt_info; in altr_portb_setup()
1498 *altdev = *device; in altr_portb_setup()
1500 if (!devres_open_group(&altdev->ddev, altr_portb_setup, GFP_KERNEL)) in altr_portb_setup()
1504 altdev->edac_dev_name = ecc_name; in altr_portb_setup()
1505 altdev->edac_idx = edac_idx; in altr_portb_setup()
1506 altdev->edac_dev = dci; in altr_portb_setup()
1507 altdev->data = prv; in altr_portb_setup()
1508 dci->dev = &altdev->ddev; in altr_portb_setup()
1520 altdev->sb_irq = irq_of_parse_and_map(np, 1); in altr_portb_setup()
1522 altdev->sb_irq = irq_of_parse_and_map(np, 2); in altr_portb_setup()
1524 if (!altdev->sb_irq) { in altr_portb_setup()
1529 rc = devm_request_irq(&altdev->ddev, altdev->sb_irq, in altr_portb_setup()
1532 ecc_name, altdev); in altr_portb_setup()
1540 rc = of_property_read_u32_index(np, "interrupts", 1, &altdev->db_irq); in altr_portb_setup()
1547 altdev->db_irq = irq_of_parse_and_map(np, 3); in altr_portb_setup()
1548 if (!altdev->db_irq) { in altr_portb_setup()
1553 rc = devm_request_irq(&altdev->ddev, altdev->db_irq, in altr_portb_setup()
1556 ecc_name, altdev); in altr_portb_setup()
1572 list_add(&altdev->next, &altdev->edac->a10_ecc_devices); in altr_portb_setup()
1574 devres_remove_group(&altdev->ddev, altr_portb_setup); in altr_portb_setup()
1580 devres_release_group(&altdev->ddev, altr_portb_setup); in altr_portb_setup()
1859 struct altr_edac_device_dev *altdev; in altr_edac_a10_device_add() local
1894 dci = edac_device_alloc_ctl_info(sizeof(*altdev), ecc_name, in altr_edac_a10_device_add()
1905 altdev = dci->pvt_info; in altr_edac_a10_device_add()
1907 altdev->edac_dev_name = ecc_name; in altr_edac_a10_device_add()
1908 altdev->edac_idx = edac_idx; in altr_edac_a10_device_add()
1909 altdev->edac = edac; in altr_edac_a10_device_add()
1910 altdev->edac_dev = dci; in altr_edac_a10_device_add()
1911 altdev->data = prv; in altr_edac_a10_device_add()
1912 altdev->ddev = *edac->dev; in altr_edac_a10_device_add()
1913 dci->dev = &altdev->ddev; in altr_edac_a10_device_add()
1918 altdev->base = devm_ioremap_resource(edac->dev, &res); in altr_edac_a10_device_add()
1919 if (IS_ERR(altdev->base)) { in altr_edac_a10_device_add()
1920 rc = PTR_ERR(altdev->base); in altr_edac_a10_device_add()
1925 if (altdev->data->setup) { in altr_edac_a10_device_add()
1926 rc = altdev->data->setup(altdev); in altr_edac_a10_device_add()
1931 altdev->sb_irq = irq_of_parse_and_map(np, 0); in altr_edac_a10_device_add()
1932 if (!altdev->sb_irq) { in altr_edac_a10_device_add()
1937 rc = devm_request_irq(edac->dev, altdev->sb_irq, prv->ecc_irq_handler, in altr_edac_a10_device_add()
1939 ecc_name, altdev); in altr_edac_a10_device_add()
1947 rc = of_property_read_u32_index(np, "interrupts", 0, &altdev->db_irq); in altr_edac_a10_device_add()
1954 altdev->db_irq = irq_of_parse_and_map(np, 1); in altr_edac_a10_device_add()
1955 if (!altdev->db_irq) { in altr_edac_a10_device_add()
1960 rc = devm_request_irq(edac->dev, altdev->db_irq, prv->ecc_irq_handler, in altr_edac_a10_device_add()
1962 ecc_name, altdev); in altr_edac_a10_device_add()
1978 list_add(&altdev->next, &edac->a10_ecc_devices); in altr_edac_a10_device_add()