Lines Matching refs:memdev

716 		struct acpi_nfit_memory_map *memdev)  in add_memdev()  argument
721 if (memdev->header.length != sizeof(*memdev)) in add_memdev()
725 if (memcmp(nfit_memdev->memdev, memdev, sizeof(*memdev)) == 0) { in add_memdev()
730 nfit_memdev = devm_kzalloc(dev, sizeof(*nfit_memdev) + sizeof(*memdev), in add_memdev()
735 memcpy(nfit_memdev->memdev, memdev, sizeof(*memdev)); in add_memdev()
738 memdev->device_handle, memdev->range_index, in add_memdev()
739 memdev->region_index, memdev->flags); in add_memdev()
745 struct acpi_nfit_memory_map *memdev; in nfit_get_smbios_id() local
754 memdev = __to_nfit_memdev(nfit_mem); in nfit_get_smbios_id()
755 if (memdev->device_handle == device_handle) { in nfit_get_smbios_id()
756 *flags = memdev->flags; in nfit_get_smbios_id()
757 physical_id = memdev->physical_id; in nfit_get_smbios_id()
1004 if (nfit_memdev->memdev->range_index != range_index) in nfit_mem_find_spa_bdw()
1006 if (nfit_memdev->memdev->device_handle != device_handle) in nfit_mem_find_spa_bdw()
1008 if (nfit_memdev->memdev->region_index != dcr) in nfit_mem_find_spa_bdw()
1047 if (nfit_memdev->memdev->range_index != range_index || in nfit_mem_init_bdw()
1048 nfit_memdev->memdev->region_index != dcr) in nfit_mem_init_bdw()
1050 nfit_mem->memdev_bdw = nfit_memdev->memdev; in nfit_mem_init_bdw()
1051 idt_idx = nfit_memdev->memdev->interleave_index; in nfit_mem_init_bdw()
1091 if (spa && nfit_memdev->memdev->range_index != spa->range_index) in __nfit_mem_init()
1093 if (!spa && nfit_memdev->memdev->range_index) in __nfit_mem_init()
1096 dcr = nfit_memdev->memdev->region_index; in __nfit_mem_init()
1097 device_handle = nfit_memdev->memdev->device_handle; in __nfit_mem_init()
1170 nfit_mem->memdev_dcr = nfit_memdev->memdev; in __nfit_mem_init()
1171 idt_idx = nfit_memdev->memdev->interleave_index; in __nfit_mem_init()
1185 nfit_mem->memdev_pmem = nfit_memdev->memdev; in __nfit_mem_init()
1187 nfit_mem->memdev_dcr = nfit_memdev->memdev; in __nfit_mem_init()
1443 struct acpi_nfit_memory_map *memdev = to_nfit_memdev(dev); in handle_show() local
1445 return sprintf(buf, "%#x\n", memdev->device_handle); in handle_show()
1452 struct acpi_nfit_memory_map *memdev = to_nfit_memdev(dev); in phys_id_show() local
1454 return sprintf(buf, "%#x\n", memdev->physical_id); in phys_id_show()
1552 struct acpi_nfit_memory_map *memdev = nfit_memdev->memdev; in format1_show() local
1555 if (memdev->device_handle != handle) in format1_show()
1559 if (nfit_dcr->dcr->region_index != memdev->region_index) in format1_show()
2078 != nfit_memdev->memdev->device_handle) in acpi_nfit_register_dimms()
2080 dimm_memdev->flags |= nfit_memdev->memdev->flags; in acpi_nfit_register_dimms()
2337 if (nfit_memdev->memdev->range_index == range_index) in memdev_from_spa()
2339 return nfit_memdev->memdev; in memdev_from_spa()
2373 struct acpi_nfit_memory_map *memdev = memdev_from_spa(acpi_desc, in acpi_nfit_init_interleave_set() local
2377 if (!memdev || !nfit_mem->dcr) { in acpi_nfit_init_interleave_set()
2382 map->region_offset = memdev->region_offset; in acpi_nfit_init_interleave_set()
2385 map2->region_offset = memdev->region_offset; in acpi_nfit_init_interleave_set()
2912 struct acpi_nfit_memory_map *memdev, in acpi_nfit_init_mapping() argument
2916 memdev->device_handle); in acpi_nfit_init_mapping()
2924 spa->range_index, memdev->device_handle); in acpi_nfit_init_mapping()
2932 mapping->start = memdev->address; in acpi_nfit_init_mapping()
2933 mapping->size = memdev->region_size; in acpi_nfit_init_mapping()
3027 struct acpi_nfit_memory_map *memdev = nfit_memdev->memdev; in acpi_nfit_register_region() local
3030 if (memdev->range_index != spa->range_index) in acpi_nfit_register_region()
3039 memdev, nfit_spa); in acpi_nfit_register_region()