Lines Matching full:keymap
14 struct rc_map_table *keymap, in legacy_dvb_usb_get_keymap_index() argument
28 if (keymap[index].scancode == scancode) in legacy_dvb_usb_get_keymap_index()
34 if (keymap[index].keycode == KEY_RESERVED || in legacy_dvb_usb_get_keymap_index()
35 keymap[index].keycode == KEY_UNKNOWN) { in legacy_dvb_usb_get_keymap_index()
49 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in legacy_dvb_usb_getkeycode() local
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()
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()
72 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in legacy_dvb_usb_setkeycode() local
76 index = legacy_dvb_usb_get_keymap_index(ke, keymap, keymap_size); in legacy_dvb_usb_setkeycode()
87 *old_keycode = keymap[index].keycode; in legacy_dvb_usb_setkeycode()
88 keymap->keycode = ke->keycode; in legacy_dvb_usb_setkeycode()
94 if (keymap[index].keycode == *old_keycode) { in legacy_dvb_usb_setkeycode()
366 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in dvb_usb_nec_rc_key_to_event() local
380 if (rc5_custom(&keymap[i]) == keybuf[1] && in dvb_usb_nec_rc_key_to_event()
381 rc5_data(&keymap[i]) == keybuf[3]) { in dvb_usb_nec_rc_key_to_event()
382 *event = keymap[i].keycode; in dvb_usb_nec_rc_key_to_event()