Lines Matching full:constants
3 #include "constants.hpp"
45 if (i_ByteValue < constants::VALUE_5) in getDdr5DensityPerDie()
47 l_densityPerDie = i_ByteValue * constants::VALUE_4; in getDdr5DensityPerDie()
53 case constants::VALUE_5: in getDdr5DensityPerDie()
57 case constants::VALUE_6: in getDdr5DensityPerDie()
61 case constants::VALUE_7: in getDdr5DensityPerDie()
65 case constants::VALUE_8: in getDdr5DensityPerDie()
81 uint8_t l_DiePerPackage = constants::VALUE_0; in getDdr5DiePerPackage()
82 if (i_ByteValue < constants::VALUE_2) in getDdr5DiePerPackage()
84 l_DiePerPackage = i_ByteValue + constants::VALUE_1; in getDdr5DiePerPackage()
89 pow(constants::VALUE_2, (i_ByteValue - constants::VALUE_1)); in getDdr5DiePerPackage()
101 if (!checkValidValue(i_iterator[constants::SPD_BYTE_235] & in getDdr5BasedDdimmSize()
102 constants::MASK_BYTE_BITS_01, in getDdr5BasedDdimmSize()
103 constants::SHIFT_BITS_0, constants::VALUE_1, in getDdr5BasedDdimmSize()
104 constants::VALUE_3) || in getDdr5BasedDdimmSize()
105 !checkValidValue(i_iterator[constants::SPD_BYTE_235] & in getDdr5BasedDdimmSize()
106 constants::MASK_BYTE_BITS_345, in getDdr5BasedDdimmSize()
107 constants::SHIFT_BITS_3, constants::VALUE_1, in getDdr5BasedDdimmSize()
108 constants::VALUE_3)) in getDdr5BasedDdimmSize()
113 std::to_string(i_iterator[constants::SPD_BYTE_235]) + "]"); in getDdr5BasedDdimmSize()
117 (((i_iterator[constants::SPD_BYTE_235] & in getDdr5BasedDdimmSize()
118 constants::MASK_BYTE_BITS_01) in getDdr5BasedDdimmSize()
119 ? constants::VALUE_1 in getDdr5BasedDdimmSize()
120 : constants::VALUE_0) + in getDdr5BasedDdimmSize()
121 ((i_iterator[constants::SPD_BYTE_235] & in getDdr5BasedDdimmSize()
122 constants::MASK_BYTE_BITS_345) in getDdr5BasedDdimmSize()
123 ? constants::VALUE_1 in getDdr5BasedDdimmSize()
124 : constants::VALUE_0)); in getDdr5BasedDdimmSize()
127 (((i_iterator[constants::SPD_BYTE_235] & in getDdr5BasedDdimmSize()
128 constants::MASK_BYTE_BIT_6) >> in getDdr5BasedDdimmSize()
129 constants::VALUE_6) + in getDdr5BasedDdimmSize()
130 ((i_iterator[constants::SPD_BYTE_235] & in getDdr5BasedDdimmSize()
131 constants::MASK_BYTE_BIT_7) >> in getDdr5BasedDdimmSize()
132 constants::VALUE_7)) * in getDdr5BasedDdimmSize()
135 if (!checkValidValue(i_iterator[constants::SPD_BYTE_235] & in getDdr5BasedDdimmSize()
136 constants::MASK_BYTE_BITS_012, in getDdr5BasedDdimmSize()
137 constants::SHIFT_BITS_0, constants::VALUE_1, in getDdr5BasedDdimmSize()
138 constants::VALUE_3)) in getDdr5BasedDdimmSize()
143 std::to_string(i_iterator[constants::SPD_BYTE_235]) + "]"); in getDdr5BasedDdimmSize()
147 (i_iterator[constants::SPD_BYTE_235] & in getDdr5BasedDdimmSize()
148 constants::MASK_BYTE_BITS_012) in getDdr5BasedDdimmSize()
152 if (!checkValidValue(i_iterator[constants::SPD_BYTE_4] & in getDdr5BasedDdimmSize()
153 constants::MASK_BYTE_BITS_567, in getDdr5BasedDdimmSize()
154 constants::SHIFT_BITS_5, constants::VALUE_0, in getDdr5BasedDdimmSize()
155 constants::VALUE_5)) in getDdr5BasedDdimmSize()
160 std::to_string(i_iterator[constants::SPD_BYTE_4]) + "]"); in getDdr5BasedDdimmSize()
164 (i_iterator[constants::SPD_BYTE_4] & in getDdr5BasedDdimmSize()
165 constants::MASK_BYTE_BITS_567) >> in getDdr5BasedDdimmSize()
166 constants::VALUE_5); in getDdr5BasedDdimmSize()
168 if (!checkValidValue(i_iterator[constants::SPD_BYTE_4] & in getDdr5BasedDdimmSize()
169 constants::MASK_BYTE_BITS_01234, in getDdr5BasedDdimmSize()
170 constants::SHIFT_BITS_0, constants::VALUE_1, in getDdr5BasedDdimmSize()
171 constants::VALUE_8)) in getDdr5BasedDdimmSize()
176 std::to_string(i_iterator[constants::SPD_BYTE_4]) + "]"); in getDdr5BasedDdimmSize()
180 i_iterator[constants::SPD_BYTE_4] & in getDdr5BasedDdimmSize()
181 constants::MASK_BYTE_BITS_01234); in getDdr5BasedDdimmSize()
185 if (((i_iterator[constants::SPD_BYTE_234] & in getDdr5BasedDdimmSize()
186 constants::MASK_BYTE_BIT_7) >> in getDdr5BasedDdimmSize()
187 constants::VALUE_7)) in getDdr5BasedDdimmSize()
189 l_ranksPerChannel = ((i_iterator[constants::SPD_BYTE_234] & in getDdr5BasedDdimmSize()
190 constants::MASK_BYTE_BITS_345) >> in getDdr5BasedDdimmSize()
191 constants::VALUE_3) + in getDdr5BasedDdimmSize()
192 constants::VALUE_1; in getDdr5BasedDdimmSize()
194 else if (((i_iterator[constants::SPD_BYTE_235] & in getDdr5BasedDdimmSize()
195 constants::MASK_BYTE_BIT_6) >> in getDdr5BasedDdimmSize()
196 constants::VALUE_6)) in getDdr5BasedDdimmSize()
198 l_ranksPerChannel = (i_iterator[constants::SPD_BYTE_234] & in getDdr5BasedDdimmSize()
199 constants::MASK_BYTE_BITS_012) + in getDdr5BasedDdimmSize()
200 constants::VALUE_1; in getDdr5BasedDdimmSize()
203 if (!checkValidValue(i_iterator[constants::SPD_BYTE_6] & in getDdr5BasedDdimmSize()
204 constants::MASK_BYTE_BITS_567, in getDdr5BasedDdimmSize()
205 constants::SHIFT_BITS_5, constants::VALUE_0, in getDdr5BasedDdimmSize()
206 constants::VALUE_3)) in getDdr5BasedDdimmSize()
211 std::to_string(i_iterator[constants::SPD_BYTE_6]) + "]"); in getDdr5BasedDdimmSize()
215 constants::VALUE_4 * in getDdr5BasedDdimmSize()
216 (constants::VALUE_1 << ((i_iterator[constants::SPD_BYTE_6] & in getDdr5BasedDdimmSize()
217 constants::MASK_BYTE_BITS_567) >> in getDdr5BasedDdimmSize()
218 constants::VALUE_5)); in getDdr5BasedDdimmSize()
227 return constants::CONVERT_GB_TO_KB * l_dimmSize; in getDdr5BasedDdimmSize()
239 l_tmpValue = i_iterator[constants::SPD_BYTE_4] & in getDdr4BasedDdimmSize()
240 constants::JEDEC_SDRAM_CAP_MASK; in getDdr4BasedDdimmSize()
243 if (l_tmpValue > constants::JEDEC_SDRAMCAP_RESERVED) in getDdr4BasedDdimmSize()
252 constants::JEDEC_SDRAMCAP_MULTIPLIER; in getDdr4BasedDdimmSize()
255 l_tmpValue = i_iterator[constants::SPD_BYTE_13] & in getDdr4BasedDdimmSize()
256 constants::JEDEC_PRI_BUS_WIDTH_MASK; in getDdr4BasedDdimmSize()
258 if (l_tmpValue > constants::JEDEC_RESERVED_BITS) in getDdr4BasedDdimmSize()
267 constants::JEDEC_PRI_BUS_WIDTH_MULTIPLIER; in getDdr4BasedDdimmSize()
270 l_tmpValue = i_iterator[constants::SPD_BYTE_12] & in getDdr4BasedDdimmSize()
271 constants::JEDEC_SDRAM_WIDTH_MASK; in getDdr4BasedDdimmSize()
273 if (l_tmpValue > constants::JEDEC_RESERVED_BITS) in getDdr4BasedDdimmSize()
282 constants::JEDEC_SDRAM_WIDTH_MULTIPLIER; in getDdr4BasedDdimmSize()
285 l_tmpValue = i_iterator[constants::SPD_BYTE_12] & in getDdr4BasedDdimmSize()
286 constants::JEDEC_NUM_RANKS_MASK; in getDdr4BasedDdimmSize()
287 l_tmpValue >>= constants::JEDEC_RESERVED_BITS; in getDdr4BasedDdimmSize()
289 if (l_tmpValue > constants::JEDEC_RESERVED_BITS) in getDdr4BasedDdimmSize()
298 l_tmpValue = i_iterator[constants::SPD_BYTE_6] & in getDdr4BasedDdimmSize()
299 constants::JEDEC_SIGNAL_LOADING_MASK; in getDdr4BasedDdimmSize()
301 if (l_tmpValue == constants::JEDEC_SINGLE_LOAD_STACK) in getDdr4BasedDdimmSize()
304 l_tmpValue = i_iterator[constants::SPD_BYTE_6] & in getDdr4BasedDdimmSize()
305 constants::JEDEC_DIE_COUNT_MASK; in getDdr4BasedDdimmSize()
306 l_tmpValue >>= constants::JEDEC_DIE_COUNT_RIGHT_SHIFT; in getDdr4BasedDdimmSize()
313 (l_sdramCapacity / constants::JEDEC_PRI_BUS_WIDTH_MULTIPLIER) * in getDdr4BasedDdimmSize()
317 l_dimmSize *= constants::CONVERT_MB_TO_KB; in getDdr4BasedDdimmSize()
332 if (i_iterator[constants::SPD_BYTE_2] == constants::SPD_DRAM_TYPE_DDR5) in getDdimmSize()
336 else if (i_iterator[constants::SPD_BYTE_2] == constants::SPD_DRAM_TYPE_DDR4) in getDdimmSize()
344 std::to_string(i_iterator[constants::SPD_BYTE_2]) + "]"); in getDdimmSize()
361 advance(i_iterator, constants::DDIMM_11S_BARCODE_START + in readKeywords()
362 constants::DDIMM_11S_FORMAT_LEN); in readKeywords()
364 i_iterator + constants::PART_NUM_LEN); in readKeywords()
366 advance(i_iterator, constants::PART_NUM_LEN); in readKeywords()
368 i_iterator + constants::SERIAL_NUM_LEN); in readKeywords()
370 advance(i_iterator, constants::SERIAL_NUM_LEN); in readKeywords()
371 types::BinaryVector l_ccin(i_iterator, i_iterator + constants::CCIN_LEN); in readKeywords()