Lines Matching refs:dimm
182 struct dimm_info *dimm; in skx_get_dimm_config() local
194 dimm = edac_get_dimm(mci, i, j, 0); 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()
503 res->dimm = chan_rank / 4; in skx_rir_decode()
507 res->addr, res->dimm, res->rank, in skx_rir_decode()
553 struct skx_dimm *dimm = &r->dev->imc[r->imc].chan[r->channel].dimms[r->dimm]; in skx_mad_decode() local
554 int bg0 = dimm->fine_grain_bank ? 6 : 13; in skx_mad_decode()
556 if (dimm->close_pg) { in skx_mad_decode()
557 r->row = skx_bits(r->rank_address, dimm->rowbits, skx_close_row); in skx_mad_decode()
558 r->column = skx_bits(r->rank_address, dimm->colbits, skx_close_column); in skx_mad_decode()
560 r->bank_address = skx_bank_bits(r->rank_address, 8, 9, dimm->bank_xor_enable, 22, 28); in skx_mad_decode()
561 r->bank_group = skx_bank_bits(r->rank_address, 6, 7, dimm->bank_xor_enable, 20, 21); in skx_mad_decode()
563 r->row = skx_bits(r->rank_address, dimm->rowbits, skx_open_row); in skx_mad_decode()
564 if (dimm->fine_grain_bank) in skx_mad_decode()
565 r->column = skx_bits(r->rank_address, dimm->colbits, skx_open_fine_column); in skx_mad_decode()
567 r->column = skx_bits(r->rank_address, dimm->colbits, skx_open_column); in skx_mad_decode()
568 r->bank_address = skx_bank_bits(r->rank_address, 18, 19, dimm->bank_xor_enable, 22, 23); in skx_mad_decode()
569 r->bank_group = skx_bank_bits(r->rank_address, bg0, 17, dimm->bank_xor_enable, 20, 21); in skx_mad_decode()
571 r->row &= (1u << dimm->rowbits) - 1; in skx_mad_decode()