Lines Matching refs:imc
115 d->imc[i].chan[m->mtype].cdev = pdev; in get_all_munits()
121 d->imc[i].chan[m->mtype - ERRCHAN0].edev = pdev; in get_all_munits()
181 struct skx_imc *imc = pvt->imc; in skx_get_dimm_config() local
187 pci_read_config_dword(imc->chan[0].cdev, 0x87c, &mcmtr); in skx_get_dimm_config()
191 pci_read_config_dword(imc->chan[i].cdev, 0x8C, &amap); in skx_get_dimm_config()
192 pci_read_config_dword(imc->chan[i].cdev, 0x400, &mcddrtcfg); in skx_get_dimm_config()
195 pci_read_config_dword(imc->chan[i].cdev, in skx_get_dimm_config()
198 ndimms += skx_get_dimm_info(mtr, mcmtr, amap, dimm, imc, i, j, cfg); in skx_get_dimm_config()
200 ndimms += skx_get_nvdimm_info(dimm, imc, i, j, in skx_get_dimm_config()
206 skx_printk(KERN_ERR, "ECC is disabled on imc %d\n", imc->mc); in skx_get_dimm_config()
241 edev = res->dev->imc[res->imc].chan[res->channel].edev; in skx_show_retry_rd_err_log()
323 if (d->imc[0].src_id == SKX_ILV_TARGET(tgt)) in skx_sad_decode()
366 res->socket = d->imc[0].src_id; in skx_sad_decode()
367 res->imc = GET_BITFIELD(d->mcroute, lchan * 3, lchan * 3 + 2); in skx_sad_decode()
371 res->addr, res->socket, res->imc, res->channel); in skx_sad_decode()
378 pci_read_config_dword((d)->imc[mc].chan[0].cdev, 0x850 + 4 * (i), &(reg))
380 pci_read_config_dword((d)->imc[mc].chan[0].cdev, 0x880 + 4 * (i), &(reg))
382 pci_read_config_dword((d)->imc[mc].chan[ch].cdev, 0x90 + 4 * (i), &(reg))
412 SKX_GET_TADBASE(res->dev, res->imc, i, base); in skx_tad_decode()
413 SKX_GET_TADWAYNESS(res->dev, res->imc, i, wayness); in skx_tad_decode()
426 SKX_GET_TADCHNILVOFFSET(res->dev, res->imc, res->channel, i, chnilvoffset); in skx_tad_decode()
453 pci_read_config_dword((d)->imc[mc].chan[ch].cdev, \
456 pci_read_config_dword((d)->imc[mc].chan[ch].cdev, \
472 if (res->dev->imc[res->imc].chan[res->channel].dimms[0].close_pg) in skx_rir_decode()
478 SKX_GET_RIRWAYNESS(res->dev, res->imc, res->channel, i, rirway); in skx_rir_decode()
499 SKX_GET_RIRILV(res->dev, res->imc, res->channel, idx, i, rirlv); in skx_rir_decode()
553 struct skx_dimm *dimm = &r->dev->imc[r->imc].chan[r->channel].dimms[r->dimm]; in skx_mad_decode()
703 d->imc[i].mc = mc++; in skx_init()
704 d->imc[i].lmc = i; in skx_init()
705 d->imc[i].src_id = src_id; in skx_init()
706 d->imc[i].node_id = node_id; in skx_init()
707 rc = skx_register_mci(&d->imc[i], d->imc[i].chan[0].cdev, in skx_init()