Lines Matching refs:l2c

1844 	struct thunderx_l2c *l2c = container_of(msix, struct thunderx_l2c,
1847 unsigned long tail = ring_pos(l2c->ring_tail, ARRAY_SIZE(l2c->err_ctx));
1848 struct l2c_err_ctx *ctx = &l2c->err_ctx[tail];
1864 switch (l2c->pdev->device) {
1884 dev_err(&l2c->pdev->dev, "Unsupported device: %04x\n",
1885 l2c->pdev->device);
1889 while (CIRC_CNT(l2c->ring_head, l2c->ring_tail,
1890 ARRAY_SIZE(l2c->err_ctx))) {
1893 l2c->edac_dev->ctl_name, reg_int_name, ctx->reg_int,
1901 edac_device_handle_ue(l2c->edac_dev, 0, 0, msg);
1903 edac_device_handle_ce(l2c->edac_dev, 0, 0, msg);
1905 l2c->ring_tail++;
1917 #define L2C_DEBUGFS_ATTR(_name, _reg) DEBUGFS_REG_ATTR(l2c, _name, _reg)
1947 struct thunderx_l2c *l2c;
2012 l2c = edac_dev->pvt_info;
2013 l2c->edac_dev = edac_dev;
2015 l2c->regs = pcim_iomap_table(pdev)[0];
2016 if (!l2c->regs) {
2022 l2c->pdev = pdev;
2024 l2c->ring_head = 0;
2025 l2c->ring_tail = 0;
2027 l2c->msix_ent.entry = 0;
2028 l2c->msix_ent.vector = 0;
2030 ret = pci_enable_msix_exact(pdev, &l2c->msix_ent, 1);
2036 ret = devm_request_threaded_irq(&pdev->dev, l2c->msix_ent.vector,
2040 &l2c->msix_ent);
2046 edac_dev->mod_name = "thunderx-l2c";
2047 edac_dev->ctl_name = "thunderx-l2c";
2056 l2c->debugfs = edac_debugfs_create_dir(pdev->dev.kobj.name);
2058 ret = thunderx_create_debugfs_nodes(l2c->debugfs, l2c_devattr,
2059 l2c, dfs_entries);
2069 writeq(reg_en_mask, l2c->regs + reg_en_offs);
2082 struct thunderx_l2c *l2c = edac_dev->pvt_info;
2086 writeq(L2C_TAD_INT_ENA_ALL, l2c->regs + L2C_TAD_INT_ENA_W1C);
2089 writeq(L2C_CBC_INT_ENA_ALL, l2c->regs + L2C_CBC_INT_ENA_W1C);
2092 writeq(L2C_MCI_INT_ENA_ALL, l2c->regs + L2C_MCI_INT_ENA_W1C);
2096 edac_debugfs_remove_recursive(l2c->debugfs);