Lines Matching defs:lid
95 struct acpi_lid *lid;
107 SLIST_FOREACH(lid, &acpibtn_lids, abl_link)
108 if (!aml_evalinteger(lid->abl_softc->sc_acpi,
109 lid->abl_softc->sc_devnode, "_LID", 0, NULL, &val) &&
132 struct acpi_lid *lid;
135 SLIST_FOREACH(lid, &acpibtn_lids, abl_link)
136 acpibtn_setpsw(lid->abl_softc, 0);
142 struct acpi_lid *lid;
145 SLIST_FOREACH(lid, &acpibtn_lids, abl_link)
146 acpibtn_setpsw(lid->abl_softc, 1);
164 struct acpi_lid *lid;
184 lid = malloc(sizeof(*lid), M_DEVBUF, M_WAITOK | M_ZERO);
185 lid->abl_softc = sc;
186 SLIST_INSERT_HEAD(&acpibtn_lids, lid, abl_link);
195 strlcpy(sc->sc_sens.desc, "lid open",
226 int64_t lid;
240 * Notification of 0x80 for lid opens or closes. We
242 * _LID method. 0 means the lid is closed and we
246 "_LID", 0, NULL, &lid))
248 if (sc->sc_sens.value == lid)
250 sc->sc_sens.value = lid;
252 if (lid != 0)