Lines Matching refs:p
42 struct co_cache_error *p = container_of(this, struct co_cache_error, in co_cache_error_event() local
58 edac_device_printk(p->ed, KERN_ERR, in co_cache_error_event()
63 edac_device_handle_ce(p->ed, cpu, 1, "icache"); in co_cache_error_event()
66 edac_device_printk(p->ed, KERN_ERR, in co_cache_error_event()
71 edac_device_handle_ue(p->ed, cpu, 0, "dcache"); in co_cache_error_event()
73 edac_device_handle_ce(p->ed, cpu, 0, "dcache"); in co_cache_error_event()
87 struct co_cache_error *p = devm_kzalloc(&pdev->dev, sizeof(*p), in co_cache_error_probe() local
89 if (!p) in co_cache_error_probe()
92 p->notifier.notifier_call = co_cache_error_event; in co_cache_error_probe()
93 platform_set_drvdata(pdev, p); in co_cache_error_probe()
95 p->ed = edac_device_alloc_ctl_info(0, "cpu", num_possible_cpus(), in co_cache_error_probe()
98 if (!p->ed) in co_cache_error_probe()
101 p->ed->dev = &pdev->dev; in co_cache_error_probe()
103 p->ed->dev_name = dev_name(&pdev->dev); in co_cache_error_probe()
105 p->ed->mod_name = "octeon-cpu"; in co_cache_error_probe()
106 p->ed->ctl_name = "cache"; in co_cache_error_probe()
108 if (edac_device_add_device(p->ed)) { in co_cache_error_probe()
113 register_co_cache_error_notifier(&p->notifier); in co_cache_error_probe()
118 edac_device_free_ctl_info(p->ed); in co_cache_error_probe()
125 struct co_cache_error *p = platform_get_drvdata(pdev); in co_cache_error_remove() local
127 unregister_co_cache_error_notifier(&p->notifier); in co_cache_error_remove()
129 edac_device_free_ctl_info(p->ed); in co_cache_error_remove()