Lines Matching refs:nfit_memdev

667 	struct nfit_memdev *nfit_memdev;  in add_memdev()  local
672 list_for_each_entry(nfit_memdev, &prev->memdevs, list) in add_memdev()
673 if (memcmp(nfit_memdev->memdev, memdev, sizeof(*memdev)) == 0) { in add_memdev()
674 list_move_tail(&nfit_memdev->list, &acpi_desc->memdevs); in add_memdev()
678 nfit_memdev = devm_kzalloc(dev, sizeof(*nfit_memdev) + sizeof(*memdev), in add_memdev()
680 if (!nfit_memdev) in add_memdev()
682 INIT_LIST_HEAD(&nfit_memdev->list); in add_memdev()
683 memcpy(nfit_memdev->memdev, memdev, sizeof(*memdev)); in add_memdev()
684 list_add_tail(&nfit_memdev->list, &acpi_desc->memdevs); in add_memdev()
944 struct nfit_memdev *nfit_memdev; in nfit_mem_find_spa_bdw() local
949 list_for_each_entry(nfit_memdev, &acpi_desc->memdevs, list) { in nfit_mem_find_spa_bdw()
950 if (nfit_memdev->memdev->range_index != range_index) in nfit_mem_find_spa_bdw()
952 if (nfit_memdev->memdev->device_handle != device_handle) in nfit_mem_find_spa_bdw()
954 if (nfit_memdev->memdev->region_index != dcr) in nfit_mem_find_spa_bdw()
971 struct nfit_memdev *nfit_memdev; in nfit_mem_init_bdw() local
992 list_for_each_entry(nfit_memdev, &acpi_desc->memdevs, list) { in nfit_mem_init_bdw()
993 if (nfit_memdev->memdev->range_index != range_index || in nfit_mem_init_bdw()
994 nfit_memdev->memdev->region_index != dcr) in nfit_mem_init_bdw()
996 nfit_mem->memdev_bdw = nfit_memdev->memdev; in nfit_mem_init_bdw()
997 idt_idx = nfit_memdev->memdev->interleave_index; in nfit_mem_init_bdw()
1012 struct nfit_memdev *nfit_memdev; in __nfit_mem_init() local
1031 list_for_each_entry(nfit_memdev, &acpi_desc->memdevs, list) { in __nfit_mem_init()
1037 if (spa && nfit_memdev->memdev->range_index != spa->range_index) in __nfit_mem_init()
1039 if (!spa && nfit_memdev->memdev->range_index) in __nfit_mem_init()
1042 dcr = nfit_memdev->memdev->region_index; in __nfit_mem_init()
1043 device_handle = nfit_memdev->memdev->device_handle; in __nfit_mem_init()
1116 nfit_mem->memdev_dcr = nfit_memdev->memdev; in __nfit_mem_init()
1117 idt_idx = nfit_memdev->memdev->interleave_index; in __nfit_mem_init()
1131 nfit_mem->memdev_pmem = nfit_memdev->memdev; in __nfit_mem_init()
1133 nfit_mem->memdev_dcr = nfit_memdev->memdev; in __nfit_mem_init()
1470 struct nfit_memdev *nfit_memdev; in format1_show() local
1481 list_for_each_entry(nfit_memdev, &acpi_desc->memdevs, list) { in format1_show()
1482 struct acpi_nfit_memory_map *memdev = nfit_memdev->memdev; in format1_show()
1833 struct nfit_memdev *nfit_memdev; in acpi_nfit_register_dimms() local
1848 list_for_each_entry(nfit_memdev, &acpi_desc->memdevs, list) { in acpi_nfit_register_dimms()
1853 != nfit_memdev->memdev->device_handle) in acpi_nfit_register_dimms()
1855 dimm_memdev->flags |= nfit_memdev->memdev->flags; in acpi_nfit_register_dimms()
2084 struct nfit_memdev *nfit_memdev; in memdev_from_spa() local
2086 list_for_each_entry(nfit_memdev, &acpi_desc->memdevs, list) in memdev_from_spa()
2087 if (nfit_memdev->memdev->range_index == range_index) in memdev_from_spa()
2089 return nfit_memdev->memdev; in memdev_from_spa()
2728 struct nfit_memdev *nfit_memdev; in acpi_nfit_register_region() local
2766 list_for_each_entry(nfit_memdev, &acpi_desc->memdevs, list) { in acpi_nfit_register_region()
2767 struct acpi_nfit_memory_map *memdev = nfit_memdev->memdev; in acpi_nfit_register_region()