Lines Matching defs:mode

201 						   * enter/leave tablet mode
1922 /* The following modes are considered tablet mode for the purpose of
1956 int mode = TP_ACPI_MULTI_MODE_INVALID;
1981 /* In mode 4, FLAT is not specified as a valid mode. However,
1991 pr_err("Unknown multi mode status type %d with value 0x%04X, please report this to %s\n",
2001 mode = TP_ACPI_MULTI_MODE_LAPTOP;
2004 mode = TP_ACPI_MULTI_MODE_FLAT;
2007 mode = TP_ACPI_MULTI_MODE_TABLET;
2011 mode = TP_ACPI_MULTI_MODE_STAND_TENT;
2013 mode = TP_ACPI_MULTI_MODE_STAND;
2016 mode = TP_ACPI_MULTI_MODE_TENT;
2020 pr_warn("Multi mode status is undetected, assuming laptop\n");
2025 if (!(mode & valid_modes)) {
2026 pr_err("Unknown/reserved multi mode value 0x%04X for type %d, please report this to %s\n",
2031 return !!(mode & TP_ACPI_MULTI_MODE_TABLET_LIKE);
2844 /* sysfs hotkey tablet mode (pollable) --------------------------------- */
2899 /* sysfs adaptive kbd mode --------------------------------------------- */
2949 return tp_features.has_adaptive_kbd ? attr->mode : 0;
2989 return attr->mode;
3115 * the laptop/tent/tablet mode to the EC. The bmc150 iio driver
3131 pr_info("Tablet mode switch found (type: %s), currently in %s mode\n",
3240 * is disabled (i.e. in "vendor" mode), and are handled
3308 KEY_RESERVED, /* Camera mode */
3597 /* Thinkpad X1 Carbon support 5 modes including Home mode, Web browser
3598 * mode, Web conference mode, Function mode and Lay-flat mode.
3599 * We support Home mode and Function mode currently.
3616 * release Fn key, previous mode be restored.
3623 int mode = 0;
3625 if (!acpi_evalf(hkey_handle, &mode, "GTRW", "dd", 0)) {
3626 pr_err("Cannot read adaptive keyboard mode\n");
3630 return mode;
3640 pr_err("Cannot set adaptive keyboard mode\n");
3647 static int adaptive_keyboard_get_next_mode(int mode)
3653 if (adaptive_keyboard_modes[i] == mode)
3890 case TP_HKEY_EV_TABLET_TABLET: /* X41t-X61t: tablet mode */
3891 case TP_HKEY_EV_TABLET_NOTEBOOK: /* X41t-X61t: normal mode */
4106 /* save previous mode of adaptive keyboard of X1 Carbon */
4110 pr_err("Cannot read adaptive keyboard mode.\n");
4132 /* restore previous mode of adapive keyboard of X1 Carbon */
4136 pr_err("Cannot set adaptive keyboard mode.\n");
4344 return tp_features.bluetooth ? attr->mode : 0;
4600 return tp_features.wan ? attr->mode : 0;
4880 vdbg_printk(TPACPI_DBG_INIT, "video is %s, mode %d\n",
4890 "restoring original video autoswitch mode\n");
4892 pr_err("error while trying to restore original video autoswitch mode\n");
5579 return cmos_handle ? attr->mode : 0;
5941 vdbg_printk(TPACPI_DBG_INIT, "LED commands are %s, mode %d\n",
6334 return attr->mode;
6366 return thermal_use_labels ? attr->mode : 0;
6388 * Direct EC access mode: sensors at registers
6421 pr_err("ThinkPad ACPI EC access misbehaving, falling back to ACPI TMPx access mode\n");
6451 vdbg_printk(TPACPI_DBG_INIT, "thermal is %s, mode %d\n",
6755 * switch the firmware to the ACPI brightness control mode.
6797 /* Models with ATI GPUs known to require ECNVRAM mode */
6833 * Lenovo Vista BIOS to ACPI brightness mode even if we are not
7132 /* We don't know what mode 1 is. */
7339 * In software mute mode, the standard codec controls take
7361 pr_warn("Failed to restore mute mode\n");
7616 pr_err("UCMS step volume mode not implemented, please contact %s\n",
7687 pr_info("Console audio control enabled, mode: %s\n",
7746 pr_notice("Console audio control in monitor mode, changes are not allowed\n");
7853 * ThinkPad EC register 0x2f (HFSP): fan control loop mode
7857 * disengaged mode) are usually done slowly by the firmware as the
7865 * 7 automatic mode engaged;
7866 * (default operation mode of the ThinkPad)
7867 * fan level is ignored in this mode.
7868 * 6 full speed mode (takes precedence over bit 7);
7911 * mode.
7953 * This mode is used for a few ThinkPads (L13 Yoga Gen2, X13 Yoga Gen2 etc.)
7976 TP_EC_FAN_FULLSPEED = 0x40, /* EC fan mode: full speed */
7977 TP_EC_FAN_AUTO = 0x80, /* EC fan mode: auto fan control */
8032 * be in auto mode (0x80).
8037 * We assume 0x07 really means auto mode while this quirk is active,
8048 pr_notice("fan_init: initial fan status is unknown, assuming it is in auto mode\n");
8146 /* Default mode is AUTO which means controlled by EC */
8286 * or FULLSPEED mode bits and just ignore them */
8355 /* Don't go out of emergency fan mode */
8502 * 0: "disengaged" mode
8503 * 1: manual mode
8504 * 2: native EC "auto" mode (recommended, hardware default)
8506 * pwm*: set speed in manual mode, ignored otherwise.
8524 int res, mode;
8532 mode = 0;
8534 mode = 2;
8536 mode = 1;
8538 return sysfs_emit(buf, "%d\n", mode);
8552 "set fan mode to %lu\n", t);
8565 /* reserved for software-controlled auto mode */
8727 return attr->mode;
9027 * EC Auto mode is set by default.
9033 /* Disengaged mode takes precedence */
9084 pr_err("level command accepted for unsupported access mode %d\n",
9100 pr_err("enable command accepted for unsupported access mode %d\n",
9115 pr_err("disable command accepted for unsupported access mode %d\n",
9135 pr_err("speed command accepted for unsupported access mode %d\n",
10054 #define DYTC_CMD_GET 2 /* To get current IC function and mode */
10182 return attr->mode;
10216 #define DYTC_CMD_SET 1 /* To enable/disable IC function mode */
10217 #define DYTC_CMD_MMC_GET 8 /* To get current MMC function and mode */
10223 #define DYTC_FC_AMT 31 /* AMT mode supported */
10226 #define DYTC_GET_MODE_BIT 12 /* Bits 12-15 - mode setting */
10229 #define DYTC_SET_MODE_BIT 16 /* Bits 16-19 - mode setting */
10232 #define DYTC_FUNCTION_STD 0 /* Function = 0, standard mode */
10233 #define DYTC_FUNCTION_CQL 1 /* Function = 1, lap mode */
10234 #define DYTC_FUNCTION_MMC 11 /* Function = 11, MMC mode */
10235 #define DYTC_FUNCTION_PSC 13 /* Function = 13, PSC mode */
10236 #define DYTC_FUNCTION_AMT 15 /* Function = 15, AMT mode */
10238 #define DYTC_MODE_AMT_ENABLE 0x1 /* Enable AMT (in balanced mode) */
10241 #define DYTC_MODE_MMC_PERFORM 2 /* High power mode aka performance */
10242 #define DYTC_MODE_MMC_LOWPOWER 3 /* Low power mode */
10243 #define DYTC_MODE_MMC_BALANCE 0xF /* Default mode aka balanced */
10244 #define DYTC_MODE_MMC_DEFAULT 0 /* Default mode from MMC_GET, aka balanced */
10246 #define DYTC_MODE_PSC_LOWPOWER 3 /* Low power mode */
10247 #define DYTC_MODE_PSC_BALANCE 5 /* Default mode aka balanced */
10248 #define DYTC_MODE_PSC_PERFORM 7 /* High power mode aka performance */
10253 #define DYTC_SET_COMMAND(function, mode, on) \
10255 (mode) << DYTC_SET_MODE_BIT | \
10286 default: /* Unknown mode */
10301 default: /* Unknown mode */
10380 * Helper function - check if we are in CQL mode and if we are
10384 * If not in CQL mode, just run the command
10391 /* Determine if we are in CQL mode. This alters the commands we do */
10441 * To get back to balanced mode we need to issue a reset command.
10442 * Note we still need to disable CQL mode before hand and re-enable
10450 /* Determine if we are in CQL mode. This alters the commands we do */
10487 /* Check if we are PSC mode, or have AMT enabled */
10489 } else { /* Unknown profile mode */
10525 /* Check DYTC is enabled and supports mode setting */
10569 "DYTC version %d: thermal mode available\n", dytc_version);
10743 return tp_features.kbd_lang ? attr->mode : 0;
10840 return has_antennatype ? attr->mode : 0;
10897 return attr->mode;
11031 /* If we're enabling AMT we need to force balanced mode */
11033 /* This will also set AMT mode enabled */
11157 umode_t mode = iibm->base_procfs_mode;
11159 if (!mode)
11160 mode = S_IRUGO;
11162 mode |= S_IWUSR;
11163 entry = proc_create_data(ibm->name, mode, proc_dir,
11611 MODULE_PARM_DESC(profile_force, "Force profile mode. -1=off, 1=MMC, 2=PSC");