Lines Matching refs:ke
13 legacy_dvb_usb_get_keymap_index(const struct input_keymap_entry *ke, in legacy_dvb_usb_get_keymap_index() argument
20 if (ke->flags & INPUT_KEYMAP_BY_INDEX) { in legacy_dvb_usb_get_keymap_index()
21 index = ke->index; in legacy_dvb_usb_get_keymap_index()
23 if (input_scancode_to_scalar(ke, &scancode)) in legacy_dvb_usb_get_keymap_index()
46 struct input_keymap_entry *ke) in legacy_dvb_usb_getkeycode() argument
53 index = legacy_dvb_usb_get_keymap_index(ke, keymap, keymap_size); in legacy_dvb_usb_getkeycode()
57 ke->keycode = keymap[index].keycode; in legacy_dvb_usb_getkeycode()
58 if (ke->keycode == KEY_UNKNOWN) in legacy_dvb_usb_getkeycode()
59 ke->keycode = KEY_RESERVED; in legacy_dvb_usb_getkeycode()
60 ke->len = sizeof(keymap[index].scancode); in legacy_dvb_usb_getkeycode()
61 memcpy(&ke->scancode, &keymap[index].scancode, ke->len); in legacy_dvb_usb_getkeycode()
62 ke->index = index; in legacy_dvb_usb_getkeycode()
68 const struct input_keymap_entry *ke, in legacy_dvb_usb_setkeycode() argument
76 index = legacy_dvb_usb_get_keymap_index(ke, keymap, keymap_size); in legacy_dvb_usb_setkeycode()
88 keymap->keycode = ke->keycode; in legacy_dvb_usb_setkeycode()
89 __set_bit(ke->keycode, dev->keybit); in legacy_dvb_usb_setkeycode()