Lines Matching refs:keymap
188 struct dell_bios_keymap_entry keymap[]; member
195 struct key_entry *keymap; member
430 static bool have_scancode(u32 scancode, const struct key_entry *keymap, int len) in have_scancode() argument
435 if (keymap[i].code == scancode) in have_scancode()
446 struct key_entry *keymap; in handle_dmi_entry() local
448 if (results->err || results->keymap) in handle_dmi_entry()
471 keymap = kcalloc(hotkey_num, sizeof(struct key_entry), GFP_KERNEL); in handle_dmi_entry()
472 if (!keymap) { in handle_dmi_entry()
479 &table->keymap[i]; in handle_dmi_entry()
499 keymap[pos].type = KE_IGNORE; in handle_dmi_entry()
501 keymap[pos].type = KE_KEY; in handle_dmi_entry()
502 keymap[pos].code = bios_entry->scancode; in handle_dmi_entry()
503 keymap[pos].keycode = keycode; in handle_dmi_entry()
508 results->keymap = keymap; in handle_dmi_entry()
516 struct key_entry *keymap; in dell_wmi_input_setup() local
541 keymap = kcalloc(dmi_results.keymap_size + in dell_wmi_input_setup()
547 if (!keymap) { in dell_wmi_input_setup()
548 kfree(dmi_results.keymap); in dell_wmi_input_setup()
555 keymap[pos] = dmi_results.keymap[i]; in dell_wmi_input_setup()
556 keymap[pos].code |= (0x0010 << 16); in dell_wmi_input_setup()
560 kfree(dmi_results.keymap); in dell_wmi_input_setup()
573 keymap, dmi_results.keymap_size) in dell_wmi_input_setup()
577 keymap[pos] = *entry; in dell_wmi_input_setup()
578 keymap[pos].code |= (0x0010 << 16); in dell_wmi_input_setup()
584 keymap[pos] = dell_wmi_keymap_type_0011[i]; in dell_wmi_input_setup()
585 keymap[pos].code |= (0x0011 << 16); in dell_wmi_input_setup()
594 keymap[pos] = dell_wmi_keymap_type_0000[i]; in dell_wmi_input_setup()
598 keymap[pos].type = KE_END; in dell_wmi_input_setup()
600 err = sparse_keymap_setup(priv->input_dev, keymap, NULL); in dell_wmi_input_setup()
605 kfree(keymap); in dell_wmi_input_setup()