Lines Matching refs:mtr
213 #define RANK_DISABLE(mtr) GET_BITFIELD(mtr, 16, 19) argument
214 #define IS_DIMM_PRESENT(mtr) GET_BITFIELD(mtr, 14, 14) argument
215 #define RANK_CNT_BITS(mtr) GET_BITFIELD(mtr, 12, 13) argument
216 #define RANK_WIDTH_BITS(mtr) GET_BITFIELD(mtr, 2, 4) argument
217 #define COL_WIDTH_BITS(mtr) GET_BITFIELD(mtr, 0, 1) argument
331 enum dev_type (*get_width)(struct sbridge_pvt *pvt, u32 mtr);
691 static inline int numrank(enum type type, u32 mtr) in numrank() argument
693 int ranks = (1 << RANK_CNT_BITS(mtr)); in numrank()
701 ranks, max, (unsigned int)RANK_CNT_BITS(mtr), mtr); in numrank()
708 static inline int numrow(u32 mtr) in numrow() argument
710 int rows = (RANK_WIDTH_BITS(mtr) + 12); in numrow()
714 rows, (unsigned int)RANK_WIDTH_BITS(mtr), mtr); in numrow()
721 static inline int numcol(u32 mtr) in numcol() argument
723 int cols = (COL_WIDTH_BITS(mtr) + 10); in numcol()
727 cols, (unsigned int)COL_WIDTH_BITS(mtr), mtr); in numcol()
928 static enum dev_type knl_get_width(struct sbridge_pvt *pvt, u32 mtr) in knl_get_width() argument
934 static enum dev_type sbridge_get_width(struct sbridge_pvt *pvt, u32 mtr) in sbridge_get_width() argument
940 static enum dev_type __ibridge_get_width(u32 mtr) in __ibridge_get_width() argument
944 switch (mtr) { in __ibridge_get_width()
959 static enum dev_type ibridge_get_width(struct sbridge_pvt *pvt, u32 mtr) in ibridge_get_width() argument
965 return __ibridge_get_width(GET_BITFIELD(mtr, 7, 8)); in ibridge_get_width()
968 static enum dev_type broadwell_get_width(struct sbridge_pvt *pvt, u32 mtr) in broadwell_get_width() argument
971 return __ibridge_get_width(GET_BITFIELD(mtr, 8, 9)); in broadwell_get_width()
1606 u32 mtr; in __populate_dimms() local
1624 knl_mtr_reg, &mtr); in __populate_dimms()
1627 mtr_regs[j], &mtr); in __populate_dimms()
1629 edac_dbg(4, "Channel #%d MTR%d = %x\n", i, j, mtr); in __populate_dimms()
1630 if (IS_DIMM_PRESENT(mtr)) { in __populate_dimms()
1639 ranks = numrank(pvt->info.type, mtr); in __populate_dimms()
1647 rows = numrow(mtr); in __populate_dimms()
1648 cols = numcol(mtr); in __populate_dimms()
1661 dimm->dtype = pvt->info.get_width(pvt, mtr); in __populate_dimms()