Lines Matching refs:memdev
728 struct acpi_nfit_memory_map *memdev) in add_memdev() argument
733 if (memdev->header.length != sizeof(*memdev)) in add_memdev()
737 if (memcmp(nfit_memdev->memdev, memdev, sizeof(*memdev)) == 0) { in add_memdev()
742 nfit_memdev = devm_kzalloc(dev, sizeof(*nfit_memdev) + sizeof(*memdev), in add_memdev()
747 memcpy(nfit_memdev->memdev, memdev, sizeof(*memdev)); in add_memdev()
750 memdev->device_handle, memdev->range_index, in add_memdev()
751 memdev->region_index, memdev->flags); in add_memdev()
757 struct acpi_nfit_memory_map *memdev; in nfit_get_smbios_id() local
766 memdev = __to_nfit_memdev(nfit_mem); in nfit_get_smbios_id()
767 if (memdev->device_handle == device_handle) { in nfit_get_smbios_id()
768 *flags = memdev->flags; in nfit_get_smbios_id()
769 physical_id = memdev->physical_id; in nfit_get_smbios_id()
1016 if (nfit_memdev->memdev->range_index != range_index) in nfit_mem_find_spa_bdw()
1018 if (nfit_memdev->memdev->device_handle != device_handle) in nfit_mem_find_spa_bdw()
1020 if (nfit_memdev->memdev->region_index != dcr) in nfit_mem_find_spa_bdw()
1059 if (nfit_memdev->memdev->range_index != range_index || in nfit_mem_init_bdw()
1060 nfit_memdev->memdev->region_index != dcr) in nfit_mem_init_bdw()
1062 nfit_mem->memdev_bdw = nfit_memdev->memdev; in nfit_mem_init_bdw()
1063 idt_idx = nfit_memdev->memdev->interleave_index; in nfit_mem_init_bdw()
1103 if (spa && nfit_memdev->memdev->range_index != spa->range_index) in __nfit_mem_init()
1105 if (!spa && nfit_memdev->memdev->range_index) in __nfit_mem_init()
1108 dcr = nfit_memdev->memdev->region_index; in __nfit_mem_init()
1109 device_handle = nfit_memdev->memdev->device_handle; in __nfit_mem_init()
1182 nfit_mem->memdev_dcr = nfit_memdev->memdev; in __nfit_mem_init()
1183 idt_idx = nfit_memdev->memdev->interleave_index; in __nfit_mem_init()
1197 nfit_mem->memdev_pmem = nfit_memdev->memdev; in __nfit_mem_init()
1199 nfit_mem->memdev_dcr = nfit_memdev->memdev; in __nfit_mem_init()
1456 struct acpi_nfit_memory_map *memdev = to_nfit_memdev(dev); in handle_show() local
1458 return sprintf(buf, "%#x\n", memdev->device_handle); in handle_show()
1465 struct acpi_nfit_memory_map *memdev = to_nfit_memdev(dev); in phys_id_show() local
1467 return sprintf(buf, "%#x\n", memdev->physical_id); in phys_id_show()
1565 struct acpi_nfit_memory_map *memdev = nfit_memdev->memdev; in format1_show() local
1568 if (memdev->device_handle != handle) in format1_show()
1572 if (nfit_dcr->dcr->region_index != memdev->region_index) in format1_show()
2091 != nfit_memdev->memdev->device_handle) in acpi_nfit_register_dimms()
2093 dimm_memdev->flags |= nfit_memdev->memdev->flags; in acpi_nfit_register_dimms()
2334 if (nfit_memdev->memdev->range_index == range_index) in memdev_from_spa()
2336 return nfit_memdev->memdev; in memdev_from_spa()
2370 struct acpi_nfit_memory_map *memdev = in acpi_nfit_init_interleave_set() local
2374 if (!memdev || !nfit_mem->dcr) { in acpi_nfit_init_interleave_set()
2379 map->region_offset = memdev->region_offset; in acpi_nfit_init_interleave_set()
2382 map2->region_offset = memdev->region_offset; in acpi_nfit_init_interleave_set()
2906 struct acpi_nfit_memory_map *memdev, in acpi_nfit_init_mapping() argument
2910 memdev->device_handle); in acpi_nfit_init_mapping()
2918 spa->range_index, memdev->device_handle); in acpi_nfit_init_mapping()
2926 mapping->start = memdev->address; in acpi_nfit_init_mapping()
2927 mapping->size = memdev->region_size; in acpi_nfit_init_mapping()
3033 struct acpi_nfit_memory_map *memdev = nfit_memdev->memdev; in acpi_nfit_register_region() local
3037 if (memdev->range_index == 0 || spa->range_index == 0) in acpi_nfit_register_region()
3039 if (memdev->range_index != spa->range_index) in acpi_nfit_register_region()
3048 memdev, nfit_spa); in acpi_nfit_register_region()