Lines Matching refs:code

410 		__u8 type, __u16 code, unsigned int hid, __s32 value)  in input_event_with_scancode()  argument
413 (!test_bit(code, input->key)) == value) in input_event_with_scancode()
415 input_event(input, type, code, value); in input_event_with_scancode()
424 u16 code = usage->code; in hidinput_apple_event() local
434 trans = apple_find_translation(swapped_fn_leftctrl_keys, code); in hidinput_apple_event()
437 code = trans->to; in hidinput_apple_event()
442 trans = apple_find_translation(apple_iso_keyboard, code); in hidinput_apple_event()
445 code = trans->to; in hidinput_apple_event()
450 trans = apple_find_translation(swapped_option_cmd_left_keys, code); in hidinput_apple_event()
452 trans = apple_find_translation(swapped_option_cmd_keys, code); in hidinput_apple_event()
455 code = trans->to; in hidinput_apple_event()
459 trans = apple_find_translation(swapped_ctrl_cmd_keys, code); in hidinput_apple_event()
462 code = trans->to; in hidinput_apple_event()
465 if (code == KEY_FN) in hidinput_apple_event()
506 trans = apple_find_translation(table, code); in hidinput_apple_event()
513 code = trans->from; in hidinput_apple_event()
515 code = trans->to; in hidinput_apple_event()
535 code = trans->to; in hidinput_apple_event()
540 (test_bit(code, asc->pressed_numlock) || in hidinput_apple_event()
542 trans = apple_find_translation(powerbook_numlock_keys, code); in hidinput_apple_event()
546 set_bit(code, asc->pressed_numlock); in hidinput_apple_event()
548 clear_bit(code, asc->pressed_numlock); in hidinput_apple_event()
550 code = trans->to; in hidinput_apple_event()
555 if (usage->code != code) { in hidinput_apple_event()
556 input_event_with_scancode(input, usage->type, code, usage->hid, value); in hidinput_apple_event()
574 usage->code == REL_HWHEEL) { in apple_event()
576 usage->code, usage->hid, -value); in apple_event()
720 else if (usage->code == BTN_1) in apple_input_mapped()
722 else if (usage->code == BTN_2) in apple_input_mapped()