Lines Matching refs:ke
12 legacy_dvb_usb_get_keymap_index(const struct input_keymap_entry *ke, in legacy_dvb_usb_get_keymap_index() argument
19 if (ke->flags & INPUT_KEYMAP_BY_INDEX) { in legacy_dvb_usb_get_keymap_index()
20 index = ke->index; in legacy_dvb_usb_get_keymap_index()
22 if (input_scancode_to_scalar(ke, &scancode)) in legacy_dvb_usb_get_keymap_index()
45 struct input_keymap_entry *ke) in legacy_dvb_usb_getkeycode() argument
52 index = legacy_dvb_usb_get_keymap_index(ke, keymap, keymap_size); in legacy_dvb_usb_getkeycode()
56 ke->keycode = keymap[index].keycode; in legacy_dvb_usb_getkeycode()
57 if (ke->keycode == KEY_UNKNOWN) in legacy_dvb_usb_getkeycode()
58 ke->keycode = KEY_RESERVED; in legacy_dvb_usb_getkeycode()
59 ke->len = sizeof(keymap[index].scancode); in legacy_dvb_usb_getkeycode()
60 memcpy(&ke->scancode, &keymap[index].scancode, ke->len); in legacy_dvb_usb_getkeycode()
61 ke->index = index; in legacy_dvb_usb_getkeycode()
67 const struct input_keymap_entry *ke, in legacy_dvb_usb_setkeycode() argument
75 index = legacy_dvb_usb_get_keymap_index(ke, keymap, keymap_size); in legacy_dvb_usb_setkeycode()
87 keymap->keycode = ke->keycode; in legacy_dvb_usb_setkeycode()
88 __set_bit(ke->keycode, dev->keybit); in legacy_dvb_usb_setkeycode()