Lines Matching defs:mask
1837 * Unlike other classes, hotkey-class events have mask/unmask control on
1989 static u32 hotkey_source_mask; /* bit mask 0=ACPI,1=NVRAM */
2185 * Reads current event mask from firmware, and updates
2202 /* no mask support doesn't mean no event support... */
2206 /* sync userspace-visible mask */
2224 * Set the firmware mask when supported
2232 static int hotkey_mask_set(u32 mask)
2237 const u32 fwmask = mask & ~hotkey_source_mask;
2243 !!(mask & (1 << i)))) {
2258 pr_notice("asked for hotkey mask 0x%08x, but firmware forced it to 0x%08x\n",
2269 * Sets hotkey_user_mask and tries to set the firmware mask
2273 static int hotkey_user_mask_set(const u32 mask)
2280 (mask == 0xffff || mask == 0xffffff ||
2281 mask == 0xffffffff)) {
2283 pr_notice("setting the hotkey mask to 0x%08x is likely not the best way to go about it\n",
2284 mask);
2290 rc = hotkey_mask_set((mask | hotkey_driver_mask) & ~hotkey_source_mask);
2293 hotkey_user_mask = mask & (hotkey_acpi_mask | hotkey_source_mask);
2299 * Sets the driver hotkey mask.
2303 static int tpacpi_hotkey_driver_mask_set(const u32 mask)
2309 hotkey_driver_mask = mask;
2316 hotkey_driver_mask = mask;
2318 hotkey_source_mask |= (mask & ~hotkey_all_mask);
2762 /* sysfs hotkey mask --------------------------------------------------- */
2894 pr_err("hotkey_source_mask: failed to update the firmware event mask!\n");
3149 "restoring original HKEY status and mask\n");
3155 pr_err("failed to restore hot key mask to BIOS defaults\n");
3249 * hot key mask *unset* in mask_recommended, and also
3250 * in the initial hot key mask programmed into the
3511 /* mask not supported on 600e/x, 770e, 770x, A21e, A2xm/p,
3697 "hotkey source mask 0x%08x, polling freq %u\n",
4268 seq_printf(m, "mask:\t\t0x%08x\n", hotkey_user_mask);
4269 seq_printf(m, "commands:\tenable, disable, reset, <mask>\n");
4271 seq_printf(m, "mask:\t\tnot supported\n");
4289 u32 mask;
4298 mask = hotkey_user_mask;
4308 mask = (hotkey_all_mask | hotkey_source_mask)
4310 } else if (sscanf(cmd, "0x%x", &mask) == 1) {
4311 /* mask set */
4312 } else if (sscanf(cmd, "%x", &mask) == 1) {
4313 /* mask set */
4322 "set mask to 0x%08x\n", mask);
4323 res = hotkey_user_mask_set(mask);
10477 MODULE_PARM_DESC(debug, "Sets debug level bit-mask");