Lines Matching refs:dh
35 struct dmi_header dh;
70 const struct dmi_header *dh,
116 const struct dmi_header *dh, void *);
126 static void find_dmi_entry_helper(const struct dmi_header *dh,
133 if (dh->type != entry->dh.type)
149 data->ret = data->callback(entry, dh, data->private);
180 * dh. This includes both the formatted portion as well as the
183 static size_t dmi_entry_length(const struct dmi_header *dh)
185 const char *p = (const char *)dh;
187 p += dh->length;
192 return 2 + p - (const char *)dh;
204 const struct dmi_header *dh,
212 return attr->show(entry, dh, data->buf);
270 const struct dmi_header *dh, \
274 if (sizeof(sel) > dmi_entry_length(dh)) \
276 memcpy(&sel, dh, sizeof(sel)); \
400 const struct dmi_header *dh,
406 if (sizeof(sel) > dmi_entry_length(dh))
409 memcpy(&sel, dh, sizeof(sel));
482 return sprintf(buf, "%d\n", entry->dh.length);
487 return sprintf(buf, "%d\n", entry->dh.handle);
492 return sprintf(buf, "%d\n", entry->dh.type);
523 const struct dmi_header *dh,
529 entry_length = dmi_entry_length(dh);
532 &state->pos, dh, entry_length);
579 static void __init dmi_sysfs_register_handle(const struct dmi_header *dh,
597 memcpy(&entry->dh, dh, sizeof(*dh));
598 entry->instance = instance_counts[dh->type]++;
603 "%d-%d", dh->type, entry->instance);
616 switch (dh->type) {