Lines Matching refs:ke
482 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()
523 const struct input_keymap_entry *ke, in ati_remote2_setkeycode() argument
532 if (ke->flags & INPUT_KEYMAP_BY_INDEX) { in ati_remote2_setkeycode()
533 if (ke->index >= ATI_REMOTE2_MODES * in ati_remote2_setkeycode()
537 mode = ke->index / ARRAY_SIZE(ati_remote2_key_table); in ati_remote2_setkeycode()
538 offset = ke->index % ARRAY_SIZE(ati_remote2_key_table); in ati_remote2_setkeycode()
540 if (input_scancode_to_scalar(ke, &scancode)) in ati_remote2_setkeycode()
553 ar2->keycode[mode][offset] = ke->keycode; in ati_remote2_setkeycode()
554 __set_bit(ke->keycode, idev->keybit); in ati_remote2_setkeycode()