i7core_dev 255 drivers/edac/i7core_edac.c struct i7core_dev *i7core_dev; i7core_dev 441 drivers/edac/i7core_edac.c static struct i7core_dev *get_i7core_dev(u8 socket) i7core_dev 443 drivers/edac/i7core_edac.c struct i7core_dev *i7core_dev; i7core_dev 445 drivers/edac/i7core_edac.c list_for_each_entry(i7core_dev, &i7core_edac_list, list) { i7core_dev 446 drivers/edac/i7core_edac.c if (i7core_dev->socket == socket) i7core_dev 447 drivers/edac/i7core_edac.c return i7core_dev; i7core_dev 453 drivers/edac/i7core_edac.c static struct i7core_dev *alloc_i7core_dev(u8 socket, i7core_dev 456 drivers/edac/i7core_edac.c struct i7core_dev *i7core_dev; i7core_dev 458 drivers/edac/i7core_edac.c i7core_dev = kzalloc(sizeof(*i7core_dev), GFP_KERNEL); i7core_dev 459 drivers/edac/i7core_edac.c if (!i7core_dev) i7core_dev 462 drivers/edac/i7core_edac.c i7core_dev->pdev = kcalloc(table->n_devs, sizeof(*i7core_dev->pdev), i7core_dev 464 drivers/edac/i7core_edac.c if (!i7core_dev->pdev) { i7core_dev 465 drivers/edac/i7core_edac.c kfree(i7core_dev); i7core_dev 469 drivers/edac/i7core_edac.c i7core_dev->socket = socket; i7core_dev 470 drivers/edac/i7core_edac.c i7core_dev->n_devs = table->n_devs; i7core_dev 471 drivers/edac/i7core_edac.c list_add_tail(&i7core_dev->list, &i7core_edac_list); i7core_dev 473 drivers/edac/i7core_edac.c return i7core_dev; i7core_dev 476 drivers/edac/i7core_edac.c static void free_i7core_dev(struct i7core_dev *i7core_dev) i7core_dev 478 drivers/edac/i7core_edac.c list_del(&i7core_dev->list); i7core_dev 479 drivers/edac/i7core_edac.c kfree(i7core_dev->pdev); i7core_dev 480 drivers/edac/i7core_edac.c kfree(i7core_dev); i7core_dev 508 drivers/edac/i7core_edac.c pvt->i7core_dev->socket, pvt->info.mc_control, i7core_dev 623 drivers/edac/i7core_edac.c pvt->i7core_dev->socket, i, j); i7core_dev 1156 drivers/edac/i7core_edac.c ATTRIBUTE_GROUPS(i7core_dev); i7core_dev 1235 drivers/edac/i7core_edac.c static void i7core_put_devices(struct i7core_dev *i7core_dev) i7core_dev 1240 drivers/edac/i7core_edac.c for (i = 0; i < i7core_dev->n_devs; i++) { i7core_dev 1241 drivers/edac/i7core_edac.c struct pci_dev *pdev = i7core_dev->pdev[i]; i7core_dev 1253 drivers/edac/i7core_edac.c struct i7core_dev *i7core_dev, *tmp; i7core_dev 1255 drivers/edac/i7core_edac.c list_for_each_entry_safe(i7core_dev, tmp, &i7core_edac_list, list) { i7core_dev 1256 drivers/edac/i7core_edac.c i7core_put_devices(i7core_dev); i7core_dev 1257 drivers/edac/i7core_edac.c free_i7core_dev(i7core_dev); i7core_dev 1310 drivers/edac/i7core_edac.c struct i7core_dev *i7core_dev; i7core_dev 1363 drivers/edac/i7core_edac.c i7core_dev = get_i7core_dev(socket); i7core_dev 1364 drivers/edac/i7core_edac.c if (!i7core_dev) { i7core_dev 1365 drivers/edac/i7core_edac.c i7core_dev = alloc_i7core_dev(socket, table); i7core_dev 1366 drivers/edac/i7core_edac.c if (!i7core_dev) { i7core_dev 1372 drivers/edac/i7core_edac.c if (i7core_dev->pdev[devno]) { i7core_dev 1382 drivers/edac/i7core_edac.c i7core_dev->pdev[devno] = pdev; i7core_dev 1454 drivers/edac/i7core_edac.c struct i7core_dev *i7core_dev) i7core_dev 1463 drivers/edac/i7core_edac.c for (i = 0; i < i7core_dev->n_devs; i++) { i7core_dev 1464 drivers/edac/i7core_edac.c pdev = i7core_dev->pdev[i]; i7core_dev 1513 drivers/edac/i7core_edac.c pdev, i7core_dev->socket); i7core_dev 1815 drivers/edac/i7core_edac.c struct i7core_dev *i7_dev; i7core_dev 2078 drivers/edac/i7core_edac.c &pvt->i7core_dev->pdev[0]->dev, i7core_dev 2092 drivers/edac/i7core_edac.c pvt->i7core_dev->socket); i7core_dev 2096 drivers/edac/i7core_edac.c static void i7core_unregister_mci(struct i7core_dev *i7core_dev) i7core_dev 2098 drivers/edac/i7core_edac.c struct mem_ctl_info *mci = i7core_dev->mci; i7core_dev 2102 drivers/edac/i7core_edac.c edac_dbg(0, "MC: dev = %p\n", &i7core_dev->pdev[0]->dev); i7core_dev 2110 drivers/edac/i7core_edac.c edac_dbg(0, "MC: mci = %p, dev = %p\n", mci, &i7core_dev->pdev[0]->dev); i7core_dev 2126 drivers/edac/i7core_edac.c i7core_dev->mci = NULL; i7core_dev 2129 drivers/edac/i7core_edac.c static int i7core_register_mci(struct i7core_dev *i7core_dev) i7core_dev 2144 drivers/edac/i7core_edac.c mci = edac_mc_alloc(i7core_dev->socket, ARRAY_SIZE(layers), layers, i7core_dev 2149 drivers/edac/i7core_edac.c edac_dbg(0, "MC: mci = %p, dev = %p\n", mci, &i7core_dev->pdev[0]->dev); i7core_dev 2155 drivers/edac/i7core_edac.c pvt->i7core_dev = i7core_dev; i7core_dev 2156 drivers/edac/i7core_edac.c i7core_dev->mci = mci; i7core_dev 2168 drivers/edac/i7core_edac.c mci->ctl_name = kasprintf(GFP_KERNEL, "i7 core #%d", i7core_dev->socket); i7core_dev 2174 drivers/edac/i7core_edac.c mci->dev_name = pci_name(i7core_dev->pdev[0]); i7core_dev 2178 drivers/edac/i7core_edac.c rc = mci_bind_devs(mci, i7core_dev); i7core_dev 2186 drivers/edac/i7core_edac.c mci->pdev = &i7core_dev->pdev[0]->dev; i7core_dev 2230 drivers/edac/i7core_edac.c i7core_dev->mci = NULL; i7core_dev 2245 drivers/edac/i7core_edac.c struct i7core_dev *i7core_dev; i7core_dev 2263 drivers/edac/i7core_edac.c list_for_each_entry(i7core_dev, &i7core_edac_list, list) { i7core_dev 2265 drivers/edac/i7core_edac.c rc = i7core_register_mci(i7core_dev); i7core_dev 2291 drivers/edac/i7core_edac.c list_for_each_entry(i7core_dev, &i7core_edac_list, list) i7core_dev 2292 drivers/edac/i7core_edac.c i7core_unregister_mci(i7core_dev); i7core_dev 2306 drivers/edac/i7core_edac.c struct i7core_dev *i7core_dev; i7core_dev 2325 drivers/edac/i7core_edac.c list_for_each_entry(i7core_dev, &i7core_edac_list, list) i7core_dev 2326 drivers/edac/i7core_edac.c i7core_unregister_mci(i7core_dev);