Lines Matching full:l2c

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