Lines Matching refs:GET_BITFIELD

51 #define GET_BITFIELD(v, lo, hi)	\  macro
75 #define DRAM_RULE_ENABLE(reg) GET_BITFIELD(reg, 0, 0)
76 #define A7MODE(reg) GET_BITFIELD(reg, 26, 26)
146 return GET_BITFIELD(reg, table[interleave].start, in sad_pkg()
161 #define GET_TOLM(reg) ((GET_BITFIELD(reg, 0, 3) << 28) | 0x3ffffff)
162 #define GET_TOHM(reg) ((GET_BITFIELD(reg, 0, 20) << 25) | 0x3ffffff)
168 #define SOURCE_ID(reg) GET_BITFIELD(reg, 9, 11)
170 #define SOURCE_ID_KNL(reg) GET_BITFIELD(reg, 12, 14)
183 #define TAD_LIMIT(reg) ((GET_BITFIELD(reg, 12, 31) << 26) | 0x3ffffff)
184 #define TAD_SOCK(reg) GET_BITFIELD(reg, 10, 11)
185 #define TAD_CH(reg) GET_BITFIELD(reg, 8, 9)
186 #define TAD_TGT3(reg) GET_BITFIELD(reg, 6, 7)
187 #define TAD_TGT2(reg) GET_BITFIELD(reg, 4, 5)
188 #define TAD_TGT1(reg) GET_BITFIELD(reg, 2, 3)
189 #define TAD_TGT0(reg) GET_BITFIELD(reg, 0, 1)
196 #define IS_ECC_ENABLED(mcmtr) GET_BITFIELD(mcmtr, 2, 2)
197 #define IS_LOCKSTEP_ENABLED(mcmtr) GET_BITFIELD(mcmtr, 1, 1)
198 #define IS_CLOSE_PG(mcmtr) GET_BITFIELD(mcmtr, 0, 0)
203 #define IS_MIRROR_ENABLED(reg) GET_BITFIELD(reg, 0, 0)
213 #define RANK_DISABLE(mtr) GET_BITFIELD(mtr, 16, 19)
214 #define IS_DIMM_PRESENT(mtr) GET_BITFIELD(mtr, 14, 14)
215 #define RANK_CNT_BITS(mtr) GET_BITFIELD(mtr, 12, 13)
216 #define RANK_WIDTH_BITS(mtr) GET_BITFIELD(mtr, 2, 4)
217 #define COL_WIDTH_BITS(mtr) GET_BITFIELD(mtr, 0, 1)
224 #define CHN_IDX_OFFSET(reg) GET_BITFIELD(reg, 28, 29)
225 #define TAD_OFFSET(reg) (GET_BITFIELD(reg, 6, 25) << 26)
232 #define IS_RIR_VALID(reg) GET_BITFIELD(reg, 31, 31)
233 #define RIR_WAY(reg) GET_BITFIELD(reg, 28, 29)
246 GET_BITFIELD(reg, 20, 23) : GET_BITFIELD(reg, 16, 19))
249 GET_BITFIELD(reg, 2, 15) : GET_BITFIELD(reg, 2, 14))
257 #define RANK_ODD_OV(reg) GET_BITFIELD(reg, 31, 31)
258 #define RANK_ODD_ERR_CNT(reg) GET_BITFIELD(reg, 16, 30)
259 #define RANK_EVEN_OV(reg) GET_BITFIELD(reg, 15, 15)
260 #define RANK_EVEN_ERR_CNT(reg) GET_BITFIELD(reg, 0, 14)
272 #define RANK_ODD_ERR_THRSLD(reg) GET_BITFIELD(reg, 16, 30)
273 #define RANK_EVEN_ERR_THRSLD(reg) GET_BITFIELD(reg, 0, 14)
837 return ((u64)GET_BITFIELD(reg, 1, 10) << 29) | 0x1fffffff; in rir_limit()
842 return (GET_BITFIELD(reg, 6, 25) << 26) | 0x3ffffff; in sad_limit()
847 return GET_BITFIELD(reg, 1, 1); in interleave_mode()
852 return GET_BITFIELD(reg, 2, 3); in dram_attr()
857 return (GET_BITFIELD(reg, 7, 26) << 26) | 0x3ffffff; in knl_sad_limit()
862 return GET_BITFIELD(reg, 1, 2); in knl_interleave_mode()
879 return GET_BITFIELD(reg, 3, 4); in dram_attr_knl()
891 if (GET_BITFIELD(reg, 11, 11)) in get_memory_type()
914 if (GET_BITFIELD(reg, 16, 16)) in haswell_get_memory_type()
918 if (GET_BITFIELD(reg, 14, 14)) { in haswell_get_memory_type()
971 return __ibridge_get_width(GET_BITFIELD(mtr, 7, 8)); in ibridge_get_width()
977 return __ibridge_get_width(GET_BITFIELD(mtr, 8, 9)); in broadwell_get_width()
990 return GET_BITFIELD(reg, 0, 2); in get_node_id()
998 return GET_BITFIELD(reg, 0, 3); in haswell_get_node_id()
1006 return GET_BITFIELD(reg, 0, 2); in knl_get_node_id()
1048 return (GET_BITFIELD(reg, 26, 31) << 26) | 0x3ffffff; in haswell_get_tolm()
1057 rc = GET_BITFIELD(reg, 26, 31); in haswell_get_tohm()
1069 return (GET_BITFIELD(reg, 26, 31) << 26) | 0x3ffffff; in knl_get_tolm()
1086 return (((u64)GET_BITFIELD(reg, 1, 11) + 1) << 29) - 1; in haswell_rir_limit()
1183 if (!GET_BITFIELD(reg_limit_lo, 0, 0)) in knl_get_tad()
1186 way_id = GET_BITFIELD(reg_limit_lo, 3, 5); in knl_get_tad()
1202 *offset = ((u64) GET_BITFIELD(reg_offset_lo, 6, 31) << 6) | in knl_get_tad()
1203 ((u64) GET_BITFIELD(reg_hi, 0, 15) << 32); in knl_get_tad()
1204 *limit = ((u64) GET_BITFIELD(reg_limit_lo, 6, 31) << 6) | 63 | in knl_get_tad()
1205 ((u64) GET_BITFIELD(reg_hi, 16, 31) << 32); in knl_get_tad()
1236 return GET_BITFIELD(reg, entry*3, (entry*3)+2); in knl_get_edc_route()
1262 mc = GET_BITFIELD(reg, entry*3, (entry*3)+2); in knl_get_mc_route()
1263 chan = GET_BITFIELD(reg, (entry*2) + 18, (entry*2) + 18 + 1); in knl_get_mc_route()
1304 #define KNL_EDRAM(reg) GET_BITFIELD(reg, 29, 29)
1307 #define KNL_CACHEABLE(reg) GET_BITFIELD(reg, 28, 28)
1310 #define KNL_EDRAM_ONLY(reg) GET_BITFIELD(reg, 29, 29)
1313 #define KNL_CACHEABLE(reg) GET_BITFIELD(reg, 28, 28)
1316 #define KNL_MOD3(reg) GET_BITFIELD(reg, 27, 27)
1675 GET_BITFIELD(pvt->info.mcmtr, 9, 9); in __populate_dimms()
1676 pvt->channel[i].dimm[j].amap_fine = GET_BITFIELD(amap, 0, 0); in __populate_dimms()
1720 pvt->is_chan_hash = GET_BITFIELD(reg, 21, 21); in get_dimm_config()
1721 if (GET_BITFIELD(reg, 28, 28)) { in get_dimm_config()
1969 int ret = GET_BITFIELD(addr, b0, b0) | (GET_BITFIELD(addr, b1, b1) << 1); in sb_bank_bits()
1972 ret ^= GET_BITFIELD(addr, x0, x0) | (GET_BITFIELD(addr, x1, x1) << 1); in sb_bank_bits()
2145 bits = GET_BITFIELD(addr, 7, 8) << 1; in get_memory_error_data()
2146 bits |= GET_BITFIELD(addr, 9, 9); in get_memory_error_data()
2148 bits = GET_BITFIELD(addr, 6, 8); in get_memory_error_data()
2152 idx = GET_BITFIELD(addr, 16, 18); in get_memory_error_data()
2164 shiftup = GET_BITFIELD(reg, 22, 22); in get_memory_error_data()
2373 u32 reg, channel = GET_BITFIELD(m->status, 0, 3); in get_memory_error_data_from_mce()
3083 bool ripv = GET_BITFIELD(m->mcgstatus, 0, 0); in sbridge_mce_output_error()
3084 bool overflow = GET_BITFIELD(m->status, 62, 62); in sbridge_mce_output_error()
3085 bool uncorrected_error = GET_BITFIELD(m->status, 61, 61); in sbridge_mce_output_error()
3087 u32 core_err_cnt = GET_BITFIELD(m->status, 38, 52); in sbridge_mce_output_error()
3088 u32 mscod = GET_BITFIELD(m->status, 16, 31); in sbridge_mce_output_error()
3089 u32 errcode = GET_BITFIELD(m->status, 0, 15); in sbridge_mce_output_error()
3090 u32 channel = GET_BITFIELD(m->status, 0, 3); in sbridge_mce_output_error()
3091 u32 optypenum = GET_BITFIELD(m->status, 4, 6); in sbridge_mce_output_error()
3097 u32 lsb = GET_BITFIELD(m->misc, 0, 5); in sbridge_mce_output_error()
3106 recoverable = GET_BITFIELD(m->status, 56, 56); in sbridge_mce_output_error()
3275 if (!GET_BITFIELD(mce->status, 58, 58)) in sbridge_mce_check_error()
3279 if (!GET_BITFIELD(mce->status, 59, 59)) in sbridge_mce_check_error()
3283 if (GET_BITFIELD(mce->misc, 6, 8) != 2) in sbridge_mce_check_error()