Lines Matching refs:mem

59 smbios_test_memdevice_fill(smb_memdevice_t *mem)  in smbios_test_memdevice_fill()  argument
61 mem->smbmdev_hdr.smbh_type = SMB_TYPE_MEMDEVICE; in smbios_test_memdevice_fill()
62 mem->smbmdev_hdr.smbh_len = sizeof (smb_memdevice_t); in smbios_test_memdevice_fill()
64 mem->smbmdev_array = 0xffff; in smbios_test_memdevice_fill()
65 mem->smbmdev_error = htole16(0xfffe); in smbios_test_memdevice_fill()
66 mem->smbmdev_twidth = 64; in smbios_test_memdevice_fill()
67 mem->smbmdev_dwidth = 64; in smbios_test_memdevice_fill()
68 mem->smbmdev_size = 0x7fff; in smbios_test_memdevice_fill()
69 mem->smbmdev_form = SMB_MDFF_FBDIMM; in smbios_test_memdevice_fill()
70 mem->smbmdev_set = 0; in smbios_test_memdevice_fill()
71 mem->smbmdev_dloc = 0; in smbios_test_memdevice_fill()
72 mem->smbmdev_bloc = 0; in smbios_test_memdevice_fill()
73 mem->smbmdev_type = SMB_MDT_DDR4; in smbios_test_memdevice_fill()
74 mem->smbmdev_manufacturer = 0; in smbios_test_memdevice_fill()
75 mem->smbmdev_asset = 0; in smbios_test_memdevice_fill()
76 mem->smbmdev_part = 0; in smbios_test_memdevice_fill()
77 mem->smbmdev_attrs = 2; in smbios_test_memdevice_fill()
78 mem->smbmdev_extsize = htole32(0x123456); in smbios_test_memdevice_fill()
79 mem->smbmdev_minvolt = 0; in smbios_test_memdevice_fill()
80 mem->smbmdev_maxvolt = 0; in smbios_test_memdevice_fill()
81 mem->smbmdev_confvolt = 0; in smbios_test_memdevice_fill()
82 mem->smbmdev_memtech = 0; in smbios_test_memdevice_fill()
83 mem->smbmdev_opmode = 1 << 3; in smbios_test_memdevice_fill()
84 mem->smbmdev_fwver = 0; in smbios_test_memdevice_fill()
85 mem->smbmdev_modulemfgid = 0; in smbios_test_memdevice_fill()
86 mem->smbmdev_moduleprodid = 0; in smbios_test_memdevice_fill()
87 mem->smbmdev_memsysmfgid = 0; in smbios_test_memdevice_fill()
88 mem->smbmdev_memsysprodid = 0; in smbios_test_memdevice_fill()
89 mem->smbmdev_nvsize = htole64(UINT64_MAX); in smbios_test_memdevice_fill()
90 mem->smbmdev_volsize = htole64(UINT64_MAX); in smbios_test_memdevice_fill()
91 mem->smbmdev_cachesize = htole64(UINT64_MAX); in smbios_test_memdevice_fill()
92 mem->smbmdev_logicalsize = htole64(UINT64_MAX); in smbios_test_memdevice_fill()
98 smb_memdevice_t mem; in smbios_test_memdevice_mktable_32() local
100 smbios_test_memdevice_fill(&mem); in smbios_test_memdevice_mktable_32()
101 mem.smbmdev_speed = htole16(smbios_memdevice_speed); in smbios_test_memdevice_mktable_32()
102 mem.smbmdev_clkspeed = htole16(smbios_memdevice_clkspeed); in smbios_test_memdevice_mktable_32()
103 mem.smbmdev_extspeed = htole32(0); in smbios_test_memdevice_mktable_32()
104 mem.smbmdev_extclkspeed = htole32(0); in smbios_test_memdevice_mktable_32()
106 mem.smbmdev_hdr.smbh_len = smbios_memdevice_len_v3p2; in smbios_test_memdevice_mktable_32()
107 (void) smbios_test_table_append(table, &mem, smbios_memdevice_len_v3p2); in smbios_test_memdevice_mktable_32()
116 smb_memdevice_t mem; in smbios_test_memdevice_mktable_33() local
118 smbios_test_memdevice_fill(&mem); in smbios_test_memdevice_mktable_33()
119 mem.smbmdev_speed = htole16(smbios_memdevice_speed); in smbios_test_memdevice_mktable_33()
120 mem.smbmdev_clkspeed = htole16(smbios_memdevice_clkspeed); in smbios_test_memdevice_mktable_33()
121 mem.smbmdev_extspeed = htole32(0); in smbios_test_memdevice_mktable_33()
122 mem.smbmdev_extclkspeed = htole32(0); in smbios_test_memdevice_mktable_33()
124 mem.smbmdev_hdr.smbh_len = smbios_memdevice_len_v3p3; in smbios_test_memdevice_mktable_33()
125 (void) smbios_test_table_append(table, &mem, smbios_memdevice_len_v3p3); in smbios_test_memdevice_mktable_33()
134 smb_memdevice_t mem; in smbios_test_memdevice_mktable_33ext() local
136 smbios_test_memdevice_fill(&mem); in smbios_test_memdevice_mktable_33ext()
137 mem.smbmdev_speed = htole16(0xffff); in smbios_test_memdevice_mktable_33ext()
138 mem.smbmdev_clkspeed = htole16(0xffff); in smbios_test_memdevice_mktable_33ext()
139 mem.smbmdev_extspeed = htole32(smbios_memdevice_extspeed); in smbios_test_memdevice_mktable_33ext()
140 mem.smbmdev_extclkspeed = htole32(smbios_memdevice_extclkspeed); in smbios_test_memdevice_mktable_33ext()
142 mem.smbmdev_hdr.smbh_len = smbios_memdevice_len_v3p3; in smbios_test_memdevice_mktable_33ext()
143 (void) smbios_test_table_append(table, &mem, smbios_memdevice_len_v3p3); in smbios_test_memdevice_mktable_33ext()
152 smb_memdevice_t mem; in smbios_test_memdevice_mktable_37() local
154 smbios_test_memdevice_fill(&mem); in smbios_test_memdevice_mktable_37()
155 mem.smbmdev_speed = htole16(0xffff); in smbios_test_memdevice_mktable_37()
156 mem.smbmdev_clkspeed = htole16(0xffff); in smbios_test_memdevice_mktable_37()
157 mem.smbmdev_extspeed = htole32(smbios_memdevice_extspeed); in smbios_test_memdevice_mktable_37()
158 mem.smbmdev_extclkspeed = htole32(smbios_memdevice_extclkspeed); in smbios_test_memdevice_mktable_37()
160 mem.smbmdev_pmic0mfgid = htole16(smbios_memdevice_pmic0_mfg); in smbios_test_memdevice_mktable_37()
161 mem.smbmdev_pmic0rev = htole16(smbios_memdevice_pmic0_rev); in smbios_test_memdevice_mktable_37()
162 mem.smbmdev_rcdmfgid = htole16(smbios_memdevice_rcd_mfg); in smbios_test_memdevice_mktable_37()
163 mem.smbmdev_rcdrev = htole16(smbios_memdevice_rcd_rev); in smbios_test_memdevice_mktable_37()
165 (void) smbios_test_table_append(table, &mem, sizeof (mem)); in smbios_test_memdevice_mktable_37()
171 smbios_test_memdevice_verify_common(smbios_memdevice_t *mem) in smbios_test_memdevice_verify_common() argument
175 if (mem->smbmd_dwidth != 64) { in smbios_test_memdevice_verify_common()
176 warnx("found wrong dwidth: %u", mem->smbmd_dwidth); in smbios_test_memdevice_verify_common()
180 if (mem->smbmd_twidth != 64) { in smbios_test_memdevice_verify_common()
181 warnx("found wrong twidth: %u", mem->smbmd_twidth); in smbios_test_memdevice_verify_common()
185 if (mem->smbmd_form != SMB_MDFF_FBDIMM) { in smbios_test_memdevice_verify_common()
186 warnx("found wrong form: %u", mem->smbmd_form); in smbios_test_memdevice_verify_common()
190 if (mem->smbmd_size != 0x123456ULL * 1024 * 1024) { in smbios_test_memdevice_verify_common()
191 warnx("found wrong size: %" PRIu64, mem->smbmd_size); in smbios_test_memdevice_verify_common()
202 smbios_memdevice_t mem; in smbios_test_memdevice_verify_32() local
212 mem.smbmd_extspeed = rval; in smbios_test_memdevice_verify_32()
213 mem.smbmd_extclkspeed = rval; in smbios_test_memdevice_verify_32()
221 if (smbios_info_memdevice(hdl, sp.smbstr_id, &mem) != 0) { in smbios_test_memdevice_verify_32()
227 if (mem.smbmd_extspeed != rval || mem.smbmd_extclkspeed != rval) { in smbios_test_memdevice_verify_32()
232 if (!smbios_test_memdevice_verify_common(&mem)) { in smbios_test_memdevice_verify_32()
236 if (mem.smbmd_speed != smbios_memdevice_speed) { in smbios_test_memdevice_verify_32()
237 warnx("found wrong device speed: %u", mem.smbmd_speed); in smbios_test_memdevice_verify_32()
241 if (mem.smbmd_clkspeed != smbios_memdevice_clkspeed) { in smbios_test_memdevice_verify_32()
242 warnx("found wrong device clkspeed: %u", mem.smbmd_clkspeed); in smbios_test_memdevice_verify_32()
258 smbios_memdevice_t mem; in smbios_test_memdevice_verify_32_33() local
267 if (smbios_info_memdevice(hdl, sp.smbstr_id, &mem) != 0) { in smbios_test_memdevice_verify_32_33()
273 if (!smbios_test_memdevice_verify_common(&mem)) { in smbios_test_memdevice_verify_32_33()
277 if (mem.smbmd_speed != smbios_memdevice_speed) { in smbios_test_memdevice_verify_32_33()
278 warnx("found wrong device speed: %u", mem.smbmd_speed); in smbios_test_memdevice_verify_32_33()
282 if (mem.smbmd_clkspeed != smbios_memdevice_clkspeed) { in smbios_test_memdevice_verify_32_33()
283 warnx("found wrong device clkspeed: %u", mem.smbmd_clkspeed); in smbios_test_memdevice_verify_32_33()
287 if (mem.smbmd_extspeed != smbios_memdevice_speed) { in smbios_test_memdevice_verify_32_33()
288 warnx("found wrong device speed: %" PRIu64, mem.smbmd_extspeed); in smbios_test_memdevice_verify_32_33()
292 if (mem.smbmd_extclkspeed != smbios_memdevice_clkspeed) { in smbios_test_memdevice_verify_32_33()
294 mem.smbmd_extclkspeed); in smbios_test_memdevice_verify_32_33()
309 smbios_memdevice_t mem; in smbios_test_memdevice_verify_32_37() local
318 if (smbios_info_memdevice(hdl, sp.smbstr_id, &mem) != 0) { in smbios_test_memdevice_verify_32_37()
328 if (mem.smbmd_pmic0_mfgid != SMB_MD_MFG_UNKNOWN) { in smbios_test_memdevice_verify_32_37()
329 warnx("found wrong PMIC0 mfg id: 0x%x", mem.smbmd_pmic0_mfgid); in smbios_test_memdevice_verify_32_37()
333 if (mem.smbmd_pmic0_rev != SMB_MD_REV_UNKNOWN) { in smbios_test_memdevice_verify_32_37()
334 warnx("found wrong PMIC0 revision: 0x%x", mem.smbmd_pmic0_rev); in smbios_test_memdevice_verify_32_37()
338 if (mem.smbmd_rcd_mfgid != SMB_MD_MFG_UNKNOWN) { in smbios_test_memdevice_verify_32_37()
339 warnx("found wrong RCD mfg id: 0x%x", mem.smbmd_rcd_mfgid); in smbios_test_memdevice_verify_32_37()
343 if (mem.smbmd_rcd_rev != SMB_MD_REV_UNKNOWN) { in smbios_test_memdevice_verify_32_37()
344 warnx("found wrong RCD revision: 0x%x", mem.smbmd_rcd_rev); in smbios_test_memdevice_verify_32_37()
355 smbios_memdevice_t mem; in smbios_test_memdevice_verify_33() local
364 if (smbios_info_memdevice(hdl, sp.smbstr_id, &mem) != 0) { in smbios_test_memdevice_verify_33()
370 if (!smbios_test_memdevice_verify_common(&mem)) { in smbios_test_memdevice_verify_33()
374 if (mem.smbmd_speed != smbios_memdevice_speed) { in smbios_test_memdevice_verify_33()
375 warnx("found wrong device speed: %u", mem.smbmd_speed); in smbios_test_memdevice_verify_33()
379 if (mem.smbmd_clkspeed != smbios_memdevice_clkspeed) { in smbios_test_memdevice_verify_33()
380 warnx("found wrong device clkspeed: %u", mem.smbmd_clkspeed); in smbios_test_memdevice_verify_33()
384 if (mem.smbmd_extspeed != smbios_memdevice_speed) { in smbios_test_memdevice_verify_33()
385 warnx("found wrong device speed: %" PRIu64, mem.smbmd_extspeed); in smbios_test_memdevice_verify_33()
389 if (mem.smbmd_extclkspeed != smbios_memdevice_clkspeed) { in smbios_test_memdevice_verify_33()
391 mem.smbmd_extclkspeed); in smbios_test_memdevice_verify_33()
402 smbios_memdevice_t mem; in smbios_test_memdevice_verify_33ext() local
411 if (smbios_info_memdevice(hdl, sp.smbstr_id, &mem) != 0) { in smbios_test_memdevice_verify_33ext()
417 if (!smbios_test_memdevice_verify_common(&mem)) { in smbios_test_memdevice_verify_33ext()
421 if (mem.smbmd_speed != 0xffff) { in smbios_test_memdevice_verify_33ext()
422 warnx("found wrong device speed: %u", mem.smbmd_speed); in smbios_test_memdevice_verify_33ext()
426 if (mem.smbmd_clkspeed != 0xffff) { in smbios_test_memdevice_verify_33ext()
427 warnx("found wrong device clkspeed: %u", mem.smbmd_clkspeed); in smbios_test_memdevice_verify_33ext()
431 if (mem.smbmd_extspeed != smbios_memdevice_extspeed) { in smbios_test_memdevice_verify_33ext()
432 warnx("found wrong device speed: %" PRIu64, mem.smbmd_extspeed); in smbios_test_memdevice_verify_33ext()
436 if (mem.smbmd_extclkspeed != smbios_memdevice_extclkspeed) { in smbios_test_memdevice_verify_33ext()
438 mem.smbmd_extclkspeed); in smbios_test_memdevice_verify_33ext()
453 smbios_memdevice_t mem; in smbios_test_memdevice_verify_37() local
462 if (smbios_info_memdevice(hdl, sp.smbstr_id, &mem) != 0) { in smbios_test_memdevice_verify_37()
472 if (mem.smbmd_pmic0_mfgid != smbios_memdevice_pmic0_mfg) { in smbios_test_memdevice_verify_37()
473 warnx("found wrong PMIC0 mfg id: 0x%x", mem.smbmd_pmic0_mfgid); in smbios_test_memdevice_verify_37()
477 if (mem.smbmd_pmic0_rev != smbios_memdevice_pmic0_rev) { in smbios_test_memdevice_verify_37()
478 warnx("found wrong PMIC0 revision: 0x%x", mem.smbmd_pmic0_rev); in smbios_test_memdevice_verify_37()
482 if (mem.smbmd_rcd_mfgid != smbios_memdevice_rcd_mfg) { in smbios_test_memdevice_verify_37()
483 warnx("found wrong RCD mfg id: 0x%x", mem.smbmd_rcd_mfgid); in smbios_test_memdevice_verify_37()
487 if (mem.smbmd_rcd_rev != smbios_memdevice_rcd_rev) { in smbios_test_memdevice_verify_37()
488 warnx("found wrong RCD revision: 0x%x", mem.smbmd_rcd_rev); in smbios_test_memdevice_verify_37()