Lines Matching defs:state
128 TP_ACPI_WGSV_GET_STATE = 0x01, /* Get state information */
131 TP_ACPI_WGSV_SAVE_STATE = 0x04, /* Save state for S4/S5 */
138 TP_ACPI_WGSV_STATE_WWANPWRRES = 0x0004, /* WWAN state at resume */
142 TP_ACPI_WGSV_STATE_BLTHPWRRES = 0x0004, /* BLTH state at resume */
1105 * as expected. It overrides all radio state in firmware
1107 * The kernel, a masked-off hotkey, and WLSW can change the radio state
1108 * (TODO: verify how WLSW interacts with the returned radio state).
1110 * The only time there are shadow radio state changes, is when
1115 * Internal driver API for radio state:
1155 /* Query FW and update rfkill sw state for a given rfkill switch */
1174 * Sync the HW-blocking state of all rfkill switches,
1193 /* Call to get the WLSW state from the firmware */
1196 /* Call to query WLSW state and update all rfkill switches */
1218 "request to change radio state to %s\n",
1221 /* try to set radio state */
1267 pr_err("failed to read initial state for %s, error %d\n",
1272 /* try to keep the initial state, since we ask the
1972 * want the kthread to forget old state.
1987 * old state.
2349 int state;
2352 !hotkey_get_tablet_mode(&state)) {
2356 SW_TABLET_MODE, !!state);
2546 /* repeated key presses that didn't change state */
2584 /* Initial state for compares */
2610 /* forget old state on thaw or config change */
3092 * Sync both the hw and sw blocking state of all switches
3111 /* Sync hw blocking state first if it is hw-blocked */
3115 /* Sync hw blocking state last if it is hw-unblocked */
3131 * this can be unconditional, as we will poll state again
4363 TP_ACPI_BLUETOOTH_RESUMECTRL = 0x04, /* Bluetooth state at resume:
4370 TP_ACPI_BLTH_GET_PWR_ON_RESUME = 0x01, /* Get power-on-resume state */
4373 TP_ACPI_BLTH_SAVE_STATE = 0x05, /* Save state for S4/S5 */
4395 static int bluetooth_set_status(enum tpacpi_rfkill_state state)
4401 (state == TPACPI_RFK_RADIO_ON) ? "enable" : "disable");
4405 tpacpi_bluetooth_emulstate = (state == TPACPI_RFK_RADIO_ON);
4410 if (state == TPACPI_RFK_RADIO_ON)
4459 /* Order firmware to save current state to NVRAM */
4462 pr_notice("failed to save bluetooth state to NVRAM\n");
4465 "bluetooth state saved to NVRAM\n");
4628 TP_ACPI_WANCARD_RESUMECTRL = 0x04, /* Wan state at resume:
4651 static int wan_set_status(enum tpacpi_rfkill_state state)
4657 (state == TPACPI_RFK_RADIO_ON) ? "enable" : "disable");
4661 tpacpi_wwan_emulstate = (state == TPACPI_RFK_RADIO_ON);
4666 if (state == TPACPI_RFK_RADIO_ON)
4716 /* Order firmware to save current state to NVRAM */
4719 pr_notice("failed to save WWAN state to NVRAM\n");
4722 "WWAN state saved to NVRAM\n");
4837 static int uwb_set_status(enum tpacpi_rfkill_state state)
4843 (state == TPACPI_RFK_RADIO_ON) ? "enable" : "disable");
4847 tpacpi_uwb_emulstate = (state == TPACPI_RFK_RADIO_ON);
4852 if (state == TPACPI_RFK_RADIO_ON)
7054 * read at startup doesn't match the real hardware state... so leave
7174 * The laptop changes the state of its internal MUTE gate and, on some
7272 "trying to checkpoint mixer state to NVRAM...\n");
7848 * user can set initial state through the volume=... parameter hack.
8032 * Fan control seems to affect both fans, regardless of the state
9218 int state;
9234 static int mute_led_on_off(struct tp_led_table *t, bool state)
9245 state ? t->on_value : t->off_value))
9248 t->state = state;
9249 return state;
9257 if (t->state < 0 || t->state == on)
9258 return t->state;
9297 t->state = -ENODEV;
9328 if (t->state >= 0)
9329 mute_led_on_off(t, t->state);
9758 static int lcdshadow_on_off(bool state)
9768 if (!acpi_evalf(set_shadow_handle, &output, NULL, "dd", (int)state))
9771 lcdshadow_state = state;
9828 int res, state = -EINVAL;
9834 res = kstrtoint(cmd, 10, &state);
9839 if (state >= 2 || state < 0)
9842 return lcdshadow_set(state);
9879 static int dytc_lapmode_get(bool *state)
9886 *state = output & BIT(DYTC_GET_LAPMODE_BIT) ? true : false;
10542 "Initial state of the emulated WLSW switch");
10548 "Initial state of the emulated bluetooth switch");
10554 "Initial state of the emulated WWAN switch");
10560 "Initial state of the emulated UWB switch");