Lines Matching full:keymap

22 #include <linux/input/sparse-keymap.h>
74 * Keymap for WMI events of type 0x0000
196 struct dell_bios_keymap_entry keymap[]; member
203 struct key_entry *keymap; member
251 * Keymap for WMI events of type 0x0010
328 * Keymap for WMI events of type 0x0011
361 * Keymap for WMI events of type 0x0012
536 static bool have_scancode(u32 scancode, const struct key_entry *keymap, int len) in have_scancode() argument
541 if (keymap[i].code == scancode) in have_scancode()
552 struct key_entry *keymap; in handle_dmi_entry() local
554 if (results->err || results->keymap) in handle_dmi_entry()
577 keymap = kcalloc(hotkey_num, sizeof(struct key_entry), GFP_KERNEL); in handle_dmi_entry()
578 if (!keymap) { in handle_dmi_entry()
585 &table->keymap[i]; in handle_dmi_entry()
605 keymap[pos].type = KE_IGNORE; in handle_dmi_entry()
607 keymap[pos].type = KE_KEY; in handle_dmi_entry()
608 keymap[pos].code = bios_entry->scancode; in handle_dmi_entry()
609 keymap[pos].keycode = keycode; in handle_dmi_entry()
614 results->keymap = keymap; in handle_dmi_entry()
622 struct key_entry *keymap; in dell_wmi_input_setup() local
647 keymap = kcalloc(dmi_results.keymap_size + in dell_wmi_input_setup()
654 if (!keymap) { in dell_wmi_input_setup()
655 kfree(dmi_results.keymap); in dell_wmi_input_setup()
662 keymap[pos] = dmi_results.keymap[i]; in dell_wmi_input_setup()
663 keymap[pos].code |= (0x0010 << 16); in dell_wmi_input_setup()
667 kfree(dmi_results.keymap); in dell_wmi_input_setup()
680 keymap, dmi_results.keymap_size) in dell_wmi_input_setup()
684 keymap[pos] = *entry; in dell_wmi_input_setup()
685 keymap[pos].code |= (0x0010 << 16); in dell_wmi_input_setup()
691 keymap[pos] = dell_wmi_keymap_type_0011[i]; in dell_wmi_input_setup()
692 keymap[pos].code |= (0x0011 << 16); in dell_wmi_input_setup()
698 keymap[pos] = dell_wmi_keymap_type_0012[i]; in dell_wmi_input_setup()
699 keymap[pos].code |= (0x0012 << 16); in dell_wmi_input_setup()
708 keymap[pos] = dell_wmi_keymap_type_0000[i]; in dell_wmi_input_setup()
712 keymap[pos].type = KE_END; in dell_wmi_input_setup()
714 err = sparse_keymap_setup(priv->input_dev, keymap, NULL); in dell_wmi_input_setup()
716 * Sparse keymap library makes a copy of keymap so we don't need the in dell_wmi_input_setup()
719 kfree(keymap); in dell_wmi_input_setup()