Home
last modified time | relevance | path

Searched refs:ke (Results 1 – 9 of 9) sorted by relevance

/drivers/input/
Dsparse-keymap.c100 const struct input_keymap_entry *ke) in sparse_keymap_locate() argument
105 if (ke->flags & INPUT_KEYMAP_BY_INDEX) in sparse_keymap_locate()
106 key = sparse_keymap_entry_by_index(dev, ke->index); in sparse_keymap_locate()
107 else if (input_scancode_to_scalar(ke, &scancode) == 0) in sparse_keymap_locate()
116 struct input_keymap_entry *ke) in sparse_keymap_getkeycode() argument
121 key = sparse_keymap_locate(dev, ke); in sparse_keymap_getkeycode()
123 ke->keycode = key->keycode; in sparse_keymap_getkeycode()
124 if (!(ke->flags & INPUT_KEYMAP_BY_INDEX)) in sparse_keymap_getkeycode()
125 ke->index = in sparse_keymap_getkeycode()
127 ke->len = sizeof(key->code); in sparse_keymap_getkeycode()
[all …]
Dinput.c734 int input_scancode_to_scalar(const struct input_keymap_entry *ke, in input_scancode_to_scalar() argument
737 switch (ke->len) { in input_scancode_to_scalar()
739 *scancode = *((u8 *)ke->scancode); in input_scancode_to_scalar()
743 *scancode = *((u16 *)ke->scancode); in input_scancode_to_scalar()
747 *scancode = *((u32 *)ke->scancode); in input_scancode_to_scalar()
779 struct input_keymap_entry *ke) in input_default_getkeycode() argument
787 if (ke->flags & INPUT_KEYMAP_BY_INDEX) in input_default_getkeycode()
788 index = ke->index; in input_default_getkeycode()
790 error = input_scancode_to_scalar(ke, &index); in input_default_getkeycode()
798 ke->keycode = input_fetch_keycode(dev, index); in input_default_getkeycode()
[all …]
Devdev.c832 struct input_keymap_entry ke = { in evdev_handle_get_keycode() local
840 if (copy_from_user(ke.scancode, p, sizeof(unsigned int))) in evdev_handle_get_keycode()
843 error = input_get_keycode(dev, &ke); in evdev_handle_get_keycode()
847 if (put_user(ke.keycode, ip + 1)) in evdev_handle_get_keycode()
855 struct input_keymap_entry ke; in evdev_handle_get_keycode_v2() local
858 if (copy_from_user(&ke, p, sizeof(ke))) in evdev_handle_get_keycode_v2()
861 error = input_get_keycode(dev, &ke); in evdev_handle_get_keycode_v2()
865 if (copy_to_user(p, &ke, sizeof(ke))) in evdev_handle_get_keycode_v2()
873 struct input_keymap_entry ke = { in evdev_handle_set_keycode() local
879 if (copy_from_user(ke.scancode, p, sizeof(unsigned int))) in evdev_handle_set_keycode()
[all …]
/drivers/media/usb/dvb-usb/
Ddvb-usb-remote.c12 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()
[all …]
/drivers/input/misc/
Dati_remote2.c487 struct input_keymap_entry *ke) in ati_remote2_getkeycode() argument
495 if (ke->flags & INPUT_KEYMAP_BY_INDEX) { in ati_remote2_getkeycode()
496 index = ke->index; in ati_remote2_getkeycode()
501 mode = ke->index / ARRAY_SIZE(ati_remote2_key_table); in ati_remote2_getkeycode()
502 offset = ke->index % ARRAY_SIZE(ati_remote2_key_table); in ati_remote2_getkeycode()
505 if (input_scancode_to_scalar(ke, &scancode)) in ati_remote2_getkeycode()
519 ke->keycode = ar2->keycode[mode][offset]; in ati_remote2_getkeycode()
520 ke->len = sizeof(scancode); in ati_remote2_getkeycode()
521 memcpy(&ke->scancode, &scancode, sizeof(scancode)); in ati_remote2_getkeycode()
522 ke->index = index; in ati_remote2_getkeycode()
[all …]
Ddm355evm_keys.c108 const struct key_entry *ke; in dm355evm_keys_irq() local
157 ke = sparse_keymap_entry_from_scancode(keys->input, event); in dm355evm_keys_irq()
158 keycode = ke ? ke->keycode : KEY_UNKNOWN; in dm355evm_keys_irq()
/drivers/media/rc/
Drc-main.c336 const struct input_keymap_entry *ke, in ir_setkeycode() argument
348 if (ke->flags & INPUT_KEYMAP_BY_INDEX) { in ir_setkeycode()
349 index = ke->index; in ir_setkeycode()
355 retval = input_scancode_to_scalar(ke, &scancode); in ir_setkeycode()
366 *old_keycode = ir_update_mapping(rdev, rc_map, index, ke->keycode); in ir_setkeycode()
454 struct input_keymap_entry *ke) in ir_getkeycode() argument
466 if (ke->flags & INPUT_KEYMAP_BY_INDEX) { in ir_getkeycode()
467 index = ke->index; in ir_getkeycode()
469 retval = input_scancode_to_scalar(ke, &scancode); in ir_getkeycode()
479 ke->index = index; in ir_getkeycode()
[all …]
/drivers/hid/
Dhid-input.c127 const struct input_keymap_entry *ke, in hidinput_locate_usage() argument
133 if (ke->flags & INPUT_KEYMAP_BY_INDEX) in hidinput_locate_usage()
134 usage = hidinput_find_key(hid, match_index, ke->index, index); in hidinput_locate_usage()
135 else if (input_scancode_to_scalar(ke, &scancode) == 0) in hidinput_locate_usage()
144 struct input_keymap_entry *ke) in hidinput_getkeycode() argument
150 usage = hidinput_locate_usage(hid, ke, &index); in hidinput_getkeycode()
152 ke->keycode = usage->type == EV_KEY ? in hidinput_getkeycode()
154 ke->index = index; in hidinput_getkeycode()
156 ke->len = sizeof(scancode); in hidinput_getkeycode()
157 memcpy(ke->scancode, &scancode, sizeof(scancode)); in hidinput_getkeycode()
[all …]
/drivers/tty/vt/
Dkeyboard.c164 struct input_keymap_entry ke; member
172 d->error = input_get_keycode(handle->dev, &d->ke); in getkeycode_helper()
180 .ke = { in getkeycode()
188 memcpy(d.ke.scancode, &scancode, sizeof(scancode)); in getkeycode()
192 return d.error ?: d.ke.keycode; in getkeycode()
199 d->error = input_set_keycode(handle->dev, &d->ke); in setkeycode_helper()
207 .ke = { in setkeycode()
215 memcpy(d.ke.scancode, &scancode, sizeof(scancode)); in setkeycode()