Lines Matching refs:ke
96 const struct input_keymap_entry *ke) in sparse_keymap_locate() argument
101 if (ke->flags & INPUT_KEYMAP_BY_INDEX) in sparse_keymap_locate()
102 key = sparse_keymap_entry_by_index(dev, ke->index); in sparse_keymap_locate()
103 else if (input_scancode_to_scalar(ke, &scancode) == 0) in sparse_keymap_locate()
112 struct input_keymap_entry *ke) in sparse_keymap_getkeycode() argument
117 key = sparse_keymap_locate(dev, ke); in sparse_keymap_getkeycode()
119 ke->keycode = key->keycode; in sparse_keymap_getkeycode()
120 if (!(ke->flags & INPUT_KEYMAP_BY_INDEX)) in sparse_keymap_getkeycode()
121 ke->index = in sparse_keymap_getkeycode()
123 ke->len = sizeof(key->code); in sparse_keymap_getkeycode()
124 memcpy(ke->scancode, &key->code, sizeof(key->code)); in sparse_keymap_getkeycode()
133 const struct input_keymap_entry *ke, in sparse_keymap_setkeycode() argument
139 key = sparse_keymap_locate(dev, ke); in sparse_keymap_setkeycode()
142 key->keycode = ke->keycode; in sparse_keymap_setkeycode()
143 set_bit(ke->keycode, dev->keybit); in sparse_keymap_setkeycode()
234 void sparse_keymap_report_entry(struct input_dev *dev, const struct key_entry *ke, in sparse_keymap_report_entry() argument
237 switch (ke->type) { in sparse_keymap_report_entry()
239 input_event(dev, EV_MSC, MSC_SCAN, ke->code); in sparse_keymap_report_entry()
240 input_report_key(dev, ke->keycode, value); in sparse_keymap_report_entry()
243 input_report_key(dev, ke->keycode, 0); in sparse_keymap_report_entry()
249 value = ke->sw.value; in sparse_keymap_report_entry()
253 input_report_switch(dev, ke->sw.code, value); in sparse_keymap_report_entry()
276 const struct key_entry *ke = in sparse_keymap_report_event() local
280 if (ke) { in sparse_keymap_report_event()
281 sparse_keymap_report_entry(dev, ke, value, autorelease); in sparse_keymap_report_event()