Lines Matching +defs:code +defs:key
30 u8 code;
41 { 0x87, KEY_F13 }, /* touchpad enable/disable key */
46 { 0x96, KEY_F14 }, /* G key? */
50 static struct tps_key_entry *tps_get_key_by_scancode(unsigned int code)
52 struct tps_key_entry *key;
54 for (key = topstar_keymap; key->code; key++)
55 if (code == key->code)
56 return key;
61 static struct tps_key_entry *tps_get_key_by_keycode(unsigned int code)
63 struct tps_key_entry *key;
65 for (key = topstar_keymap; key->code; key++)
66 if (code == key->keycode)
67 return key;
74 struct tps_key_entry *key;
79 /* 0x83 and 0x84 key events comes duplicated... */
90 * 'G key' generate two event codes, convert to only
91 * one event/key code for now (3G switch?)
96 key = tps_get_key_by_scancode(event);
97 if (key) {
98 input_report_key(hkey->inputdev, key->keycode, 1);
100 input_report_key(hkey->inputdev, key->keycode, 0);
133 struct tps_key_entry *key = tps_get_key_by_scancode(scancode);
135 if (!key)
138 *keycode = key->keycode;
145 struct tps_key_entry *key;
148 key = tps_get_key_by_scancode(scancode);
150 if (!key)
153 old_keycode = key->keycode;
154 key->keycode = keycode;
163 struct tps_key_entry *key;
175 for (key = topstar_keymap; key->code; key++) {
177 set_bit(key->keycode, hkey->inputdev->keybit);