Lines Matching refs:edac_dev
357 *edac_dev, char *data) in mpc85xx_l2_inject_data_hi_show()
359 struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; in mpc85xx_l2_inject_data_hi_show()
365 *edac_dev, char *data) in mpc85xx_l2_inject_data_lo_show()
367 struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; in mpc85xx_l2_inject_data_lo_show()
373 *edac_dev, char *data) in mpc85xx_l2_inject_ctrl_show()
375 struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; in mpc85xx_l2_inject_ctrl_show()
381 *edac_dev, const char *data, in mpc85xx_l2_inject_data_hi_store()
384 struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; in mpc85xx_l2_inject_data_hi_store()
394 *edac_dev, const char *data, in mpc85xx_l2_inject_data_lo_store()
397 struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; in mpc85xx_l2_inject_data_lo_store()
407 *edac_dev, const char *data, in mpc85xx_l2_inject_ctrl_store()
410 struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; in mpc85xx_l2_inject_ctrl_store()
449 *edac_dev) in mpc85xx_set_l2_sysfs_attributes()
451 edac_dev->sysfs_attributes = mpc85xx_l2_sysfs_attributes; in mpc85xx_set_l2_sysfs_attributes()
456 static void mpc85xx_l2_check(struct edac_device_ctl_info *edac_dev) in mpc85xx_l2_check() argument
458 struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; in mpc85xx_l2_check()
483 edac_device_handle_ce(edac_dev, 0, 0, edac_dev->ctl_name); in mpc85xx_l2_check()
486 edac_device_handle_ue(edac_dev, 0, 0, edac_dev->ctl_name); in mpc85xx_l2_check()
491 struct edac_device_ctl_info *edac_dev = dev_id; in mpc85xx_l2_isr() local
492 struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; in mpc85xx_l2_isr()
500 mpc85xx_l2_check(edac_dev); in mpc85xx_l2_isr()
507 struct edac_device_ctl_info *edac_dev; in mpc85xx_l2_err_probe() local
515 edac_dev = edac_device_alloc_ctl_info(sizeof(*pdata), in mpc85xx_l2_err_probe()
518 if (!edac_dev) { in mpc85xx_l2_err_probe()
523 pdata = edac_dev->pvt_info; in mpc85xx_l2_err_probe()
526 edac_dev->dev = &op->dev; in mpc85xx_l2_err_probe()
527 dev_set_drvdata(edac_dev->dev, edac_dev); in mpc85xx_l2_err_probe()
528 edac_dev->ctl_name = pdata->name; in mpc85xx_l2_err_probe()
529 edac_dev->dev_name = pdata->name; in mpc85xx_l2_err_probe()
563 edac_dev->mod_name = EDAC_MOD_STR; in mpc85xx_l2_err_probe()
566 edac_dev->edac_check = mpc85xx_l2_check; in mpc85xx_l2_err_probe()
568 mpc85xx_set_l2_sysfs_attributes(edac_dev); in mpc85xx_l2_err_probe()
572 if (edac_device_add_device(edac_dev) > 0) { in mpc85xx_l2_err_probe()
581 "[EDAC] L2 err", edac_dev); in mpc85xx_l2_err_probe()
594 edac_dev->op_state = OP_RUNNING_INTERRUPT; in mpc85xx_l2_err_probe()
610 edac_device_free_ctl_info(edac_dev); in mpc85xx_l2_err_probe()
616 struct edac_device_ctl_info *edac_dev = dev_get_drvdata(&op->dev); in mpc85xx_l2_err_remove() local
617 struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; in mpc85xx_l2_err_remove()
628 edac_device_free_ctl_info(edac_dev); in mpc85xx_l2_err_remove()