Lines Matching refs:ke
99 const struct input_keymap_entry *ke) in sparse_keymap_locate() argument
104 if (ke->flags & INPUT_KEYMAP_BY_INDEX) in sparse_keymap_locate()
105 key = sparse_keymap_entry_by_index(dev, ke->index); in sparse_keymap_locate()
106 else if (input_scancode_to_scalar(ke, &scancode) == 0) in sparse_keymap_locate()
115 struct input_keymap_entry *ke) in sparse_keymap_getkeycode() argument
120 key = sparse_keymap_locate(dev, ke); in sparse_keymap_getkeycode()
122 ke->keycode = key->keycode; in sparse_keymap_getkeycode()
123 if (!(ke->flags & INPUT_KEYMAP_BY_INDEX)) in sparse_keymap_getkeycode()
124 ke->index = in sparse_keymap_getkeycode()
126 ke->len = sizeof(key->code); in sparse_keymap_getkeycode()
127 memcpy(ke->scancode, &key->code, sizeof(key->code)); in sparse_keymap_getkeycode()
136 const struct input_keymap_entry *ke, in sparse_keymap_setkeycode() argument
142 key = sparse_keymap_locate(dev, ke); in sparse_keymap_setkeycode()
145 key->keycode = ke->keycode; in sparse_keymap_setkeycode()
146 set_bit(ke->keycode, dev->keybit); in sparse_keymap_setkeycode()
272 void sparse_keymap_report_entry(struct input_dev *dev, const struct key_entry *ke, in sparse_keymap_report_entry() argument
275 switch (ke->type) { in sparse_keymap_report_entry()
277 input_event(dev, EV_MSC, MSC_SCAN, ke->code); in sparse_keymap_report_entry()
278 input_report_key(dev, ke->keycode, value); in sparse_keymap_report_entry()
281 input_report_key(dev, ke->keycode, 0); in sparse_keymap_report_entry()
287 value = ke->sw.value; in sparse_keymap_report_entry()
291 input_report_switch(dev, ke->sw.code, value); in sparse_keymap_report_entry()
313 const struct key_entry *ke = in sparse_keymap_report_event() local
317 if (ke) { in sparse_keymap_report_event()
318 sparse_keymap_report_entry(dev, ke, value, autorelease); in sparse_keymap_report_event()