Lines Matching defs: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)); \
402 const struct dmi_header *dh,
408 if (sizeof(sel) > dmi_entry_length(dh))
411 memcpy(&sel, dh, sizeof(sel));
486 return sprintf(buf, "%d\n", entry->dh.length);
491 return sprintf(buf, "%d\n", entry->dh.handle);
496 return sprintf(buf, "%d\n", entry->dh.type);
528 const struct dmi_header *dh,
534 entry_length = dmi_entry_length(dh);
537 &state->pos, dh, entry_length);
584 static void __init dmi_sysfs_register_handle(const struct dmi_header *dh,
602 memcpy(&entry->dh, dh, sizeof(*dh));
603 entry->instance = instance_counts[dh->type]++;
608 "%d-%d", dh->type, entry->instance);
621 switch (dh->type) {