Lines Matching refs:imc

109 			d->imc[i].chan[m->mtype].cdev = pdev;  in get_all_munits()
169 struct skx_imc *imc = pvt->imc; in skx_get_dimm_config() local
177 pci_read_config_dword(imc->chan[i].cdev, 0x8C, &amap); in skx_get_dimm_config()
178 pci_read_config_dword(imc->chan[i].cdev, 0x400, &mcddrtcfg); in skx_get_dimm_config()
182 pci_read_config_dword(imc->chan[i].cdev, in skx_get_dimm_config()
185 ndimms += skx_get_dimm_info(mtr, amap, dimm, imc, i, j); in skx_get_dimm_config()
187 ndimms += skx_get_nvdimm_info(dimm, imc, i, j, in skx_get_dimm_config()
192 if (ndimms && !skx_check_ecc(imc->chan[0].cdev)) { in skx_get_dimm_config()
193 skx_printk(KERN_ERR, "ECC is disabled on imc %d\n", imc->mc); in skx_get_dimm_config()
276 if (d->imc[0].src_id == SKX_ILV_TARGET(tgt)) in skx_sad_decode()
319 res->socket = d->imc[0].src_id; in skx_sad_decode()
320 res->imc = GET_BITFIELD(d->mcroute, lchan * 3, lchan * 3 + 2); in skx_sad_decode()
324 res->addr, res->socket, res->imc, res->channel); in skx_sad_decode()
331 pci_read_config_dword((d)->imc[mc].chan[0].cdev, 0x850 + 4 * (i), &(reg))
333 pci_read_config_dword((d)->imc[mc].chan[0].cdev, 0x880 + 4 * (i), &(reg))
335 pci_read_config_dword((d)->imc[mc].chan[ch].cdev, 0x90 + 4 * (i), &(reg))
365 SKX_GET_TADBASE(res->dev, res->imc, i, base); in skx_tad_decode()
366 SKX_GET_TADWAYNESS(res->dev, res->imc, i, wayness); in skx_tad_decode()
379 SKX_GET_TADCHNILVOFFSET(res->dev, res->imc, res->channel, i, chnilvoffset); in skx_tad_decode()
406 pci_read_config_dword((d)->imc[mc].chan[ch].cdev, \
409 pci_read_config_dword((d)->imc[mc].chan[ch].cdev, \
425 if (res->dev->imc[res->imc].chan[res->channel].dimms[0].close_pg) in skx_rir_decode()
431 SKX_GET_RIRWAYNESS(res->dev, res->imc, res->channel, i, rirway); in skx_rir_decode()
452 SKX_GET_RIRILV(res->dev, res->imc, res->channel, idx, i, rirlv); in skx_rir_decode()
506 struct skx_dimm *dimm = &r->dev->imc[r->imc].chan[r->channel].dimms[r->dimm]; in skx_mad_decode()
650 d->imc[i].mc = mc++; in skx_init()
651 d->imc[i].lmc = i; in skx_init()
652 d->imc[i].src_id = src_id; in skx_init()
653 d->imc[i].node_id = node_id; in skx_init()
654 rc = skx_register_mci(&d->imc[i], d->imc[i].chan[0].cdev, in skx_init()