Lines Matching refs:adev_dimm
1700 struct acpi_device *adev, *adev_dimm; in acpi_nfit_add_dimm() local
1714 adev_dimm = acpi_find_child_device(adev, device_handle, false); in acpi_nfit_add_dimm()
1715 nfit_mem->adev = adev_dimm; in acpi_nfit_add_dimm()
1716 if (!adev_dimm) { in acpi_nfit_add_dimm()
1722 if (ACPI_FAILURE(acpi_install_notify_handler(adev_dimm->handle, in acpi_nfit_add_dimm()
1723 ACPI_DEVICE_NOTIFY, acpi_nvdimm_notify, adev_dimm))) { in acpi_nfit_add_dimm()
1725 dev_name(&adev_dimm->dev)); in acpi_nfit_add_dimm()
1732 dev_set_drvdata(&adev_dimm->dev, nfit_mem); in acpi_nfit_add_dimm()
1740 if (acpi_check_dsm(adev_dimm->handle, to_nfit_uuid(i), 1, 1)) in acpi_nfit_add_dimm()
1769 if (acpi_check_dsm(adev_dimm->handle, guid, in acpi_nfit_add_dimm()
1784 if (acpi_nvdimm_has_method(adev_dimm, "_LSI") in acpi_nfit_add_dimm()
1785 && acpi_nvdimm_has_method(adev_dimm, "_LSR")) { in acpi_nfit_add_dimm()
1786 dev_dbg(dev, "%s: has _LSR\n", dev_name(&adev_dimm->dev)); in acpi_nfit_add_dimm()
1790 if (nfit_mem->has_lsr && acpi_nvdimm_has_method(adev_dimm, "_LSW")) { in acpi_nfit_add_dimm()
1791 dev_dbg(dev, "%s: has _LSW\n", dev_name(&adev_dimm->dev)); in acpi_nfit_add_dimm()
1809 struct acpi_device *adev_dimm = nfit_mem->adev; in shutdown_dimm_notify() local
1815 if (adev_dimm) { in shutdown_dimm_notify()
1816 acpi_remove_notify_handler(adev_dimm->handle, in shutdown_dimm_notify()
1818 dev_set_drvdata(&adev_dimm->dev, NULL); in shutdown_dimm_notify()