• Home
  • Raw
  • Download

Lines Matching +full:fn +full:- +full:keymap

6  * Most stuff taken over from hp-wmi
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 #include <linux/input/sparse-keymap.h>
38 #define DRV_NAME "msi-wmi"
40 #define MSIWMI_BIOS_GUID "551A1F84-FBDD-4125-91DB-3EA8F44F1D45"
41 #define MSIWMI_MSI_EVENT_GUID "B6F3EEF2-3D2F-49DC-9DE3-85BCE18C62F2"
42 #define MSIWMI_WIND_EVENT_GUID "5B3CC38A-40D9-7245-8AE6-1145B751BE3F"
56 WIND_KEY_TOUCHPAD = 0x08, /* Fn+F3 touchpad toggle */
57 WIND_KEY_BLUETOOTH = 0x56, /* Fn+F11 Bluetooth toggle */
58 WIND_KEY_CAMERA, /* Fn+F6 webcam toggle */
59 WIND_KEY_WLAN = 0x5f, /* Fn+F11 Wi-Fi toggle */
60 WIND_KEY_TURBO, /* Fn+F10 turbo mode toggle */
61 WIND_KEY_ECO = 0x69, /* Fn+F10 ECO mode toggle */
115 if (!obj || obj->type != ACPI_TYPE_INTEGER) { in msi_wmi_query_block()
118 "type: %d - buffer length:%d\n", obj->type, in msi_wmi_query_block()
119 obj->type == ACPI_TYPE_BUFFER ? in msi_wmi_query_block()
120 obj->buffer.length : 0); in msi_wmi_query_block()
123 return -EINVAL; in msi_wmi_query_block()
125 *ret = obj->integer.value; in msi_wmi_query_block()
136 pr_debug("Going to set block of instance: %d - value: %d\n", in msi_wmi_set_block()
152 return -EINVAL; in bl_get()
157 pr_debug("Current backlight level: 0x%X - index: %d\n", in bl_get()
164 return -EINVAL; in bl_get()
171 int bright = bd->props.brightness; in bl_set_status()
173 return -EINVAL; in bl_set_status()
199 if (obj && obj->type == ACPI_TYPE_INTEGER) { in msi_wmi_notify()
200 int eventcode = obj->integer.value; in msi_wmi_notify()
205 pr_info("Unknown key pressed - %x\n", eventcode); in msi_wmi_notify()
209 if (event_wmi->quirk_last_pressed) { in msi_wmi_notify()
213 timeframe -> Key press may result in 10-20 GPEs */ in msi_wmi_notify()
215 pr_debug("Suppressed key event 0x%X - " in msi_wmi_notify()
217 key->code, ktime_to_us(diff)); in msi_wmi_notify()
223 if (key->type == KE_KEY && in msi_wmi_notify()
226 (key->code != MSI_KEY_BRIGHTNESSUP && in msi_wmi_notify()
227 key->code != MSI_KEY_BRIGHTNESSDOWN))) { in msi_wmi_notify()
228 pr_debug("Send key: 0x%X - Input layer keycode: %d\n", in msi_wmi_notify()
229 key->code, key->keycode); in msi_wmi_notify()
247 props.max_brightness = ARRAY_SIZE(backlight_map) - 1; in msi_wmi_backlight_setup()
260 backlight->props.brightness = err; in msi_wmi_backlight_setup()
271 return -ENOMEM; in msi_wmi_input_setup()
273 msi_wmi_input_dev->name = "MSI WMI hotkeys"; in msi_wmi_input_setup()
274 msi_wmi_input_dev->phys = "wmi/input0"; in msi_wmi_input_setup()
275 msi_wmi_input_dev->id.bustype = BUS_HOST; in msi_wmi_input_setup()
333 pr_err("This machine doesn't have neither MSI-hotkeys nor backlight through WMI\n"); in msi_wmi_init()
334 return -ENODEV; in msi_wmi_init()
341 wmi_remove_notify_handler(event_wmi->guid); in msi_wmi_init()
351 wmi_remove_notify_handler(event_wmi->guid); in msi_wmi_exit()