Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/input/
Dsparse-keymap.c96 const struct input_keymap_entry *ke) in sparse_keymap_locate() argument
101 if (ke->flags & INPUT_KEYMAP_BY_INDEX) in sparse_keymap_locate()
102 key = sparse_keymap_entry_by_index(dev, ke->index); in sparse_keymap_locate()
103 else if (input_scancode_to_scalar(ke, &scancode) == 0) in sparse_keymap_locate()
112 struct input_keymap_entry *ke) in sparse_keymap_getkeycode() argument
117 key = sparse_keymap_locate(dev, ke); in sparse_keymap_getkeycode()
119 ke->keycode = key->keycode; in sparse_keymap_getkeycode()
120 if (!(ke->flags & INPUT_KEYMAP_BY_INDEX)) in sparse_keymap_getkeycode()
121 ke->index = in sparse_keymap_getkeycode()
123 ke->len = sizeof(key->code); in sparse_keymap_getkeycode()
[all …]
Devdev.c804 struct input_keymap_entry ke = { in evdev_handle_get_keycode() local
812 if (copy_from_user(ke.scancode, p, sizeof(unsigned int))) in evdev_handle_get_keycode()
815 error = input_get_keycode(dev, &ke); in evdev_handle_get_keycode()
819 if (put_user(ke.keycode, ip + 1)) in evdev_handle_get_keycode()
827 struct input_keymap_entry ke; in evdev_handle_get_keycode_v2() local
830 if (copy_from_user(&ke, p, sizeof(ke))) in evdev_handle_get_keycode_v2()
833 error = input_get_keycode(dev, &ke); in evdev_handle_get_keycode_v2()
837 if (copy_to_user(p, &ke, sizeof(ke))) in evdev_handle_get_keycode_v2()
845 struct input_keymap_entry ke = { in evdev_handle_set_keycode() local
851 if (copy_from_user(ke.scancode, p, sizeof(unsigned int))) in evdev_handle_set_keycode()
[all …]
Dinput.c777 int input_scancode_to_scalar(const struct input_keymap_entry *ke, in input_scancode_to_scalar() argument
780 switch (ke->len) { in input_scancode_to_scalar()
782 *scancode = *((u8 *)ke->scancode); in input_scancode_to_scalar()
786 *scancode = *((u16 *)ke->scancode); in input_scancode_to_scalar()
790 *scancode = *((u32 *)ke->scancode); in input_scancode_to_scalar()
822 struct input_keymap_entry *ke) in input_default_getkeycode() argument
830 if (ke->flags & INPUT_KEYMAP_BY_INDEX) in input_default_getkeycode()
831 index = ke->index; in input_default_getkeycode()
833 error = input_scancode_to_scalar(ke, &index); in input_default_getkeycode()
841 ke->keycode = input_fetch_keycode(dev, index); in input_default_getkeycode()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dsysfs_engines.c431 struct kobj_engine *ke; in kobj_engine() local
433 ke = kzalloc(sizeof(*ke), GFP_KERNEL); in kobj_engine()
434 if (!ke) in kobj_engine()
437 kobject_init(&ke->base, &kobj_engine_type); in kobj_engine()
438 ke->engine = engine; in kobj_engine()
440 if (kobject_add(&ke->base, dir, "%s", engine->name)) { in kobj_engine()
441 kobject_put(&ke->base); in kobj_engine()
446 return &ke->base; in kobj_engine()
459 struct kobj_engine *ke; in add_defaults() local
461 ke = kzalloc(sizeof(*ke), GFP_KERNEL); in add_defaults()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb/
Ddvb-usb-remote.c13 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()
[all …]
/kernel/linux/linux-5.10/drivers/input/misc/
Dati_remote2.c482 struct input_keymap_entry *ke) in ati_remote2_getkeycode() argument
490 if (ke->flags & INPUT_KEYMAP_BY_INDEX) { in ati_remote2_getkeycode()
491 index = ke->index; in ati_remote2_getkeycode()
496 mode = ke->index / ARRAY_SIZE(ati_remote2_key_table); in ati_remote2_getkeycode()
497 offset = ke->index % ARRAY_SIZE(ati_remote2_key_table); in ati_remote2_getkeycode()
500 if (input_scancode_to_scalar(ke, &scancode)) in ati_remote2_getkeycode()
514 ke->keycode = ar2->keycode[mode][offset]; in ati_remote2_getkeycode()
515 ke->len = sizeof(scancode); in ati_remote2_getkeycode()
516 memcpy(&ke->scancode, &scancode, sizeof(scancode)); in ati_remote2_getkeycode()
517 ke->index = index; in ati_remote2_getkeycode()
[all …]
Ddm355evm_keys.c103 const struct key_entry *ke; in dm355evm_keys_irq() local
152 ke = sparse_keymap_entry_from_scancode(keys->input, event); in dm355evm_keys_irq()
153 keycode = ke ? ke->keycode : KEY_UNKNOWN; in dm355evm_keys_irq()
/kernel/linux/linux-5.10/drivers/media/rc/
Drc-main.c175 static int scancode_to_u64(const struct input_keymap_entry *ke, u64 *scancode) in scancode_to_u64() argument
177 switch (ke->len) { in scancode_to_u64()
179 *scancode = *((u8 *)ke->scancode); in scancode_to_u64()
183 *scancode = *((u16 *)ke->scancode); in scancode_to_u64()
187 *scancode = *((u32 *)ke->scancode); in scancode_to_u64()
191 *scancode = *((u64 *)ke->scancode); in scancode_to_u64()
425 const struct input_keymap_entry *ke, in ir_setkeycode() argument
437 if (ke->flags & INPUT_KEYMAP_BY_INDEX) { in ir_setkeycode()
438 index = ke->index; in ir_setkeycode()
444 retval = scancode_to_u64(ke, &scancode); in ir_setkeycode()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dinput.h156 const struct input_keymap_entry *ke,
159 struct input_keymap_entry *ke);
493 int input_scancode_to_scalar(const struct input_keymap_entry *ke,
496 int input_get_keycode(struct input_dev *dev, struct input_keymap_entry *ke);
498 const struct input_keymap_entry *ke);
/kernel/linux/linux-5.10/drivers/platform/x86/
Dintel-vbtn.c137 const struct key_entry *ke, *ke_rel; in notify_handler() local
141 ke = sparse_keymap_entry_from_scancode(priv->input_dev, event); in notify_handler()
142 if (ke) { in notify_handler()
150 if (ke->type == KE_SW) in notify_handler()
/kernel/linux/linux-5.10/drivers/hid/
Dhid-input.c115 const struct input_keymap_entry *ke, in hidinput_locate_usage() argument
121 if (ke->flags & INPUT_KEYMAP_BY_INDEX) in hidinput_locate_usage()
122 usage = hidinput_find_key(hid, match_index, ke->index, index); in hidinput_locate_usage()
123 else if (input_scancode_to_scalar(ke, &scancode) == 0) in hidinput_locate_usage()
132 struct input_keymap_entry *ke) in hidinput_getkeycode() argument
138 usage = hidinput_locate_usage(hid, ke, &index); in hidinput_getkeycode()
140 ke->keycode = usage->type == EV_KEY ? in hidinput_getkeycode()
142 ke->index = index; in hidinput_getkeycode()
144 ke->len = sizeof(scancode); in hidinput_getkeycode()
145 memcpy(ke->scancode, &scancode, sizeof(scancode)); in hidinput_getkeycode()
[all …]
/kernel/linux/linux-5.10/include/linux/input/
Dsparse-keymap.h53 void sparse_keymap_report_entry(struct input_dev *dev, const struct key_entry *ke,
/kernel/linux/linux-5.10/arch/s390/include/asm/
Dnmi.h55 u64 ke : 1; /* 18 storage-key error uncorrected */ member
/kernel/linux/linux-5.10/drivers/tty/vt/
Dkeyboard.c172 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()
/kernel/linux/linux-5.10/arch/parisc/include/asm/
Dpdcpat.h238 unsigned int ke; /* bit 0: memory inside good memory? */ member
/kernel/linux/linux-5.10/arch/s390/kernel/
Dnmi.c434 if (mci.ke) in s390_do_machine_check()
/kernel/linux/linux-5.10/Documentation/driver-api/media/drivers/
Dcontributors.rst96 - Kenneth Aafløy <ke-aa@frisurf.no>
/kernel/linux/linux-5.10/tools/power/pm-graph/
Dsleepgraph.py3526 kb, ke = e['begin'], e['end']
3527 if ke - kb < 0.000001 or tlb > kb or tle <= kb:
3530 data.newActionGlobal(e['name'], kb, ke, pid, color)
3538 kb, ke = e['begin'], e['end']
3539 if ke - kb < 0.000001 or tlb > kb or tle <= kb:
3542 ke, e['cdata'], e['rdata'])