Lines Matching refs:dptr
81 static bool is_old_dmi(size_t dptr) in is_old_dmi() argument
83 const struct dmi_header *dmi = (void *)dptr; in is_old_dmi()
90 static bool is_smbios(size_t dptr) in is_smbios() argument
92 const struct smbios_header *smb = (void *)dptr; in is_smbios()
96 is_old_dmi(dptr+16); in is_smbios()
104 size_t dptr; in dmi_find_header() local
107 for (dptr = 0xf0000 ; dptr < 0x100000 ; dptr += 16) { in dmi_find_header()
108 if (is_smbios(dptr)) { in dmi_find_header()
109 dmi = (const struct dmi_header *)(dptr + 16); in dmi_find_header()
111 } else if (is_old_dmi(dptr)) { in dmi_find_header()
112 dmi = (const struct dmi_header *)dptr; in dmi_find_header()