Lines Matching refs:imc
117 res->imc = (int)adxl_values[component_indices[INDEX_MEMCTRL]]; in skx_adxl_decode()
287 struct skx_imc *imc, int chan, int dimmno) in skx_get_dimm_info() argument
303 imc->mc, chan, dimmno, size, npages, in skx_get_dimm_info()
306 imc->chan[chan].dimms[dimmno].close_pg = GET_BITFIELD(mtr, 0, 0); in skx_get_dimm_info()
307 imc->chan[chan].dimms[dimmno].bank_xor_enable = GET_BITFIELD(mtr, 9, 9); in skx_get_dimm_info()
308 imc->chan[chan].dimms[dimmno].fine_grain_bank = GET_BITFIELD(amap, 0, 0); in skx_get_dimm_info()
309 imc->chan[chan].dimms[dimmno].rowbits = rows; in skx_get_dimm_info()
310 imc->chan[chan].dimms[dimmno].colbits = cols; in skx_get_dimm_info()
318 imc->src_id, imc->lmc, chan, dimmno); in skx_get_dimm_info()
323 int skx_get_nvdimm_info(struct dimm_info *dimm, struct skx_imc *imc, in skx_get_nvdimm_info() argument
331 dev_handle = ACPI_NFIT_BUILD_DEVICE_HANDLE(dimmno, chan, imc->lmc, in skx_get_nvdimm_info()
332 imc->src_id, 0); in skx_get_nvdimm_info()
363 imc->mc, chan, dimmno, size >> 20, dimm->nr_pages); in skx_get_nvdimm_info()
366 imc->src_id, imc->lmc, chan, dimmno); in skx_get_nvdimm_info()
371 int skx_register_mci(struct skx_imc *imc, struct pci_dev *pdev, in skx_register_mci() argument
387 mci = edac_mc_alloc(imc->mc, ARRAY_SIZE(layers), layers, in skx_register_mci()
393 edac_dbg(0, "MC#%d: mci = %p\n", imc->mc, mci); in skx_register_mci()
396 imc->mci = mci; in skx_register_mci()
398 pvt->imc = imc; in skx_register_mci()
401 imc->node_id, imc->lmc); in skx_register_mci()
434 imc->mci = NULL; in skx_register_mci()
438 static void skx_unregister_mci(struct skx_imc *imc) in skx_unregister_mci() argument
440 struct mem_ctl_info *mci = imc->mci; in skx_unregister_mci()
445 edac_dbg(0, "MC%d: mci = %p\n", imc->mc, mci); in skx_unregister_mci()
465 if (d->imc[0].src_id == src_id) in get_mci()
466 return d->imc[lmc].mci; in get_mci()
552 res->socket, res->imc, res->rank, in skx_mce_output_error()
587 mci = get_mci(res.socket, res.imc); in skx_mce_check_error()
592 mci = res.dev->imc[res.imc].mci; in skx_mce_check_error()
631 if (d->imc[i].mci) in skx_remove()
632 skx_unregister_mci(&d->imc[i]); in skx_remove()
634 if (d->imc[i].mdev) in skx_remove()
635 pci_dev_put(d->imc[i].mdev); in skx_remove()
637 if (d->imc[i].mbase) in skx_remove()
638 iounmap(d->imc[i].mbase); in skx_remove()
641 if (d->imc[i].chan[j].cdev) in skx_remove()
642 pci_dev_put(d->imc[i].chan[j].cdev); in skx_remove()