Lines Matching refs:mtr

215 #define RANK_DISABLE(mtr)		GET_BITFIELD(mtr, 16, 19)  argument
216 #define IS_DIMM_PRESENT(mtr) GET_BITFIELD(mtr, 14, 14) argument
217 #define RANK_CNT_BITS(mtr) GET_BITFIELD(mtr, 12, 13) argument
218 #define RANK_WIDTH_BITS(mtr) GET_BITFIELD(mtr, 2, 4) argument
219 #define COL_WIDTH_BITS(mtr) GET_BITFIELD(mtr, 0, 1) argument
333 enum dev_type (*get_width)(struct sbridge_pvt *pvt, u32 mtr);
699 static inline int numrank(enum type type, u32 mtr) in numrank() argument
701 int ranks = (1 << RANK_CNT_BITS(mtr)); in numrank()
709 ranks, max, (unsigned int)RANK_CNT_BITS(mtr), mtr); in numrank()
716 static inline int numrow(u32 mtr) in numrow() argument
718 int rows = (RANK_WIDTH_BITS(mtr) + 12); in numrow()
722 rows, (unsigned int)RANK_WIDTH_BITS(mtr), mtr); in numrow()
729 static inline int numcol(u32 mtr) in numcol() argument
731 int cols = (COL_WIDTH_BITS(mtr) + 10); in numcol()
735 cols, (unsigned int)COL_WIDTH_BITS(mtr), mtr); in numcol()
936 static enum dev_type knl_get_width(struct sbridge_pvt *pvt, u32 mtr) in knl_get_width() argument
942 static enum dev_type sbridge_get_width(struct sbridge_pvt *pvt, u32 mtr) in sbridge_get_width() argument
948 static enum dev_type __ibridge_get_width(u32 mtr) in __ibridge_get_width() argument
952 switch (mtr) { in __ibridge_get_width()
967 static enum dev_type ibridge_get_width(struct sbridge_pvt *pvt, u32 mtr) in ibridge_get_width() argument
973 return __ibridge_get_width(GET_BITFIELD(mtr, 7, 8)); in ibridge_get_width()
976 static enum dev_type broadwell_get_width(struct sbridge_pvt *pvt, u32 mtr) in broadwell_get_width() argument
979 return __ibridge_get_width(GET_BITFIELD(mtr, 8, 9)); in broadwell_get_width()
1614 u32 mtr, amap = 0; in __populate_dimms() local
1633 knl_mtr_reg, &mtr); in __populate_dimms()
1636 mtr_regs[j], &mtr); in __populate_dimms()
1638 edac_dbg(4, "Channel #%d MTR%d = %x\n", i, j, mtr); in __populate_dimms()
1640 if (IS_DIMM_PRESENT(mtr)) { in __populate_dimms()
1649 ranks = numrank(pvt->info.type, mtr); in __populate_dimms()
1657 rows = numrow(mtr); in __populate_dimms()
1658 cols = numcol(mtr); in __populate_dimms()
1671 dimm->dtype = pvt->info.get_width(pvt, mtr); in __populate_dimms()