Home
last modified time | relevance | path

Searched refs:GET_BITFIELD (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/edac/
H A Dskx_base.c174 return !!GET_BITFIELD(mcmtr, 2, 2); in skx_check_ecc()
221 #define SKX_SAD_MOD3MODE(sad) GET_BITFIELD((sad), 30, 31)
222 #define SKX_SAD_MOD3(sad) GET_BITFIELD((sad), 27, 27)
223 #define SKX_SAD_LIMIT(sad) (((u64)GET_BITFIELD((sad), 7, 26) << 26) | MASK26)
224 #define SKX_SAD_MOD3ASMOD2(sad) GET_BITFIELD((sad), 5, 6)
225 #define SKX_SAD_ATTR(sad) GET_BITFIELD((sad), 3, 4)
226 #define SKX_SAD_INTERLEAVE(sad) GET_BITFIELD((sad), 1, 2)
227 #define SKX_SAD_ENABLE(sad) GET_BITFIELD((sad), 0, 0)
300 idx = GET_BITFIELD(addr, 6, 8); in skx_sad_decode()
303 idx = GET_BITFIELD(addr, 8, 10); in skx_sad_decode()
[all …]
H A Dsb_edac.c53 #define GET_BITFIELD(v, lo, hi) \ macro
77 #define DRAM_RULE_ENABLE(reg) GET_BITFIELD(reg, 0, 0)
78 #define A7MODE(reg) GET_BITFIELD(reg, 26, 26)
148 return GET_BITFIELD(reg, table[interleave].start, in sad_pkg()
163 #define GET_TOLM(reg) ((GET_BITFIELD(reg, 0, 3) << 28) | 0x3ffffff)
164 #define GET_TOHM(reg) ((GET_BITFIELD(reg, 0, 20) << 25) | 0x3ffffff)
170 #define SOURCE_ID(reg) GET_BITFIELD(reg, 9, 11)
172 #define SOURCE_ID_KNL(reg) GET_BITFIELD(reg, 12, 14)
185 #define TAD_LIMIT(reg) ((GET_BITFIELD(reg, 12, 31) << 26) | 0x3ffffff)
186 #define TAD_SOCK(reg) GET_BITFIELD(reg, 10, 11)
[all …]
H A Dskx_common.c233 *id = GET_BITFIELD(reg, 12, 14); in skx_get_src_id()
247 *id = GET_BITFIELD(reg, 0, 2); in skx_get_node_id()
254 switch (GET_BITFIELD(mtr, 8, 9)) { in get_width()
296 d->bus[0] = GET_BITFIELD(reg, 0, 7); in skx_get_all_bus_mappings()
297 d->bus[1] = GET_BITFIELD(reg, 8, 15); in skx_get_all_bus_mappings()
300 d->bus[2] = GET_BITFIELD(reg, 16, 23); in skx_get_all_bus_mappings()
301 d->bus[3] = GET_BITFIELD(reg, 24, 31); in skx_get_all_bus_mappings()
303 d->seg = GET_BITFIELD(reg, 16, 23); in skx_get_all_bus_mappings()
361 u32 val = GET_BITFIELD(reg, lobit, hibit); in skx_get_dimm_attr()
407 imc->chan[chan].dimms[dimmno].close_pg = GET_BITFIELD(mcmtr, 0, 0); in skx_get_dimm_info()
[all …]
H A Digen6_edac.c42 #define GET_BITFIELD(v, lo, hi) (((v) & GENMASK_ULL(hi, lo)) >> (lo)) macro
83 #define ECC_ERROR_LOG_ADDR(v) GET_BITFIELD(v, 5, 38)
84 #define ECC_ERROR_LOG_ADDR45(v) GET_BITFIELD(v, 5, 45)
85 #define ECC_ERROR_LOG_SYND(v) GET_BITFIELD(v, 46, 61)
90 #define MCHBAR_BASE(v) (GET_BITFIELD(v, 16, 38) << 16)
96 #define MAD_INTER_CHANNEL_DDR_TYPE(v) GET_BITFIELD(v, 0, 2)
97 #define MAD_INTER_CHANNEL_ECHM(v) GET_BITFIELD(v, 3, 3)
98 #define MAD_INTER_CHANNEL_CH_L_MAP(v) GET_BITFIELD(v, 4, 4)
99 #define MAD_INTER_CHANNEL_CH_S_SIZE(v) ((u64)GET_BITFIELD(v, 12, 19) << 29)
103 #define MAD_INTRA_CH_DIMM_L_MAP(v) GET_BITFIELD(v, 0, 0)
[all …]
H A Di10nm_base.c57 #define I10NM_GET_SCK_MMIO_BASE(reg) (GET_BITFIELD(reg, 0, 28) << 23)
58 #define I10NM_GET_IMC_MMIO_OFFSET(reg) (GET_BITFIELD(reg, 0, 10) << 12)
59 #define I10NM_GET_IMC_MMIO_SIZE(reg) ((GET_BITFIELD(reg, 13, 23) - \
60 GET_BITFIELD(reg, 0, 10) + 1) << 12)
62 ((GET_BITFIELD(reg, 0, 10) << 12) + 0x140000)
67 #define I10NM_DDR_IMC_CH_CNT(reg) GET_BITFIELD(reg, 21, 24)
68 #define I10NM_IS_HBM_PRESENT(reg) GET_BITFIELD(reg, 27, 30)
69 #define I10NM_IS_HBM_IMC(reg) GET_BITFIELD(reg, 29, 29)
72 #define I10NM_SAD_ENABLE(reg) GET_BITFIELD(reg, 0, 0)
73 #define I10NM_SAD_NM_CACHEABLE(reg) GET_BITFIELD(reg, 5, 5)
[all …]
H A Dskx_common.h29 #define GET_BITFIELD(v, lo, hi) \ macro
52 #define IS_DIMM_PRESENT(r) GET_BITFIELD(r, 15, 15)
53 #define IS_NVDIMM_PRESENT(r, i) GET_BITFIELD(r, i, i)
H A Dpnd2_edac.c126 #define GET_BITFIELD(v, lo, hi) (((v) & GENMASK_ULL(hi, lo)) >> (lo)) macro
1131 u32 core_err_cnt = GET_BITFIELD(m->status, 38, 52); in pnd2_mce_output_error()
1132 u32 mscod = GET_BITFIELD(m->status, 16, 31); in pnd2_mce_output_error()
1133 u32 errcode = GET_BITFIELD(m->status, 0, 15); in pnd2_mce_output_error()
1134 u32 optypenum = GET_BITFIELD(m->status, 4, 6); in pnd2_mce_output_error()