Lines Matching +full:button +full:- +full:uid
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
128 * Fortunately, drm-kmod do not distinct AC event types too, so we can in linux_handle_acpi_acad_event()
137 nb->notifier_call(nb, 0, &abe); in linux_handle_acpi_acad_event()
150 nb->notifier_call(nb, 0, &abe); in linux_handle_acpi_video_event()
156 nb->tags[LINUX_ACPI_ACAD] = EVENTHANDLER_REGISTER(acpi_acad_event, in register_acpi_notifier()
158 nb->tags[LINUX_ACPI_VIDEO] = EVENTHANDLER_REGISTER(acpi_video_event, in register_acpi_notifier()
167 EVENTHANDLER_DEREGISTER(acpi_acad_event, nb->tags[LINUX_ACPI_ACAD]); in unregister_acpi_notifier()
168 EVENTHANDLER_DEREGISTER(acpi_video_event, nb->tags[LINUX_ACPI_VIDEO]); in unregister_acpi_notifier()
181 const char *uid; member
207 if ((devinfo->Valid & ACPI_VALID_HID) != 0 && in acpi_dev_present_cb()
208 strcmp(match->hid, devinfo->HardwareId.String) == 0) { in acpi_dev_present_cb()
210 } else if ((devinfo->Valid & ACPI_VALID_CID) != 0) { in acpi_dev_present_cb()
211 for (i = 0; i < devinfo->CompatibleIdList.Count; i++) { in acpi_dev_present_cb()
212 if (strcmp(match->hid, in acpi_dev_present_cb()
213 devinfo->CompatibleIdList.Ids[i].String) == 0) { in acpi_dev_present_cb()
219 if (present && match->uid != NULL && in acpi_dev_present_cb()
220 ((devinfo->Valid & ACPI_VALID_UID) == 0 || in acpi_dev_present_cb()
221 strcmp(match->uid, devinfo->UniqueId.String) != 0)) in acpi_dev_present_cb()
228 if (match->hrv != -1) { in acpi_dev_present_cb()
231 if (hrv != match->hrv) in acpi_dev_present_cb()
238 match->dev = dev; in acpi_dev_present_cb()
244 lkpi_acpi_dev_present(const char *hid, const char *uid, int64_t hrv) in lkpi_acpi_dev_present() argument
250 match.uid = uid; in lkpi_acpi_dev_present()
260 lkpi_acpi_dev_get_first_match_dev(const char *hid, const char *uid, in lkpi_acpi_dev_get_first_match_dev() argument
267 match.uid = uid; in lkpi_acpi_dev_get_first_match_dev()
282 * power_{suspend_early,resume} 'acpiconf -s 3' or 'zzz' will not in linux_register_acpi_event_handlers()
283 * generate acpi_sleep_event... Lid open or wake on button generates in linux_register_acpi_event_handlers()
345 lkpi_acpi_dev_present(const char *hid, const char *uid, int64_t hrv) in lkpi_acpi_dev_present() argument
351 lkpi_acpi_dev_get_first_match_dev(const char *hid, const char *uid, in lkpi_acpi_dev_get_first_match_dev() argument