Lines Matching refs:upper_dimm
279 int get_ddr_type(struct dimm_config *dimm_config, int upper_dimm) in get_ddr_type() argument
283 spd_ddr_type = read_spd(dimm_config, upper_dimm, DEVICE_TYPE); in get_ddr_type()
292 static int get_dimm_ecc(struct dimm_config *dimm_config, int upper_dimm, in get_dimm_ecc() argument
295 return !!(read_spd(dimm_config, upper_dimm, BUS_WIDTH(ddr_type)) & 8); in get_dimm_ecc()
298 int get_dimm_module_type(struct dimm_config *dimm_config, int upper_dimm, in get_dimm_module_type() argument
301 return read_spd(dimm_config, upper_dimm, MODULE_TYPE) & 0x0f; in get_dimm_module_type()
326 static void report_common_dimm(struct dimm_config *dimm_config, int upper_dimm, in report_common_dimm() argument
335 spd_module_type = get_dimm_module_type(dimm_config, upper_dimm, in report_common_dimm()
337 spd_ecc = get_dimm_ecc(dimm_config, upper_dimm, ddr_type); in report_common_dimm()
345 static void report_ddr3_dimm(struct dimm_config *dimm_config, int upper_dimm, in report_ddr3_dimm() argument
350 int spd_org = read_spd(dimm_config, upper_dimm, in report_ddr3_dimm()
355 spd_voltage = read_spd(dimm_config, upper_dimm, in report_ddr3_dimm()
364 report_common_dimm(dimm_config, upper_dimm, dimm, ddr3_dimm_types, in report_ddr3_dimm()
369 static void report_ddr4_dimm(struct dimm_config *dimm_config, int upper_dimm, in report_ddr4_dimm() argument
374 int spd_package = 0xff & read_spd(dimm_config, upper_dimm, in report_ddr4_dimm()
376 int spd_org = 0xff & read_spd(dimm_config, upper_dimm, in report_ddr4_dimm()
381 spd_voltage = read_spd(dimm_config, upper_dimm, in report_ddr4_dimm()
390 report_common_dimm(dimm_config, upper_dimm, dimm, ddr4_dimm_types, in report_ddr4_dimm()
395 void report_dimm(struct dimm_config *dimm_config, int upper_dimm, in report_dimm() argument
401 ddr_type = get_ddr_type(dimm_config, upper_dimm); in report_dimm()