Lines Matching refs:ke
175 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()
455 *old_keycode = ir_update_mapping(rdev, rc_map, index, ke->keycode); in ir_setkeycode()
545 struct input_keymap_entry *ke) in ir_getkeycode() argument
557 if (ke->flags & INPUT_KEYMAP_BY_INDEX) { in ir_getkeycode()
558 index = ke->index; in ir_getkeycode()
560 retval = scancode_to_u64(ke, &scancode); in ir_getkeycode()
570 ke->index = index; in ir_getkeycode()
571 ke->keycode = entry->keycode; in ir_getkeycode()
572 ke->len = sizeof(entry->scancode); in ir_getkeycode()
573 memcpy(ke->scancode, &entry->scancode, sizeof(entry->scancode)); in ir_getkeycode()
574 } else if (!(ke->flags & INPUT_KEYMAP_BY_INDEX)) { in ir_getkeycode()
580 ke->index = index; in ir_getkeycode()
581 ke->keycode = KEY_RESERVED; in ir_getkeycode()