Lines Matching refs:imc
99 d->imc[i].mdev = mdev; in i10nm_get_all_munits()
118 d->imc[i].mbase = mbase; in i10nm_get_all_munits()
133 static bool i10nm_check_ecc(struct skx_imc *imc, int chan) in i10nm_check_ecc() argument
137 mcmtr = *(u32 *)(imc->mbase + 0x20ef8 + chan * 0x4000); in i10nm_check_ecc()
146 struct skx_imc *imc = pvt->imc; in i10nm_get_dimm_config() local
152 if (!imc->mbase) in i10nm_get_dimm_config()
159 mtr = I10NM_GET_DIMMMTR(imc, i, j); in i10nm_get_dimm_config()
160 mcddrtcfg = I10NM_GET_MCDDRTCFG(imc, i, j); in i10nm_get_dimm_config()
162 mtr, mcddrtcfg, imc->mc, i, j); in i10nm_get_dimm_config()
166 imc, i, j); in i10nm_get_dimm_config()
168 ndimms += skx_get_nvdimm_info(dimm, imc, i, j, in i10nm_get_dimm_config()
171 if (ndimms && !i10nm_check_ecc(imc, i)) { in i10nm_get_dimm_config()
173 imc->mc, i); in i10nm_get_dimm_config()
280 if (!d->imc[i].mdev) in i10nm_init()
283 d->imc[i].mc = mc++; in i10nm_init()
284 d->imc[i].lmc = i; in i10nm_init()
285 d->imc[i].src_id = src_id; in i10nm_init()
286 d->imc[i].node_id = node_id; in i10nm_init()
288 rc = skx_register_mci(&d->imc[i], d->imc[i].mdev, in i10nm_init()