• Home
  • Raw
  • Download

Lines Matching refs:scancode

175 static int scancode_to_u64(const struct input_keymap_entry *ke, u64 *scancode)  in scancode_to_u64()  argument
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()
324 index, rc_map->scan[index].scancode); in ir_update_mapping()
332 rc_map->scan[index].scancode, new_keycode); in ir_update_mapping()
372 u64 scancode, bool resize) in ir_establish_scancode() argument
385 scancode &= dev->scancode_mask; in ir_establish_scancode()
389 if (rc_map->scan[i].scancode == scancode) in ir_establish_scancode()
393 if (rc_map->scan[i].scancode >= scancode) in ir_establish_scancode()
407 rc_map->scan[i].scancode = scancode; in ir_establish_scancode()
431 u64 scancode; in ir_setkeycode() local
444 retval = scancode_to_u64(ke, &scancode); in ir_setkeycode()
448 index = ir_establish_scancode(rdev, rc_map, scancode, true); in ir_setkeycode()
484 from->scan[i].scancode, false); in ir_setkeytable()
502 const u64 *scancode = key; in rc_map_cmp() local
505 if (*scancode < e->scancode) in rc_map_cmp()
507 else if (*scancode > e->scancode) in rc_map_cmp()
523 u64 scancode) in ir_lookup_by_scancode() argument
527 res = bsearch(&scancode, rc_map->scan, rc_map->len, in ir_lookup_by_scancode()
552 u64 scancode; in ir_getkeycode() local
560 retval = scancode_to_u64(ke, &scancode); in ir_getkeycode()
564 index = ir_lookup_by_scancode(rc_map, scancode); in ir_getkeycode()
572 ke->len = sizeof(entry->scancode); in ir_getkeycode()
573 memcpy(ke->scancode, &entry->scancode, sizeof(entry->scancode)); in ir_getkeycode()
605 u32 rc_g_keycode_from_table(struct rc_dev *dev, u64 scancode) in rc_g_keycode_from_table() argument
614 index = ir_lookup_by_scancode(rc_map, scancode); in rc_g_keycode_from_table()
622 dev->device_name, scancode, keycode); in rc_g_keycode_from_table()
743 .scancode = dev->last_scancode, .rc_proto = dev->last_protocol, in rc_repeat()
781 u64 scancode, u32 keycode, u8 toggle) in ir_do_keydown() argument
785 dev->last_scancode != scancode || in ir_do_keydown()
788 .scancode = scancode, .rc_proto = protocol, in ir_do_keydown()
800 if (scancode <= U32_MAX) in ir_do_keydown()
801 input_event(dev->input_dev, EV_MSC, MSC_SCAN, scancode); in ir_do_keydown()
804 dev->last_scancode = scancode; in ir_do_keydown()
813 dev->device_name, keycode, protocol, scancode); in ir_do_keydown()
849 void rc_keydown(struct rc_dev *dev, enum rc_proto protocol, u64 scancode, in rc_keydown() argument
853 u32 keycode = rc_g_keycode_from_table(dev, scancode); in rc_keydown()
856 ir_do_keydown(dev, protocol, scancode, keycode, toggle); in rc_keydown()
880 u64 scancode, u8 toggle) in rc_keydown_notimeout() argument
883 u32 keycode = rc_g_keycode_from_table(dev, scancode); in rc_keydown_notimeout()
886 ir_do_keydown(dev, protocol, scancode, keycode, toggle); in rc_keydown_notimeout()
897 bool rc_validate_scancode(enum rc_proto proto, u32 scancode) in rc_validate_scancode() argument
905 if ((((scancode >> 16) ^ ~(scancode >> 8)) & 0xff) == 0) in rc_validate_scancode()
914 if ((((scancode >> 8) ^ ~scancode) & 0xff) == 0) in rc_validate_scancode()
922 if ((scancode & 0xffff0000) != 0x800f0000) in rc_validate_scancode()
926 if ((scancode & 0xffff0000) == 0x800f0000) in rc_validate_scancode()