Lines Matching defs:device
263 "Unable to ioremap device\n");
296 /* Grab the register range from the sdr controller in device tree */
317 /* Grab memory size from device tree. */
377 "Unable to get managed device resource\n");
474 * from the device tree or defconfig.
477 static int altr_sdram_prepare(struct device *dev)
592 * Note that generic_ptr is initialized to the device * but in
699 * This is a generic EDAC device driver that will support
703 * function index in the device tree.
743 "%s: Unable to allocate EDAC device\n", ecc_name);
759 /* Get driver specific data for this EDAC device */
801 "%s:Error setting up EDAC device: %d\n", ecc_name, res);
837 altr_check_ecc_deps(struct altr_edac_device_dev *device)
839 void __iomem *base = device->base;
840 const struct edac_device_prv_data *prv = device->data;
847 device->edac_dev_name);
961 /* Get the ECC Manager - parent of the device EDACs */
1145 altr_check_ocram_deps_init(struct altr_edac_device_dev *device)
1147 void __iomem *base = device->base;
1150 ret = altr_check_ecc_deps(device);
1195 struct device *dev = *other;
1216 struct device *dev = other;
1230 static int altr_l2_check_deps(struct altr_edac_device_dev *device)
1232 void __iomem *base = device->base;
1233 const struct edac_device_prv_data *prv = device->data;
1336 static int __init socfpga_init_nand_ecc(struct altr_edac_device_dev *device)
1344 return altr_check_ecc_deps(device);
1366 static int __init socfpga_init_dma_ecc(struct altr_edac_device_dev *device)
1374 return altr_check_ecc_deps(device);
1396 static int __init socfpga_init_usb_ecc(struct altr_edac_device_dev *device)
1404 return altr_check_ecc_deps(device);
1426 static int __init socfpga_init_qspi_ecc(struct altr_edac_device_dev *device)
1434 return altr_check_ecc_deps(device);
1457 static int altr_portb_setup(struct altr_edac_device_dev *device)
1466 rc = altr_check_ecc_deps(device);
1476 /* Create the PortB EDAC device */
1482 "%s: Unable to allocate PortB EDAC device\n",
1487 /* Initialize the PortB EDAC device structure from PortA structure */
1489 *altdev = *device;
1568 "%s:Error setting up EDAC device: %d\n", ecc_name, rc);
1572 static int __init socfpga_init_sdmmc_ecc(struct altr_edac_device_dev *device)
1594 return altr_portb_setup(device);
1819 /* Ensure parent device is enabled if parent node exists */
1860 /* Get driver specific data for this EDAC device */
1889 "%s: Unable to allocate EDAC device\n", ecc_name);
1978 "%s:Error setting up EDAC device: %d\n", ecc_name, rc);