Lines Matching refs:edac_dev
233 static void mv64x60_sram_check(struct edac_device_ctl_info *edac_dev) in mv64x60_sram_check() argument
235 struct mv64x60_sram_pdata *pdata = edac_dev->pvt_info; in mv64x60_sram_check()
256 edac_device_handle_ue(edac_dev, 0, 0, edac_dev->ctl_name); in mv64x60_sram_check()
261 struct edac_device_ctl_info *edac_dev = dev_id; in mv64x60_sram_isr() local
262 struct mv64x60_sram_pdata *pdata = edac_dev->pvt_info; in mv64x60_sram_isr()
269 mv64x60_sram_check(edac_dev); in mv64x60_sram_isr()
276 struct edac_device_ctl_info *edac_dev; in mv64x60_sram_err_probe() local
284 edac_dev = edac_device_alloc_ctl_info(sizeof(*pdata), in mv64x60_sram_err_probe()
287 if (!edac_dev) { in mv64x60_sram_err_probe()
292 pdata = edac_dev->pvt_info; in mv64x60_sram_err_probe()
295 edac_dev->dev = &pdev->dev; in mv64x60_sram_err_probe()
296 platform_set_drvdata(pdev, edac_dev); in mv64x60_sram_err_probe()
297 edac_dev->dev_name = dev_name(&pdev->dev); in mv64x60_sram_err_probe()
330 edac_dev->mod_name = EDAC_MOD_STR; in mv64x60_sram_err_probe()
331 edac_dev->ctl_name = pdata->name; in mv64x60_sram_err_probe()
334 edac_dev->edac_check = mv64x60_sram_check; in mv64x60_sram_err_probe()
338 if (edac_device_add_device(edac_dev) > 0) { in mv64x60_sram_err_probe()
350 edac_dev); in mv64x60_sram_err_probe()
374 edac_device_free_ctl_info(edac_dev); in mv64x60_sram_err_probe()
380 struct edac_device_ctl_info *edac_dev = platform_get_drvdata(pdev); in mv64x60_sram_err_remove() local
385 edac_device_free_ctl_info(edac_dev); in mv64x60_sram_err_remove()
399 static void mv64x60_cpu_check(struct edac_device_ctl_info *edac_dev) in mv64x60_cpu_check() argument
401 struct mv64x60_cpu_pdata *pdata = edac_dev->pvt_info; in mv64x60_cpu_check()
423 edac_device_handle_ue(edac_dev, 0, 0, edac_dev->ctl_name); in mv64x60_cpu_check()
428 struct edac_device_ctl_info *edac_dev = dev_id; in mv64x60_cpu_isr() local
429 struct mv64x60_cpu_pdata *pdata = edac_dev->pvt_info; in mv64x60_cpu_isr()
437 mv64x60_cpu_check(edac_dev); in mv64x60_cpu_isr()
444 struct edac_device_ctl_info *edac_dev; in mv64x60_cpu_err_probe() local
452 edac_dev = edac_device_alloc_ctl_info(sizeof(*pdata), in mv64x60_cpu_err_probe()
455 if (!edac_dev) { in mv64x60_cpu_err_probe()
460 pdata = edac_dev->pvt_info; in mv64x60_cpu_err_probe()
463 edac_dev->dev = &pdev->dev; in mv64x60_cpu_err_probe()
464 platform_set_drvdata(pdev, edac_dev); in mv64x60_cpu_err_probe()
465 edac_dev->dev_name = dev_name(&pdev->dev); in mv64x60_cpu_err_probe()
526 edac_dev->mod_name = EDAC_MOD_STR; in mv64x60_cpu_err_probe()
527 edac_dev->ctl_name = pdata->name; in mv64x60_cpu_err_probe()
529 edac_dev->edac_check = mv64x60_cpu_check; in mv64x60_cpu_err_probe()
533 if (edac_device_add_device(edac_dev) > 0) { in mv64x60_cpu_err_probe()
545 edac_dev); in mv64x60_cpu_err_probe()
569 edac_device_free_ctl_info(edac_dev); in mv64x60_cpu_err_probe()
575 struct edac_device_ctl_info *edac_dev = platform_get_drvdata(pdev); in mv64x60_cpu_err_remove() local
580 edac_device_free_ctl_info(edac_dev); in mv64x60_cpu_err_remove()