Lines Matching defs:mode

184 						   * enter/leave tablet mode
2048 /* The following modes are considered tablet mode for the purpose of
2082 int mode = TP_ACPI_MULTI_MODE_INVALID;
2107 /* In mode 4, FLAT is not specified as a valid mode. However,
2117 pr_err("Unknown multi mode status type %d with value 0x%04X, please report this to %s\n",
2127 mode = TP_ACPI_MULTI_MODE_LAPTOP;
2130 mode = TP_ACPI_MULTI_MODE_FLAT;
2133 mode = TP_ACPI_MULTI_MODE_TABLET;
2137 mode = TP_ACPI_MULTI_MODE_STAND_TENT;
2139 mode = TP_ACPI_MULTI_MODE_STAND;
2142 mode = TP_ACPI_MULTI_MODE_TENT;
2146 pr_warn("Multi mode status is undetected, assuming laptop\n");
2151 if (!(mode & valid_modes)) {
2152 pr_err("Unknown/reserved multi mode value 0x%04X for type %d, please report this to %s\n",
2157 return !!(mode & TP_ACPI_MULTI_MODE_TABLET_LIKE);
2967 /* sysfs hotkey tablet mode (pollable) --------------------------------- */
3022 /* sysfs adaptive kbd mode --------------------------------------------- */
3213 * the laptop/tent/tablet mode to the EC. The bmc150 iio driver
3229 pr_info("Tablet mode switch found (type: %s), currently in %s mode\n",
3343 * is disabled (i.e. in "vendor" mode), and are handled
3411 KEY_RESERVED, /* Camera mode */
3738 /* Thinkpad X1 Carbon support 5 modes including Home mode, Web browser
3739 * mode, Web conference mode, Function mode and Lay-flat mode.
3740 * We support Home mode and Function mode currently.
3757 * release Fn key, previous mode be restored.
3764 int mode = 0;
3766 if (!acpi_evalf(hkey_handle, &mode, "GTRW", "dd", 0)) {
3767 pr_err("Cannot read adaptive keyboard mode\n");
3771 return mode;
3781 pr_err("Cannot set adaptive keyboard mode\n");
3788 static int adaptive_keyboard_get_next_mode(int mode)
3794 if (adaptive_keyboard_modes[i] == mode)
3999 case TP_HKEY_EV_TABLET_TABLET: /* X41t-X61t: tablet mode */
4000 case TP_HKEY_EV_TABLET_NOTEBOOK: /* X41t-X61t: normal mode */
4214 /* save previous mode of adaptive keyboard of X1 Carbon */
4218 pr_err("Cannot read adaptive keyboard mode.\n");
4238 /* restore previous mode of adapive keyboard of X1 Carbon */
4242 pr_err("Cannot set adaptive keyboard mode.\n");
4997 vdbg_printk(TPACPI_DBG_INIT, "video is %s, mode %d\n",
5007 "restoring original video autoswitch mode\n");
5009 pr_err("error while trying to restore original video autoswitch mode\n");
6052 vdbg_printk(TPACPI_DBG_INIT, "LED commands are %s, mode %d\n",
6459 * Direct EC access mode: sensors at registers
6492 pr_err("ThinkPad ACPI EC access misbehaving, falling back to ACPI TMPx access mode\n");
6520 vdbg_printk(TPACPI_DBG_INIT, "thermal is %s, mode %d\n",
6838 * switch the firmware to the ACPI brightness control mode.
6903 /* Models with ATI GPUs known to require ECNVRAM mode */
6939 * Lenovo Vista BIOS to ACPI brightness mode even if we are not
7238 /* We don't know what mode 1 is. */
7445 * In software mute mode, the standard codec controls take
7467 pr_warn("Failed to restore mute mode\n");
7722 pr_err("UCMS step volume mode not implemented, please contact %s\n",
7793 pr_info("Console audio control enabled, mode: %s\n",
7853 pr_notice("Console audio control in monitor mode, changes are not allowed\n");
7960 * ThinkPad EC register 0x2f (HFSP): fan control loop mode
7964 * disengaged mode) are usually done slowly by the firmware as the
7972 * 7 automatic mode engaged;
7973 * (default operation mode of the ThinkPad)
7974 * fan level is ignored in this mode.
7975 * 6 full speed mode (takes precedence over bit 7);
8018 * mode.
8067 TP_EC_FAN_FULLSPEED = 0x40, /* EC fan mode: full speed */
8068 TP_EC_FAN_AUTO = 0x80, /* EC fan mode: auto fan control */
8120 * be in auto mode (0x80).
8125 * We assume 0x07 really means auto mode while this quirk is active,
8136 pr_notice("fan_init: initial fan status is unknown, assuming it is in auto mode\n");
8345 * or FULLSPEED mode bits and just ignore them */
8414 /* Don't go out of emergency fan mode */
8561 * 0: "disengaged" mode
8562 * 1: manual mode
8563 * 2: native EC "auto" mode (recommended, hardware default)
8565 * pwm*: set speed in manual mode, ignored otherwise.
8583 int res, mode;
8591 mode = 0;
8593 mode = 2;
8595 mode = 1;
8597 return snprintf(buf, PAGE_SIZE, "%d\n", mode);
8611 "set fan mode to %lu\n", t);
8624 /* reserved for software-controlled auto mode */
9046 /* Disengaged mode takes precedence */
9097 pr_err("level command accepted for unsupported access mode %d\n",
9113 pr_err("enable command accepted for unsupported access mode %d\n",
9128 pr_err("disable command accepted for unsupported access mode %d\n",
9148 pr_err("speed command accepted for unsupported access mode %d\n",
9856 #define DYTC_CMD_GET 2 /* To get current IC function and mode */
10120 umode_t mode = iibm->base_procfs_mode;
10122 if (!mode)
10123 mode = S_IRUGO;
10125 mode |= S_IWUSR;
10126 entry = proc_create_data(ibm->name, mode, proc_dir,