Lines Matching refs:dimm
195 static int intel_dimm_num_devices(const struct dram_dimm_info *dimm) in intel_dimm_num_devices() argument
197 return dimm->ranks * 64 / (dimm->width ?: 1); in intel_dimm_num_devices()
267 skl_is_16gb_dimm(const struct dram_dimm_info *dimm) in skl_is_16gb_dimm() argument
270 return dimm->size / (intel_dimm_num_devices(dimm) ?: 1) == 16; in skl_is_16gb_dimm()
275 struct dram_dimm_info *dimm, in skl_dram_get_dimm_info() argument
279 dimm->size = icl_get_dimm_size(val); in skl_dram_get_dimm_info()
280 dimm->width = icl_get_dimm_width(val); in skl_dram_get_dimm_info()
281 dimm->ranks = icl_get_dimm_ranks(val); in skl_dram_get_dimm_info()
283 dimm->size = skl_get_dimm_size(val); in skl_dram_get_dimm_info()
284 dimm->width = skl_get_dimm_width(val); in skl_dram_get_dimm_info()
285 dimm->ranks = skl_get_dimm_ranks(val); in skl_dram_get_dimm_info()
290 channel, dimm_name, dimm->size, dimm->width, dimm->ranks, in skl_dram_get_dimm_info()
291 str_yes_no(skl_is_16gb_dimm(dimm))); in skl_dram_get_dimm_info()
480 static void bxt_get_dimm_info(struct dram_dimm_info *dimm, u32 val) in bxt_get_dimm_info() argument
482 dimm->width = bxt_get_dimm_width(val); in bxt_get_dimm_info()
483 dimm->ranks = bxt_get_dimm_ranks(val); in bxt_get_dimm_info()
489 dimm->size = bxt_get_dimm_size(val) * intel_dimm_num_devices(dimm); in bxt_get_dimm_info()
503 struct dram_dimm_info dimm; in bxt_get_dram_info() local
512 bxt_get_dimm_info(&dimm, val); in bxt_get_dram_info()
522 dimm.size, dimm.width, dimm.ranks, in bxt_get_dram_info()
526 valid_ranks = dimm.ranks; in bxt_get_dram_info()