Lines Matching refs:keymap

190 	struct dell_bios_keymap_entry keymap[];  member
197 struct key_entry *keymap; member
521 static bool have_scancode(u32 scancode, const struct key_entry *keymap, int len) in have_scancode() argument
526 if (keymap[i].code == scancode) in have_scancode()
537 struct key_entry *keymap; in handle_dmi_entry() local
539 if (results->err || results->keymap) in handle_dmi_entry()
562 keymap = kcalloc(hotkey_num, sizeof(struct key_entry), GFP_KERNEL); in handle_dmi_entry()
563 if (!keymap) { in handle_dmi_entry()
570 &table->keymap[i]; in handle_dmi_entry()
590 keymap[pos].type = KE_IGNORE; in handle_dmi_entry()
592 keymap[pos].type = KE_KEY; in handle_dmi_entry()
593 keymap[pos].code = bios_entry->scancode; in handle_dmi_entry()
594 keymap[pos].keycode = keycode; in handle_dmi_entry()
599 results->keymap = keymap; in handle_dmi_entry()
607 struct key_entry *keymap; in dell_wmi_input_setup() local
632 keymap = kcalloc(dmi_results.keymap_size + in dell_wmi_input_setup()
639 if (!keymap) { in dell_wmi_input_setup()
640 kfree(dmi_results.keymap); in dell_wmi_input_setup()
647 keymap[pos] = dmi_results.keymap[i]; in dell_wmi_input_setup()
648 keymap[pos].code |= (0x0010 << 16); in dell_wmi_input_setup()
652 kfree(dmi_results.keymap); in dell_wmi_input_setup()
665 keymap, dmi_results.keymap_size) in dell_wmi_input_setup()
669 keymap[pos] = *entry; in dell_wmi_input_setup()
670 keymap[pos].code |= (0x0010 << 16); in dell_wmi_input_setup()
676 keymap[pos] = dell_wmi_keymap_type_0011[i]; in dell_wmi_input_setup()
677 keymap[pos].code |= (0x0011 << 16); in dell_wmi_input_setup()
683 keymap[pos] = dell_wmi_keymap_type_0012[i]; in dell_wmi_input_setup()
684 keymap[pos].code |= (0x0012 << 16); in dell_wmi_input_setup()
693 keymap[pos] = dell_wmi_keymap_type_0000[i]; in dell_wmi_input_setup()
697 keymap[pos].type = KE_END; in dell_wmi_input_setup()
699 err = sparse_keymap_setup(priv->input_dev, keymap, NULL); in dell_wmi_input_setup()
704 kfree(keymap); in dell_wmi_input_setup()