/drivers/input/ |
D | sparse-keymap.c | 100 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 …]
|
D | evdev.c | 599 struct input_keymap_entry ke = { in evdev_handle_get_keycode() local 607 if (copy_from_user(ke.scancode, p, sizeof(unsigned int))) in evdev_handle_get_keycode() 610 error = input_get_keycode(dev, &ke); in evdev_handle_get_keycode() 614 if (put_user(ke.keycode, ip + 1)) in evdev_handle_get_keycode() 622 struct input_keymap_entry ke; in evdev_handle_get_keycode_v2() local 625 if (copy_from_user(&ke, p, sizeof(ke))) in evdev_handle_get_keycode_v2() 628 error = input_get_keycode(dev, &ke); in evdev_handle_get_keycode_v2() 632 if (copy_to_user(p, &ke, sizeof(ke))) in evdev_handle_get_keycode_v2() 640 struct input_keymap_entry ke = { in evdev_handle_set_keycode() local 646 if (copy_from_user(ke.scancode, p, sizeof(unsigned int))) in evdev_handle_set_keycode() [all …]
|
D | input.c | 670 int input_scancode_to_scalar(const struct input_keymap_entry *ke, in input_scancode_to_scalar() argument 673 switch (ke->len) { in input_scancode_to_scalar() 675 *scancode = *((u8 *)ke->scancode); in input_scancode_to_scalar() 679 *scancode = *((u16 *)ke->scancode); in input_scancode_to_scalar() 683 *scancode = *((u32 *)ke->scancode); in input_scancode_to_scalar() 715 struct input_keymap_entry *ke) in input_default_getkeycode() argument 723 if (ke->flags & INPUT_KEYMAP_BY_INDEX) in input_default_getkeycode() 724 index = ke->index; in input_default_getkeycode() 726 error = input_scancode_to_scalar(ke, &index); in input_default_getkeycode() 734 ke->keycode = input_fetch_keycode(dev, index); in input_default_getkeycode() [all …]
|
/drivers/media/dvb/dvb-usb/ |
D | dvb-usb-remote.c | 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() [all …]
|
/drivers/input/misc/ |
D | ati_remote2.c | 487 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 …]
|
D | dm355evm_keys.c | 109 const struct key_entry *ke; in dm355evm_keys_irq() local 158 ke = sparse_keymap_entry_from_scancode(keys->input, event); in dm355evm_keys_irq() 159 keycode = ke ? ke->keycode : KEY_UNKNOWN; in dm355evm_keys_irq()
|
/drivers/media/rc/ |
D | rc-main.c | 322 const struct input_keymap_entry *ke, in ir_setkeycode() argument 334 if (ke->flags & INPUT_KEYMAP_BY_INDEX) { in ir_setkeycode() 335 index = ke->index; in ir_setkeycode() 341 retval = input_scancode_to_scalar(ke, &scancode); in ir_setkeycode() 352 *old_keycode = ir_update_mapping(rdev, rc_map, index, ke->keycode); in ir_setkeycode() 440 struct input_keymap_entry *ke) in ir_getkeycode() argument 452 if (ke->flags & INPUT_KEYMAP_BY_INDEX) { in ir_getkeycode() 453 index = ke->index; in ir_getkeycode() 455 retval = input_scancode_to_scalar(ke, &scancode); in ir_getkeycode() 465 ke->index = index; in ir_getkeycode() [all …]
|
/drivers/hid/ |
D | hid-input.c | 127 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/ |
D | keyboard.c | 172 struct input_keymap_entry ke; member 180 d->error = input_get_keycode(handle->dev, &d->ke); in getkeycode_helper() 188 .ke = { in getkeycode() 196 memcpy(d.ke.scancode, &scancode, sizeof(scancode)); in getkeycode() 200 return d.error ?: d.ke.keycode; in getkeycode() 207 d->error = input_set_keycode(handle->dev, &d->ke); in setkeycode_helper() 215 .ke = { in setkeycode() 223 memcpy(d.ke.scancode, &scancode, sizeof(scancode)); in setkeycode()
|