Lines Matching refs:l2c
21 #define EDAC_MOD_STR "octeon-l2c"
23 static void octeon_l2c_poll_oct1(struct edac_device_ctl_info *l2c)
31 edac_device_handle_ce(l2c, 0, 0,
36 edac_device_handle_ue(l2c, 0, 0,
46 edac_device_handle_ce(l2c, 0, 1,
51 edac_device_handle_ue(l2c, 0, 1,
60 static void _octeon_l2c_poll_oct2(struct edac_device_ctl_info *l2c, int tad)
79 edac_device_handle_ue(l2c, tad, 1, buf2);
85 edac_device_handle_ce(l2c, tad, 1, buf2);
91 edac_device_handle_ue(l2c, tad, 1, buf2);
97 edac_device_handle_ce(l2c, tad, 1, buf2);
114 edac_device_handle_ue(l2c, tad, 0, buf2);
120 edac_device_handle_ce(l2c, tad, 0, buf2);
126 static void octeon_l2c_poll_oct2(struct edac_device_ctl_info *l2c)
129 for (i = 0; i < l2c->nr_instances; i++)
130 _octeon_l2c_poll_oct2(l2c, i);
135 struct edac_device_ctl_info *l2c;
140 l2c = edac_device_alloc_ctl_info(0, "l2c", num_tads, "l2c", 2, 0,
142 if (!l2c)
145 l2c->dev = &pdev->dev;
146 platform_set_drvdata(pdev, l2c);
147 l2c->dev_name = dev_name(&pdev->dev);
149 l2c->mod_name = "octeon-l2c";
150 l2c->ctl_name = "octeon_l2c_err";
167 l2c->edac_check = octeon_l2c_poll_oct1;
170 l2c->edac_check = octeon_l2c_poll_oct2;
173 if (edac_device_add_device(l2c) > 0) {
182 edac_device_free_ctl_info(l2c);
189 struct edac_device_ctl_info *l2c = platform_get_drvdata(pdev);
192 edac_device_free_ctl_info(l2c);