Lines Matching defs:state
27 #define ACPI_BUTTON_FILE_STATE "state"
192 static int acpi_lid_notify_state(struct acpi_device *device, int state)
206 button->last_state != !!state)
213 if (button->last_state == !!state &&
223 * 1. Platforms returning initial lid state as "close" by
238 * state is not switched, the userspace cannot see this
254 if (!state) {
256 SW_LID, state);
264 state ? "open" : "closed");
265 input_report_switch(button->input, SW_LID, !state);
267 button->last_state = !!state;
278 int state;
280 state = acpi_lid_evaluate_state(device);
281 seq_printf(seq, "state: %s\n",
282 state < 0 ? "unsupported" : (state ? "open" : "closed"));
320 /* create /proc/acpi/button/lid/LID/state */
380 int state;
382 state = acpi_lid_evaluate_state(device);
383 if (state < 0)
384 return state;
386 if (state && signal_wakeup)
389 return acpi_lid_notify_state(device, state);
611 pr_info("Initial lid state set to '%s'\n", lid_init_state_str[i]);
633 MODULE_PARM_DESC(lid_init_state, "Behavior for reporting LID initial state");