Lines Matching refs:ke
100 const struct input_keymap_entry *ke)
105 if (ke->flags & INPUT_KEYMAP_BY_INDEX)
106 key = sparse_keymap_entry_by_index(dev, ke->index);
107 else if (input_scancode_to_scalar(ke, &scancode) == 0)
116 struct input_keymap_entry *ke)
121 key = sparse_keymap_locate(dev, ke);
123 ke->keycode = key->keycode;
124 if (!(ke->flags & INPUT_KEYMAP_BY_INDEX))
125 ke->index =
127 ke->len = sizeof(key->code);
128 memcpy(ke->scancode, &key->code, sizeof(key->code));
137 const struct input_keymap_entry *ke,
143 key = sparse_keymap_locate(dev, ke);
146 key->keycode = ke->keycode;
147 set_bit(ke->keycode, dev->keybit);
264 * @ke: key entry describing event
273 void sparse_keymap_report_entry(struct input_dev *dev, const struct key_entry *ke,
276 switch (ke->type) {
278 input_event(dev, EV_MSC, MSC_SCAN, ke->code);
279 input_report_key(dev, ke->keycode, value);
282 input_report_key(dev, ke->keycode, 0);
288 value = ke->sw.value;
292 input_report_switch(dev, ke->sw.code, value);
314 const struct key_entry *ke =
318 if (ke) {
319 sparse_keymap_report_entry(dev, ke, value, autorelease);