Lines Matching defs:state
137 TP_ACPI_WGSV_GET_STATE = 0x01, /* Get state information */
140 TP_ACPI_WGSV_SAVE_STATE = 0x04, /* Save state for S4/S5 */
147 TP_ACPI_WGSV_STATE_WWANPWRRES = 0x0004, /* WWAN state at resume */
151 TP_ACPI_WGSV_STATE_BLTHPWRRES = 0x0004, /* BLTH state at resume */
1031 * as expected. It overrides all radio state in firmware
1033 * The kernel, a masked-off hotkey, and WLSW can change the radio state
1034 * (TODO: verify how WLSW interacts with the returned radio state).
1036 * The only time there are shadow radio state changes, is when
1041 * Internal driver API for radio state:
1081 /* Query FW and update rfkill sw state for a given rfkill switch */
1100 * Sync the HW-blocking state of all rfkill switches,
1119 /* Call to get the WLSW state from the firmware */
1122 /* Call to query WLSW state and update all rfkill switches */
1144 "request to change radio state to %s\n",
1147 /* try to set radio state */
1193 pr_err("failed to read initial state for %s, error %d\n",
1198 /* try to keep the initial state, since we ask the
1848 * want the kthread to forget old state.
1863 * old state.
2223 int state;
2226 !hotkey_get_tablet_mode(&state)) {
2230 SW_TABLET_MODE, !!state);
2420 /* repeated key presses that didn't change state */
2458 /* Initial state for compares */
2484 /* forget old state on thaw or config change */
2998 * Sync both the hw and sw blocking state of all switches
3017 /* Sync hw blocking state first if it is hw-blocked */
3021 /* Sync hw blocking state last if it is hw-unblocked */
3037 * this can be unconditional, as we will poll state again
4257 TP_ACPI_BLUETOOTH_RESUMECTRL = 0x04, /* Bluetooth state at resume:
4264 TP_ACPI_BLTH_GET_PWR_ON_RESUME = 0x01, /* Get power-on-resume state */
4267 TP_ACPI_BLTH_SAVE_STATE = 0x05, /* Save state for S4/S5 */
4289 static int bluetooth_set_status(enum tpacpi_rfkill_state state)
4294 str_enable_disable(state == TPACPI_RFK_RADIO_ON));
4298 tpacpi_bluetooth_emulstate = (state == TPACPI_RFK_RADIO_ON);
4303 if (state == TPACPI_RFK_RADIO_ON)
4359 /* Order firmware to save current state to NVRAM */
4362 pr_notice("failed to save bluetooth state to NVRAM\n");
4365 "bluetooth state saved to NVRAM\n");
4521 TP_ACPI_WANCARD_RESUMECTRL = 0x04, /* Wan state at resume:
4544 static int wan_set_status(enum tpacpi_rfkill_state state)
4549 str_enable_disable(state == TPACPI_RFK_RADIO_ON));
4553 tpacpi_wwan_emulstate = (state == TPACPI_RFK_RADIO_ON);
4558 if (state == TPACPI_RFK_RADIO_ON)
4615 /* Order firmware to save current state to NVRAM */
4618 pr_notice("failed to save WWAN state to NVRAM\n");
4621 "WWAN state saved to NVRAM\n");
4721 static int uwb_set_status(enum tpacpi_rfkill_state state)
4726 str_enable_disable(state == TPACPI_RFK_RADIO_ON));
4730 tpacpi_uwb_emulstate = (state == TPACPI_RFK_RADIO_ON);
4735 if (state == TPACPI_RFK_RADIO_ON)
6948 * read at startup doesn't match the real hardware state... so leave
7068 * The laptop changes the state of its internal MUTE gate and, on some
7166 "trying to checkpoint mixer state to NVRAM...\n");
7741 * user can set initial state through the volume=... parameter hack.
7925 * Fan control seems to affect both fans, regardless of the state
9205 int state;
9221 static int mute_led_on_off(struct tp_led_table *t, bool state)
9232 state ? t->on_value : t->off_value))
9235 t->state = state;
9236 return state;
9244 if (t->state < 0 || t->state == on)
9245 return t->state;
9284 t->state = -ENODEV;
9315 if (t->state >= 0)
9316 mute_led_on_off(t, t->state);
9931 enum drm_privacy_screen_status state)
9938 if (!acpi_evalf(lcdshadow_set_handle, &output, NULL, "dd", (int)state))
9941 priv->hw_state = priv->sw_state = state;
10014 int res, state = -EINVAL;
10020 res = kstrtoint(cmd, 10, &state);
10025 if (state >= 2 || state < 0)
10029 res = lcdshadow_set_sw_state(lcdshadow_dev, state);
10079 static int lapsensor_get(bool *present, bool *state)
10089 *state = output & BIT(DYTC_GET_LAPMODE_BIT) ? true : false;
10093 static int palmsensor_get(bool *present, bool *state)
10105 *state = output & BIT(PALMSENSOR_ON_BIT) ? true : false;
10111 bool state;
10115 err = lapsensor_get(&has_lapsensor, &state);
10118 if (lap_state != state) {
10119 lap_state = state;
10127 bool state;
10131 err = palmsensor_get(&has_palmsensor, &state);
10134 if (palm_state != state) {
10135 palm_state = state;
10409 /* Check return condition after we've restored CQL state */
11589 "Initial state of the emulated WLSW switch");
11595 "Initial state of the emulated bluetooth switch");
11601 "Initial state of the emulated WWAN switch");
11607 "Initial state of the emulated UWB switch");