Lines Matching defs:mask

1713  * Unlike other classes, hotkey-class events have mask/unmask control on
1865 static u32 hotkey_source_mask; /* bit mask 0=ACPI,1=NVRAM */
2059 * Reads current event mask from firmware, and updates
2076 /* no mask support doesn't mean no event support... */
2080 /* sync userspace-visible mask */
2098 * Set the firmware mask when supported
2104 static int hotkey_mask_set(u32 mask)
2109 const u32 fwmask = mask & ~hotkey_source_mask;
2117 !!(mask & (1 << i)))) {
2132 pr_notice("asked for hotkey mask 0x%08x, but firmware forced it to 0x%08x\n",
2143 * Sets hotkey_user_mask and tries to set the firmware mask
2145 static int hotkey_user_mask_set(const u32 mask)
2154 (mask == 0xffff || mask == 0xffffff ||
2155 mask == 0xffffffff)) {
2157 pr_notice("setting the hotkey mask to 0x%08x is likely not the best way to go about it\n",
2158 mask);
2164 rc = hotkey_mask_set((mask | hotkey_driver_mask) & ~hotkey_source_mask);
2167 hotkey_user_mask = mask & (hotkey_acpi_mask | hotkey_source_mask);
2173 * Sets the driver hotkey mask.
2177 static int tpacpi_hotkey_driver_mask_set(const u32 mask)
2183 hotkey_driver_mask = mask;
2190 hotkey_driver_mask = mask;
2192 hotkey_source_mask |= (mask & ~hotkey_all_mask);
2639 /* sysfs hotkey mask --------------------------------------------------- */
2771 pr_err("hotkey_source_mask: failed to update the firmware event mask!\n");
3051 "restoring original HKEY status and mask\n");
3057 pr_err("failed to restore hot key mask to BIOS defaults\n");
3146 * hot key mask *unset* in mask_recommended, and also
3147 * in the initial hot key mask programmed into the
3395 /* mask not supported on 600e/x, 770e, 770x, A21e, A2xm/p,
3563 "hotkey source mask 0x%08x, polling freq %u\n",
4162 seq_printf(m, "mask:\t\t0x%08x\n", hotkey_user_mask);
4163 seq_printf(m, "commands:\tenable, disable, reset, <mask>\n");
4165 seq_printf(m, "mask:\t\tnot supported\n");
4183 u32 mask;
4192 mask = hotkey_user_mask;
4202 mask = (hotkey_all_mask | hotkey_source_mask)
4204 } else if (sscanf(cmd, "0x%x", &mask) == 1) {
4205 /* mask set */
4206 } else if (sscanf(cmd, "%x", &mask) == 1) {
4207 /* mask set */
4216 "set mask to 0x%08x\n", mask);
4217 res = hotkey_user_mask_set(mask);
11524 MODULE_PARM_DESC(debug, "Sets debug level bit-mask");