• Home
  • Raw
  • Download

Lines Matching refs:dh

33 	struct dmi_header dh;  member
68 const struct dmi_header *dh,
114 const struct dmi_header *dh, void *);
124 static void find_dmi_entry_helper(const struct dmi_header *dh, in find_dmi_entry_helper() argument
131 if (dh->type != entry->dh.type) in find_dmi_entry_helper()
147 data->ret = data->callback(entry, dh, data->private); in find_dmi_entry_helper()
181 static size_t dmi_entry_length(const struct dmi_header *dh) in dmi_entry_length() argument
183 const char *p = (const char *)dh; in dmi_entry_length()
185 p += dh->length; in dmi_entry_length()
190 return 2 + p - (const char *)dh; in dmi_entry_length()
202 const struct dmi_header *dh, in dmi_entry_attr_show_helper() argument
210 return attr->show(entry, dh, data->buf); in dmi_entry_attr_show_helper()
268 const struct dmi_header *dh, \
272 if (sizeof(sel) > dmi_entry_length(dh)) \
274 memcpy(&sel, dh, sizeof(sel)); \
398 const struct dmi_header *dh, in dmi_sel_raw_read_helper() argument
404 if (sizeof(sel) > dmi_entry_length(dh)) in dmi_sel_raw_read_helper()
407 memcpy(&sel, dh, sizeof(sel)); in dmi_sel_raw_read_helper()
480 return sprintf(buf, "%d\n", entry->dh.length); in dmi_sysfs_entry_length()
485 return sprintf(buf, "%d\n", entry->dh.handle); in dmi_sysfs_entry_handle()
490 return sprintf(buf, "%d\n", entry->dh.type); in dmi_sysfs_entry_type()
521 const struct dmi_header *dh, in dmi_entry_raw_read_helper() argument
527 entry_length = dmi_entry_length(dh); in dmi_entry_raw_read_helper()
530 &state->pos, dh, entry_length); in dmi_entry_raw_read_helper()
578 static void __init dmi_sysfs_register_handle(const struct dmi_header *dh, in dmi_sysfs_register_handle() argument
596 memcpy(&entry->dh, dh, sizeof(*dh)); in dmi_sysfs_register_handle()
597 entry->instance = instance_counts[dh->type]++; in dmi_sysfs_register_handle()
602 "%d-%d", dh->type, entry->instance); in dmi_sysfs_register_handle()
615 switch (dh->type) { in dmi_sysfs_register_handle()