Lines Matching refs:dmi_memdev
43 } *dmi_memdev; variable
434 dmi_memdev[nr].handle = get_unaligned(&dm->handle); in save_mem_devices()
435 dmi_memdev[nr].device = dmi_string(dm, d[0x10]); in save_mem_devices()
436 dmi_memdev[nr].bank = dmi_string(dm, d[0x11]); in save_mem_devices()
437 dmi_memdev[nr].type = d[0x12]; in save_mem_devices()
451 dmi_memdev[nr].size = bytes; in save_mem_devices()
458 dmi_memdev = dmi_alloc(sizeof(*dmi_memdev) * dmi_memdev_nr); in dmi_memdev_walk()
459 if (dmi_memdev) in dmi_memdev_walk()
1142 if (dmi_memdev == NULL) in dmi_memdev_name()
1146 if (handle == dmi_memdev[n].handle) { in dmi_memdev_name()
1147 *bank = dmi_memdev[n].bank; in dmi_memdev_name()
1148 *device = dmi_memdev[n].device; in dmi_memdev_name()
1159 if (dmi_memdev) { in dmi_memdev_size()
1161 if (handle == dmi_memdev[n].handle) in dmi_memdev_size()
1162 return dmi_memdev[n].size; in dmi_memdev_size()
1180 if (dmi_memdev) { in dmi_memdev_type()
1182 if (handle == dmi_memdev[n].handle) in dmi_memdev_type()
1183 return dmi_memdev[n].type; in dmi_memdev_type()
1199 if (dmi_memdev && slot >= 0 && slot < dmi_memdev_nr) in dmi_memdev_handle()
1200 return dmi_memdev[slot].handle; in dmi_memdev_handle()