Lines Matching refs:nfit_memdev

733 	struct nfit_memdev *nfit_memdev;  in add_memdev()  local
738 list_for_each_entry(nfit_memdev, &prev->memdevs, list) in add_memdev()
739 if (memcmp(nfit_memdev->memdev, memdev, sizeof(*memdev)) == 0) { in add_memdev()
740 list_move_tail(&nfit_memdev->list, &acpi_desc->memdevs); in add_memdev()
744 nfit_memdev = devm_kzalloc(dev, sizeof(*nfit_memdev) + sizeof(*memdev), in add_memdev()
746 if (!nfit_memdev) in add_memdev()
748 INIT_LIST_HEAD(&nfit_memdev->list); in add_memdev()
749 memcpy(nfit_memdev->memdev, memdev, sizeof(*memdev)); in add_memdev()
750 list_add_tail(&nfit_memdev->list, &acpi_desc->memdevs); in add_memdev()
1006 struct nfit_memdev *nfit_memdev; in __nfit_mem_init() local
1025 list_for_each_entry(nfit_memdev, &acpi_desc->memdevs, list) { in __nfit_mem_init()
1031 if (spa && nfit_memdev->memdev->range_index != spa->range_index) in __nfit_mem_init()
1033 if (!spa && nfit_memdev->memdev->range_index) in __nfit_mem_init()
1036 dcr = nfit_memdev->memdev->region_index; in __nfit_mem_init()
1037 device_handle = nfit_memdev->memdev->device_handle; in __nfit_mem_init()
1110 nfit_mem->memdev_dcr = nfit_memdev->memdev; in __nfit_mem_init()
1111 idt_idx = nfit_memdev->memdev->interleave_index; in __nfit_mem_init()
1124 nfit_mem->memdev_pmem = nfit_memdev->memdev; in __nfit_mem_init()
1126 nfit_mem->memdev_dcr = nfit_memdev->memdev; in __nfit_mem_init()
1478 struct nfit_memdev *nfit_memdev; in format1_show() local
1489 list_for_each_entry(nfit_memdev, &acpi_desc->memdevs, list) { in format1_show()
1490 struct acpi_nfit_memory_map *memdev = nfit_memdev->memdev; in format1_show()
1994 struct nfit_memdev *nfit_memdev; in acpi_nfit_register_dimms() local
2006 list_for_each_entry(nfit_memdev, &acpi_desc->memdevs, list) { in acpi_nfit_register_dimms()
2011 != nfit_memdev->memdev->device_handle) in acpi_nfit_register_dimms()
2013 dimm_memdev->flags |= nfit_memdev->memdev->flags; in acpi_nfit_register_dimms()
2247 struct nfit_memdev *nfit_memdev; in memdev_from_spa() local
2249 list_for_each_entry(nfit_memdev, &acpi_desc->memdevs, list) in memdev_from_spa()
2250 if (nfit_memdev->memdev->range_index == range_index) in memdev_from_spa()
2252 return nfit_memdev->memdev; in memdev_from_spa()
2602 struct nfit_memdev *nfit_memdev; in acpi_nfit_register_region() local
2654 list_for_each_entry(nfit_memdev, &acpi_desc->memdevs, list) { in acpi_nfit_register_region()
2655 struct acpi_nfit_memory_map *memdev = nfit_memdev->memdev; in acpi_nfit_register_region()