Lines Matching defs:shp
145 check_oem(smbios_hdl_t *shp)
154 rv = smbios_lookup_type(shp, SMB_TYPE_OEMSTR, &s);
161 cnt = smbios_info_strtab(shp, oem_id, 0, NULL);
164 (void) smbios_info_strtab(shp, oem_id, cnt, oem_str);
178 print_smbios(smbios_hdl_t *shp, FILE *fp)
183 smbios_info_smbios(shp, &ep);
232 print_bios(smbios_hdl_t *shp, FILE *fp)
236 (void) smbios_info_bios(shp, &b);
275 print_system(smbios_hdl_t *shp, FILE *fp)
280 (void) smbios_info_system(shp, &s);
298 print_bboard(smbios_hdl_t *shp, id_t id, FILE *fp)
303 (void) smbios_info_bboard(shp, id, &b);
320 cnt = smbios_info_contains(shp, id, chdl_cnt, chdl);
334 print_chassis(smbios_hdl_t *shp, id_t id, FILE *fp)
339 (void) smbios_info_chassis(shp, id, &c);
370 cnt = smbios_info_contains(shp, id, elem_cnt, elems);
394 print_processor(smbios_hdl_t *shp, id_t id, FILE *fp)
399 (void) smbios_info_processor(shp, id, &p);
504 print_cache(smbios_hdl_t *shp, id_t id, FILE *fp)
508 (void) smbios_info_cache(shp, id, &c);
550 print_port(smbios_hdl_t *shp, id_t id, FILE *fp)
554 (void) smbios_info_port(shp, id, &p);
570 print_slot(smbios_hdl_t *shp, id_t id, FILE *fp)
575 (void) smbios_info_slot(shp, id, &s);
576 (void) smbios_info_smbios(shp, &e);
601 if (check_oem(shp) != 0 && (e.smbe_major < 2 || e.smbe_minor < 6))
610 print_obdevs_ext(smbios_hdl_t *shp, id_t id, FILE *fp)
616 (void) smbios_info_obdevs_ext(shp, id, &oe);
636 print_obdevs(smbios_hdl_t *shp, id_t id, FILE *fp)
641 if ((argc = smbios_info_obdevs(shp, id, 0, NULL)) > 0) {
643 (void) smbios_info_obdevs(shp, id, argc, argv);
650 print_strtab(smbios_hdl_t *shp, id_t id, FILE *fp)
655 if ((argc = smbios_info_strtab(shp, id, 0, NULL)) > 0) {
657 (void) smbios_info_strtab(shp, id, argc, argv);
664 print_lang(smbios_hdl_t *shp, id_t id, FILE *fp)
668 (void) smbios_info_lang(shp, &l);
675 print_strtab(shp, id, fp);
680 print_evlog(smbios_hdl_t *shp, id_t id, FILE *fp)
685 (void) smbios_info_eventlog(shp, &ev);
767 print_memarray(smbios_hdl_t *shp, id_t id, FILE *fp)
771 (void) smbios_info_memarray(shp, id, &ma);
789 print_memdevice(smbios_hdl_t *shp, id_t id, FILE *fp)
793 (void) smbios_info_memdevice(shp, id, &md);
879 print_memarrmap(smbios_hdl_t *shp, id_t id, FILE *fp)
883 (void) smbios_info_memarrmap(shp, id, &ma);
893 print_memdevmap(smbios_hdl_t *shp, id_t id, FILE *fp)
897 (void) smbios_info_memdevmap(shp, id, &md);
911 print_hwsec(smbios_hdl_t *shp, FILE *fp)
915 (void) smbios_info_hwsec(shp, &h);
928 print_boot(smbios_hdl_t *shp, FILE *fp)
932 (void) smbios_info_boot(shp, &b);
944 print_ipmi(smbios_hdl_t *shp, FILE *fp)
948 (void) smbios_info_ipmi(shp, &i);
967 print_extprocessor(smbios_hdl_t *shp, id_t id, FILE *fp)
972 if (check_oem(shp) != 0)
975 (void) smbios_info_extprocessor(shp, id, &ep);
988 print_extport(smbios_hdl_t *shp, id_t id, FILE *fp)
992 if (check_oem(shp) != 0)
995 (void) smbios_info_extport(shp, id, &epo);
1005 print_pciexrc(smbios_hdl_t *shp, id_t id, FILE *fp)
1009 if (check_oem(shp) != 0)
1012 (void) smbios_info_pciexrc(shp, id, &pcie);
1019 print_extmemarray(smbios_hdl_t *shp, id_t id, FILE *fp)
1023 if (check_oem(shp) != 0)
1026 (void) smbios_info_extmemarray(shp, id, &em);
1034 print_extmemdevice(smbios_hdl_t *shp, id_t id, FILE *fp)
1039 if (check_oem(shp) != 0)
1042 (void) smbios_info_extmemdevice(shp, id, &emd);
1054 print_struct(smbios_hdl_t *shp, const smbios_struct_t *sp, void *fp)
1090 if (smbios_info_common(shp, sp->smbstr_id, &info) == 0) {
1098 print_bios(shp, fp);
1102 print_system(shp, fp);
1106 print_bboard(shp, sp->smbstr_id, fp);
1110 print_chassis(shp, sp->smbstr_id, fp);
1114 print_processor(shp, sp->smbstr_id, fp);
1118 print_cache(shp, sp->smbstr_id, fp);
1122 print_port(shp, sp->smbstr_id, fp);
1126 print_slot(shp, sp->smbstr_id, fp);
1130 print_obdevs(shp, sp->smbstr_id, fp);
1135 print_strtab(shp, sp->smbstr_id, fp);
1139 print_lang(shp, sp->smbstr_id, fp);
1143 print_evlog(shp, sp->smbstr_id, fp);
1147 print_memarray(shp, sp->smbstr_id, fp);
1151 print_memdevice(shp, sp->smbstr_id, fp);
1155 print_memarrmap(shp, sp->smbstr_id, fp);
1159 print_memdevmap(shp, sp->smbstr_id, fp);
1163 print_hwsec(shp, fp);
1167 print_boot(shp, fp);
1171 print_ipmi(shp, fp);
1175 print_obdevs_ext(shp, sp->smbstr_id, fp);
1179 print_extprocessor(shp, sp->smbstr_id, fp);
1183 print_extport(shp, sp->smbstr_id, fp);
1187 print_pciexrc(shp, sp->smbstr_id, fp);
1191 print_extmemarray(shp, sp->smbstr_id, fp);
1195 print_extmemdevice(shp, sp->smbstr_id, fp);
1271 smbios_hdl_t *shp;
1329 if ((shp = smbios_open(ifile, SMB_VERSION, oflags, &err)) == NULL) {
1336 smbios_truncated(shp))
1345 } else if (smbios_write(shp, fd) != 0) {
1347 g_pname, ofile, smbios_errmsg(smbios_errno(shp)));
1350 smbios_close(shp);
1355 print_smbios(shp, stdout);
1356 smbios_close(shp);
1364 err = smbios_lookup_id(shp, opt_i, &s);
1366 err = smbios_iter(shp, print_struct, stdout);
1370 g_pname, smbios_errmsg(smbios_errno(shp)));
1371 smbios_close(shp);
1376 (void) print_struct(shp, &s, stdout);
1378 smbios_close(shp);