Lines Matching refs:ke

767 int input_scancode_to_scalar(const struct input_keymap_entry *ke,  in input_scancode_to_scalar()  argument
770 switch (ke->len) { in input_scancode_to_scalar()
772 *scancode = *((u8 *)ke->scancode); in input_scancode_to_scalar()
776 *scancode = *((u16 *)ke->scancode); in input_scancode_to_scalar()
780 *scancode = *((u32 *)ke->scancode); in input_scancode_to_scalar()
812 struct input_keymap_entry *ke) in input_default_getkeycode() argument
820 if (ke->flags & INPUT_KEYMAP_BY_INDEX) in input_default_getkeycode()
821 index = ke->index; in input_default_getkeycode()
823 error = input_scancode_to_scalar(ke, &index); in input_default_getkeycode()
831 ke->keycode = input_fetch_keycode(dev, index); in input_default_getkeycode()
832 ke->index = index; in input_default_getkeycode()
833 ke->len = sizeof(index); in input_default_getkeycode()
834 memcpy(ke->scancode, &index, sizeof(index)); in input_default_getkeycode()
840 const struct input_keymap_entry *ke, in input_default_setkeycode() argument
850 if (ke->flags & INPUT_KEYMAP_BY_INDEX) { in input_default_setkeycode()
851 index = ke->index; in input_default_setkeycode()
853 error = input_scancode_to_scalar(ke, &index); in input_default_setkeycode()
861 if (dev->keycodesize < sizeof(ke->keycode) && in input_default_setkeycode()
862 (ke->keycode >> (dev->keycodesize * 8))) in input_default_setkeycode()
869 k[index] = ke->keycode; in input_default_setkeycode()
875 k[index] = ke->keycode; in input_default_setkeycode()
881 k[index] = ke->keycode; in input_default_setkeycode()
897 __set_bit(ke->keycode, dev->keybit); in input_default_setkeycode()
909 int input_get_keycode(struct input_dev *dev, struct input_keymap_entry *ke) in input_get_keycode() argument
915 retval = dev->getkeycode(dev, ke); in input_get_keycode()
931 const struct input_keymap_entry *ke) in input_set_keycode() argument
937 if (ke->keycode > KEY_MAX) in input_set_keycode()
942 retval = dev->setkeycode(dev, ke, &old_keycode); in input_set_keycode()