Lines Matching defs:ke
113 static struct hid_usage *hidinput_locate_usage(struct hid_device *hid, const struct input_keymap_entry *ke,
119 if (ke->flags & INPUT_KEYMAP_BY_INDEX) {
120 usage = hidinput_find_key(hid, match_index, ke->index, index);
121 } else if (input_scancode_to_scalar(ke, &scancode) == 0) {
130 static int hidinput_getkeycode(struct input_dev *dev, struct input_keymap_entry *ke)
136 usage = hidinput_locate_usage(hid, ke, &index);
138 ke->keycode = usage->type == EV_KEY ? usage->code : KEY_RESERVED;
139 ke->index = index;
141 ke->len = sizeof(scancode);
142 memcpy(ke->scancode, &scancode, sizeof(scancode));
149 static int hidinput_setkeycode(struct input_dev *dev, const struct input_keymap_entry *ke, unsigned int *old_keycode)
154 usage = hidinput_locate_usage(hid, ke, NULL);
157 usage->code = ke->keycode;