Lines Matching defs:adev
773 * @adev: ACPI device to match.
777 * Matches HID and UID in @adev with given @hid2 and @uid2.
780 bool acpi_dev_hid_uid_match(struct acpi_device *adev,
783 const char *hid1 = acpi_device_hid(adev);
784 const char *uid1 = acpi_device_uid(adev);
798 * @adev: ACPI device to get _UID from
805 int acpi_dev_uid_to_integer(struct acpi_device *adev, u64 *integer)
809 if (!adev)
812 uid = acpi_device_uid(adev);
858 struct acpi_device *adev = to_acpi_device(dev);
863 if (acpi_match_device_ids(adev, match->hid))
866 if (match->uid && (!adev->pnp.unique_id ||
867 strcmp(adev->pnp.unique_id, match->uid)))
873 status = acpi_evaluate_integer(adev->handle, "_HRV", NULL, &hrv);
917 * @adev: Pointer to the previous ACPI device matching this @hid, @uid and @hrv
926 * On the other hand the function invokes acpi_dev_put() on the given @adev
932 acpi_dev_get_next_match_dev(struct acpi_device *adev, const char *hid, const char *uid, s64 hrv)
934 struct device *start = adev ? &adev->dev : NULL;
943 acpi_dev_put(adev);