Lines Matching full:keymap

22 #include <linux/input/sparse-keymap.h>
74 * Keymap for WMI events of type 0x0000
190 struct dell_bios_keymap_entry keymap[]; member
197 struct key_entry *keymap; member
245 * Keymap for WMI events of type 0x0010
310 * Keymap for WMI events of type 0x0011
343 * Keymap for WMI events of type 0x0012
518 static bool have_scancode(u32 scancode, const struct key_entry *keymap, int len) in have_scancode() argument
523 if (keymap[i].code == scancode) in have_scancode()
534 struct key_entry *keymap; in handle_dmi_entry() local
536 if (results->err || results->keymap) in handle_dmi_entry()
559 keymap = kcalloc(hotkey_num, sizeof(struct key_entry), GFP_KERNEL); in handle_dmi_entry()
560 if (!keymap) { in handle_dmi_entry()
567 &table->keymap[i]; in handle_dmi_entry()
587 keymap[pos].type = KE_IGNORE; in handle_dmi_entry()
589 keymap[pos].type = KE_KEY; in handle_dmi_entry()
590 keymap[pos].code = bios_entry->scancode; in handle_dmi_entry()
591 keymap[pos].keycode = keycode; in handle_dmi_entry()
596 results->keymap = keymap; in handle_dmi_entry()
604 struct key_entry *keymap; in dell_wmi_input_setup() local
629 keymap = kcalloc(dmi_results.keymap_size + in dell_wmi_input_setup()
636 if (!keymap) { in dell_wmi_input_setup()
637 kfree(dmi_results.keymap); in dell_wmi_input_setup()
644 keymap[pos] = dmi_results.keymap[i]; in dell_wmi_input_setup()
645 keymap[pos].code |= (0x0010 << 16); in dell_wmi_input_setup()
649 kfree(dmi_results.keymap); in dell_wmi_input_setup()
662 keymap, dmi_results.keymap_size) in dell_wmi_input_setup()
666 keymap[pos] = *entry; in dell_wmi_input_setup()
667 keymap[pos].code |= (0x0010 << 16); in dell_wmi_input_setup()
673 keymap[pos] = dell_wmi_keymap_type_0011[i]; in dell_wmi_input_setup()
674 keymap[pos].code |= (0x0011 << 16); in dell_wmi_input_setup()
680 keymap[pos] = dell_wmi_keymap_type_0012[i]; in dell_wmi_input_setup()
681 keymap[pos].code |= (0x0012 << 16); in dell_wmi_input_setup()
690 keymap[pos] = dell_wmi_keymap_type_0000[i]; in dell_wmi_input_setup()
694 keymap[pos].type = KE_END; in dell_wmi_input_setup()
696 err = sparse_keymap_setup(priv->input_dev, keymap, NULL); in dell_wmi_input_setup()
698 * Sparse keymap library makes a copy of keymap so we don't need the in dell_wmi_input_setup()
701 kfree(keymap); in dell_wmi_input_setup()