/linux/drivers/input/ |
H A D | sparse-keymap.c | 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() 121 ke->index = in sparse_keymap_getkeycode() 123 ke->len = sizeof(key->code); in sparse_keymap_getkeycode() 142 key->keycode = ke->keycode; in sparse_keymap_setkeycode() 143 set_bit(ke->keycode, dev->keybit); in sparse_keymap_setkeycode() 237 switch (ke->type) { in sparse_keymap_report_entry() 249 value = ke->sw.value; in sparse_keymap_report_entry() 276 const struct key_entry *ke = in sparse_keymap_report_event() local [all …]
|
H A D | evdev.c | 802 struct input_keymap_entry ke = { in evdev_handle_get_keycode() local 817 if (put_user(ke.keycode, ip + 1)) in evdev_handle_get_keycode() 825 struct input_keymap_entry ke; in evdev_handle_get_keycode_v2() local 828 if (copy_from_user(&ke, p, sizeof(ke))) in evdev_handle_get_keycode_v2() 835 if (copy_to_user(p, &ke, sizeof(ke))) in evdev_handle_get_keycode_v2() 843 struct input_keymap_entry ke = { in evdev_handle_set_keycode() local 852 if (get_user(ke.keycode, ip + 1)) in evdev_handle_set_keycode() 855 return input_set_keycode(dev, &ke); in evdev_handle_set_keycode() 860 struct input_keymap_entry ke; in evdev_handle_set_keycode_v2() local 862 if (copy_from_user(&ke, p, sizeof(ke))) in evdev_handle_set_keycode_v2() [all …]
|
H A D | input.c | 758 switch (ke->len) { in input_scancode_to_scalar() 760 *scancode = *((u8 *)ke->scancode); in input_scancode_to_scalar() 809 index = ke->index; in input_default_getkeycode() 820 ke->index = index; in input_default_getkeycode() 821 ke->len = sizeof(index); in input_default_getkeycode() 839 index = ke->index; in input_default_setkeycode() 857 k[index] = ke->keycode; in input_default_setkeycode() 863 k[index] = ke->keycode; in input_default_setkeycode() 869 k[index] = ke->keycode; in input_default_setkeycode() 903 retval = dev->getkeycode(dev, ke); in input_get_keycode() [all …]
|
/linux/drivers/gpu/drm/i915/gt/ |
H A D | sysfs_engines.c | 430 struct kobj_engine *ke; in kobj_engine() local 432 ke = kzalloc(sizeof(*ke), GFP_KERNEL); in kobj_engine() 433 if (!ke) in kobj_engine() 437 ke->engine = engine; in kobj_engine() 440 kobject_put(&ke->base); in kobj_engine() 445 return &ke->base; in kobj_engine() 458 struct kobj_engine *ke; in add_defaults() local 460 ke = kzalloc(sizeof(*ke), GFP_KERNEL); in add_defaults() 461 if (!ke) in add_defaults() 465 ke->engine = parent->engine; in add_defaults() [all …]
|
/linux/drivers/media/usb/dvb-usb/ |
H A D | dvb-usb-remote.c | 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() 46 struct input_keymap_entry *ke) in legacy_dvb_usb_getkeycode() argument 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() 61 memcpy(&ke->scancode, &keymap[index].scancode, ke->len); in legacy_dvb_usb_getkeycode() 62 ke->index = index; in legacy_dvb_usb_getkeycode() 88 keymap->keycode = ke->keycode; in legacy_dvb_usb_setkeycode() [all …]
|
/linux/drivers/platform/loongarch/ |
H A D | loongson-laptop.c | 199 struct key_entry ke; in loongson_hotkey_resume() local 231 ke.type = KE_SW; in loongson_hotkey_resume() 232 ke.sw.value = (u8)status; in loongson_hotkey_resume() 233 ke.sw.code = SW_LID; in loongson_hotkey_resume() 234 sparse_keymap_report_entry(generic_inputdev, &ke, 1, true); in loongson_hotkey_resume() 473 struct key_entry *ke = NULL; in event_notify() local 477 ke = sparse_keymap_entry_from_scancode(generic_inputdev, scan_code); in event_notify() 478 if (ke) { in event_notify() 485 ke->sw.value = !!(status & (1 << ke->sw.code)); in event_notify() 487 sparse_keymap_report_entry(generic_inputdev, ke, 1, true); in event_notify()
|
/linux/drivers/input/misc/ |
H A D | ati_remote2.c | 463 struct input_keymap_entry *ke) in ati_remote2_getkeycode() argument 471 if (ke->flags & INPUT_KEYMAP_BY_INDEX) { in ati_remote2_getkeycode() 472 index = ke->index; in ati_remote2_getkeycode() 495 ke->keycode = ar2->keycode[mode][offset]; in ati_remote2_getkeycode() 496 ke->len = sizeof(scancode); in ati_remote2_getkeycode() 498 ke->index = index; in ati_remote2_getkeycode() 504 const struct input_keymap_entry *ke, in ati_remote2_setkeycode() argument 513 if (ke->flags & INPUT_KEYMAP_BY_INDEX) { in ati_remote2_setkeycode() 514 if (ke->index >= ATI_REMOTE2_MODES * in ati_remote2_setkeycode() 534 ar2->keycode[mode][offset] = ke->keycode; in ati_remote2_setkeycode() [all …]
|
/linux/drivers/media/rc/ |
H A D | rc-main.c | 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() 438 index = ke->index; in ir_setkeycode() 545 struct input_keymap_entry *ke) in ir_getkeycode() argument 558 index = ke->index; in ir_getkeycode() 570 ke->index = index; in ir_getkeycode() 571 ke->keycode = entry->keycode; in ir_getkeycode() 580 ke->index = index; in ir_getkeycode() [all …]
|
/linux/include/linux/ |
H A D | input.h | 162 const struct input_keymap_entry *ke, 165 struct input_keymap_entry *ke); 504 int input_scancode_to_scalar(const struct input_keymap_entry *ke, 507 int input_get_keycode(struct input_dev *dev, struct input_keymap_entry *ke); 509 const struct input_keymap_entry *ke);
|
/linux/drivers/platform/x86/intel/ |
H A D | vbtn.c | 156 const struct key_entry *ke, *ke_rel; in notify_handler() local 163 if ((ke = sparse_keymap_entry_from_scancode(priv->buttons_dev, event))) { in notify_handler() 170 } else if ((ke = sparse_keymap_entry_from_scancode(priv->switches_dev, event))) { in notify_handler() 196 if (ke->type == KE_KEY) in notify_handler()
|
H A D | hid.c | 509 struct key_entry *ke; in notify_handler() local 551 ke = sparse_keymap_entry_from_scancode(priv->array, event); in notify_handler() 552 if (!ke) { in notify_handler() 557 if (ke->type == KE_IGNORE) in notify_handler()
|
/linux/drivers/hid/ |
H A D | hid-input.c | 161 const struct input_keymap_entry *ke, in hidinput_locate_usage() argument 167 if (ke->flags & INPUT_KEYMAP_BY_INDEX) in hidinput_locate_usage() 178 struct input_keymap_entry *ke) in hidinput_getkeycode() argument 184 usage = hidinput_locate_usage(hid, ke, &index); in hidinput_getkeycode() 186 ke->keycode = usage->type == EV_KEY ? in hidinput_getkeycode() 188 ke->index = index; in hidinput_getkeycode() 190 ke->len = sizeof(scancode); in hidinput_getkeycode() 191 memcpy(ke->scancode, &scancode, sizeof(scancode)); in hidinput_getkeycode() 199 const struct input_keymap_entry *ke, in hidinput_setkeycode() argument 205 usage = hidinput_locate_usage(hid, ke, NULL); in hidinput_setkeycode() [all …]
|
/linux/include/linux/input/ |
H A D | sparse-keymap.h | 53 void sparse_keymap_report_entry(struct input_dev *dev, const struct key_entry *ke,
|
/linux/arch/s390/include/asm/ |
H A D | nmi.h | 58 u64 ke : 1; /* 18 storage-key error uncorrected */ member
|
/linux/drivers/tty/vt/ |
H A D | keyboard.c | 186 struct input_keymap_entry ke; member 194 d->error = input_get_keycode(handle->dev, &d->ke); in getkeycode_helper() 202 .ke = { in getkeycode() 210 memcpy(d.ke.scancode, &scancode, sizeof(scancode)); in getkeycode() 214 return d.error ?: d.ke.keycode; in getkeycode() 221 d->error = input_set_keycode(handle->dev, &d->ke); in setkeycode_helper() 229 .ke = { in setkeycode() 237 memcpy(d.ke.scancode, &scancode, sizeof(scancode)); in setkeycode()
|
/linux/arch/parisc/include/asm/ |
H A D | pdcpat.h | 239 unsigned int ke; /* bit 0: memory inside good memory? */ member
|
/linux/arch/s390/kernel/ |
H A D | nmi.c | 401 if (mci.ke) in s390_do_machine_check()
|
/linux/Documentation/driver-api/media/drivers/ |
H A D | contributors.rst | 96 - Kenneth Aafløy <ke-aa@frisurf.no>
|
/linux/tools/power/pm-graph/ |
H A D | sleepgraph.py | 3777 kb, ke = e['begin'], e['end'] 3778 if ke - kb < 0.000001 or tlb > kb or tle <= kb: 3781 data.newActionGlobal(e['name'], kb, ke, pid, color) 3789 kb, ke = e['begin'], e['end'] 3790 if ke - kb < 0.000001 or tlb > kb or tle <= kb: 3793 ke, e['cdata'], e['rdata'])
|