Lines Matching refs:smbst_hdr

206 	const uint8_t *sp = (const uint8_t *)(uintptr_t)stp->smbst_hdr;  in smb_info_strptr()
256 if (isp->is_type == stp->smbst_hdr->smbh_type) in smbios_info_common()
323 if (isp->is_type == stp->smbst_hdr->smbh_type) in smbios_info_contains()
330 cnt = *((uint8_t *)(uintptr_t)stp->smbst_hdr + isp->is_contc); in smbios_info_contains()
331 cp = (id_t *)((uintptr_t)stp->smbst_hdr + isp->is_contv); in smbios_info_contains()
355 if (stp->smbst_hdr->smbh_len < sizeof (smb_bios_t) - sizeof (uint8_t)) in smbios_info_bios()
358 bip = (smb_bios_t *)(uintptr_t)stp->smbst_hdr; in smbios_info_bios()
376 if (stp->smbst_hdr->smbh_len >= sizeof (smb_bios_t)) { in smbios_info_bios()
378 bp->smbb_nxcflags = stp->smbst_hdr->smbh_len - in smbios_info_bios()
438 return (stp->smbst_hdr->smbh_hdl); in smbios_info_bios()
450 smb_info_bcopy(stp->smbst_hdr, &si, sizeof (si)); in smbios_info_system()
453 sip->smbs_uuid = ((smb_system_t *)stp->smbst_hdr)->smbsi_uuid; in smbios_info_system()
459 return (stp->smbst_hdr->smbh_hdl); in smbios_info_system()
471 if (stp->smbst_hdr->smbh_type != SMB_TYPE_BASEBOARD) in smbios_info_bboard()
474 smb_info_bcopy(stp->smbst_hdr, &bb, sizeof (bb)); in smbios_info_bboard()
496 if (stp->smbst_hdr->smbh_type != SMB_TYPE_CHASSIS) in smbios_info_chassis()
499 smb_info_bcopy(stp->smbst_hdr, ch, sizeof (buf)); in smbios_info_chassis()
534 if (stp->smbst_hdr->smbh_type != SMB_TYPE_PROCESSOR) in smbios_info_processor()
537 smb_info_bcopy(stp->smbst_hdr, &p, sizeof (p)); in smbios_info_processor()
581 if (stp->smbst_hdr->smbh_type != SMB_TYPE_CACHE) in smbios_info_cache()
584 smb_info_bcopy(stp->smbst_hdr, &c, sizeof (c)); in smbios_info_cache()
628 if (stp->smbst_hdr->smbh_type != SMB_TYPE_PORT) in smbios_info_port()
631 smb_info_bcopy(stp->smbst_hdr, &p, sizeof (p)); in smbios_info_port()
653 if (stp->smbst_hdr->smbh_type != SMB_TYPE_SLOT) in smbios_info_slot()
656 smb_info_bcopy(stp->smbst_hdr, &s, sizeof (s)); in smbios_info_slot()
683 if (stp->smbst_hdr->smbh_type != SMB_TYPE_OBDEVEXT) in smbios_info_obdevs_ext()
686 smb_info_bcopy(stp->smbst_hdr, &obe, sizeof (obe)); in smbios_info_obdevs_ext()
709 if (stp->smbst_hdr->smbh_type != SMB_TYPE_OBDEVS) in smbios_info_obdevs()
712 op = (smb_obdev_t *)((uintptr_t)stp->smbst_hdr + sizeof (smb_header_t)); in smbios_info_obdevs()
713 m = (stp->smbst_hdr->smbh_len - sizeof (smb_header_t)) / sizeof (*op); in smbios_info_obdevs()
741 if (stp->smbst_hdr->smbh_type != SMB_TYPE_OEMSTR && in smbios_info_strtab()
742 stp->smbst_hdr->smbh_type != SMB_TYPE_SYSCONFSTR && in smbios_info_strtab()
743 stp->smbst_hdr->smbh_type != SMB_TYPE_LANG) in smbios_info_strtab()
746 smb_info_bcopy(stp->smbst_hdr, &s, sizeof (s)); in smbios_info_strtab()
764 smb_info_bcopy(stp->smbst_hdr, &l, sizeof (l)); in smbios_info_lang()
771 return (stp->smbst_hdr->smbh_hdl); in smbios_info_lang()
784 if (stp->smbst_hdr->smbh_len < sizeof (smb_sel_t) - sizeof (uint8_t)) in smbios_info_eventlog()
787 sel = (smb_sel_t *)(uintptr_t)stp->smbst_hdr; in smbios_info_eventlog()
788 len = stp->smbst_hdr->smbh_len - sizeof (smb_sel_t) + sizeof (uint8_t); in smbios_info_eventlog()
808 return (stp->smbst_hdr->smbh_hdl); in smbios_info_eventlog()
820 if (stp->smbst_hdr->smbh_type != SMB_TYPE_MEMARRAY) in smbios_info_memarray()
823 smb_info_bcopy(stp->smbst_hdr, &m, sizeof (m)); in smbios_info_memarray()
851 if (stp->smbst_hdr->smbh_type != SMB_TYPE_MEMARRAYMAP) in smbios_info_memarrmap()
854 smb_info_bcopy(stp->smbst_hdr, &m, sizeof (m)); in smbios_info_memarrmap()
881 if (stp->smbst_hdr->smbh_type != SMB_TYPE_MEMDEVICE) in smbios_info_memdevice()
884 smb_info_bcopy(stp->smbst_hdr, &m, sizeof (m)); in smbios_info_memdevice()
938 if (stp->smbst_hdr->smbh_type != SMB_TYPE_MEMDEVICEMAP) in smbios_info_memdevmap()
941 smb_info_bcopy(stp->smbst_hdr, &m, sizeof (m)); in smbios_info_memdevmap()
971 smb_info_bcopy(stp->smbst_hdr, &hs, sizeof (hs)); in smbios_info_hwsec()
979 return (stp->smbst_hdr->smbh_hdl); in smbios_info_hwsec()
986 const smb_boot_t *b = (smb_boot_t *)(uintptr_t)stp->smbst_hdr; in smbios_info_boot()
994 bp->smbt_size = stp->smbst_hdr->smbh_len - sizeof (smb_boot_t); in smbios_info_boot()
997 return (stp->smbst_hdr->smbh_hdl); in smbios_info_boot()
1009 smb_info_bcopy(stp->smbst_hdr, &i, sizeof (i)); in smbios_info_ipmi()
1053 return (stp->smbst_hdr->smbh_hdl); in smbios_info_ipmi()
1064 if (stp->smbst_hdr->smbh_type != SMB_TYPE_OEMSTR) in smbios_has_oemstr()
1067 smb_info_bcopy(stp->smbst_hdr, &s, sizeof (s)); in smbios_has_oemstr()
1119 smbios_info_common(shp, stp->smbst_hdr->smbh_hdl, &s1) == SMB_ERR) in smb_get_sn()
1124 smbios_info_common(shp, stp->smbst_hdr->smbh_hdl, &s3) == SMB_ERR) in smb_get_sn()
1163 if (stp->smbst_hdr->smbh_type != SUN_OEM_EXT_PROCESSOR) in smbios_info_extprocessor()
1166 exp = (smb_processor_ext_t *)(uintptr_t)stp->smbst_hdr; in smbios_info_extprocessor()
1186 if (stp->smbst_hdr->smbh_type != SUN_OEM_EXT_PORT) in smbios_info_extport()
1189 ep = (smb_port_ext_t *)(uintptr_t)stp->smbst_hdr; in smbios_info_extport()
1211 if (stp->smbst_hdr->smbh_type != SUN_OEM_PCIEXRC) in smbios_info_pciexrc()
1214 smb_info_bcopy(stp->smbst_hdr, &rc, sizeof (rc)); in smbios_info_pciexrc()
1232 if (stp->smbst_hdr->smbh_type != SUN_OEM_EXT_MEMARRAY) in smbios_info_extmemarray()
1235 smb_info_bcopy(stp->smbst_hdr, &exma, sizeof (exma)); in smbios_info_extmemarray()
1255 if (stp->smbst_hdr->smbh_type != SUN_OEM_EXT_MEMDEVICE) in smbios_info_extmemdevice()
1258 smb_info_bcopy(stp->smbst_hdr, &exmd, sizeof (exmd)); in smbios_info_extmemdevice()