Lines Matching refs:adev_dimm
1777 struct acpi_device *adev, *adev_dimm; in acpi_nfit_add_dimm() local
1808 adev_dimm = acpi_find_child_device(adev, device_handle, false); in acpi_nfit_add_dimm()
1809 nfit_mem->adev = adev_dimm; in acpi_nfit_add_dimm()
1810 if (!adev_dimm) { in acpi_nfit_add_dimm()
1816 if (ACPI_FAILURE(acpi_install_notify_handler(adev_dimm->handle, in acpi_nfit_add_dimm()
1817 ACPI_DEVICE_NOTIFY, acpi_nvdimm_notify, adev_dimm))) { in acpi_nfit_add_dimm()
1819 dev_name(&adev_dimm->dev)); in acpi_nfit_add_dimm()
1826 dev_set_drvdata(&adev_dimm->dev, nfit_mem); in acpi_nfit_add_dimm()
1843 if (acpi_check_dsm(adev_dimm->handle, to_nfit_uuid(i), 1, 1)) { in acpi_nfit_add_dimm()
1883 if (acpi_check_dsm(adev_dimm->handle, guid, in acpi_nfit_add_dimm()
1898 if (acpi_nvdimm_has_method(adev_dimm, "_LSI") in acpi_nfit_add_dimm()
1899 && acpi_nvdimm_has_method(adev_dimm, "_LSR")) { in acpi_nfit_add_dimm()
1900 dev_dbg(dev, "%s: has _LSR\n", dev_name(&adev_dimm->dev)); in acpi_nfit_add_dimm()
1905 && acpi_nvdimm_has_method(adev_dimm, "_LSW")) { in acpi_nfit_add_dimm()
1906 dev_dbg(dev, "%s: has _LSW\n", dev_name(&adev_dimm->dev)); in acpi_nfit_add_dimm()
1917 dev_name(&adev_dimm->dev)); in acpi_nfit_add_dimm()
1921 dev_name(&adev_dimm->dev)); in acpi_nfit_add_dimm()
1940 struct acpi_device *adev_dimm = nfit_mem->adev; in shutdown_dimm_notify() local
1946 if (adev_dimm) { in shutdown_dimm_notify()
1947 acpi_remove_notify_handler(adev_dimm->handle, in shutdown_dimm_notify()
1949 dev_set_drvdata(&adev_dimm->dev, NULL); in shutdown_dimm_notify()