Lines Matching refs:mtr

105 	u16 mtr[MAX_SLOTS][MAX_BRANCHES];	/* Memory Technlogy Reg */  member
172 #define MTR_DIMMS_PRESENT(mtr) ((mtr) & (1 << 8)) argument
173 #define MTR_DIMMS_ETHROTTLE(mtr) ((mtr) & (1 << 7)) argument
174 #define MTR_DRAM_WIDTH(mtr) (((mtr) & (1 << 6)) ? 8 : 4) argument
175 #define MTR_DRAM_BANKS(mtr) (((mtr) & (1 << 5)) ? 8 : 4) argument
176 #define MTR_DIMM_RANKS(mtr) (((mtr) & (1 << 4)) ? 1 : 0) argument
177 #define MTR_DIMM_ROWS(mtr) (((mtr) >> 2) & 0x3) argument
179 #define MTR_DIMM_ROWS_ADDR_BITS(mtr) (MTR_DIMM_ROWS(mtr) + 13) argument
180 #define MTR_DIMM_COLS(mtr) ((mtr) & 0x3) argument
181 #define MTR_DIMM_COLS_ADDR_BITS(mtr) (MTR_DIMM_COLS(mtr) + 10) argument
590 int mtr, ans, addrBits, channel; in decode_mtr() local
594 mtr = pvt->mtr[slot][branch]; in decode_mtr()
595 ans = MTR_DIMMS_PRESENT(mtr) ? 1 : 0; in decode_mtr()
608 addrBits += MTR_DIMM_ROWS_ADDR_BITS(mtr); in decode_mtr()
610 addrBits += MTR_DIMM_COLS_ADDR_BITS(mtr); in decode_mtr()
612 addrBits += MTR_DIMM_RANKS(mtr); in decode_mtr()
620 edac_dbg(2, "\t\tWIDTH: x%d\n", MTR_DRAM_WIDTH(mtr)); in decode_mtr()
623 MTR_DIMMS_ETHROTTLE(mtr) ? "enabled" : "disabled"); in decode_mtr()
625 edac_dbg(2, "\t\tNUMBANK: %d bank(s)\n", MTR_DRAM_BANKS(mtr)); in decode_mtr()
627 MTR_DIMM_RANKS(mtr) ? "double" : "single"); in decode_mtr()
629 MTR_DIMM_ROWS(mtr) == 0 ? "8,192 - 13 rows" : in decode_mtr()
630 MTR_DIMM_ROWS(mtr) == 1 ? "16,384 - 14 rows" : in decode_mtr()
631 MTR_DIMM_ROWS(mtr) == 2 ? "32,768 - 15 rows" : in decode_mtr()
634 MTR_DIMM_COLS(mtr) == 0 ? "1,024 - 10 columns" : in decode_mtr()
635 MTR_DIMM_COLS(mtr) == 1 ? "2,048 - 11 columns" : in decode_mtr()
636 MTR_DIMM_COLS(mtr) == 2 ? "4,096 - 12 columns" : in decode_mtr()
657 if (MTR_DRAM_WIDTH(mtr) == 8) in decode_mtr()
664 if (MTR_DRAM_WIDTH(mtr) == 8) { in decode_mtr()
673 return mtr; in decode_mtr()
750 int mtr; in i7300_init_csrows() local
793 &pvt->mtr[slot][branch]); in i7300_init_csrows()
801 mtr = decode_mtr(pvt, slot, ch, branch, in i7300_init_csrows()
805 if (!MTR_DIMMS_PRESENT(mtr)) in i7300_init_csrows()