Lines Matching refs:code
390 __u8 type, __u16 code, unsigned int hid, __s32 value)
393 (!test_bit(code, input->key)) == value)
395 input_event(input, type, code, value);
404 u16 code = usage->code;
414 trans = apple_find_translation(swapped_fn_leftctrl_keys, code);
417 code = trans->to;
422 trans = apple_find_translation(apple_iso_keyboard, code);
425 code = trans->to;
430 trans = apple_find_translation(swapped_option_cmd_left_keys, code);
432 trans = apple_find_translation(swapped_option_cmd_keys, code);
435 code = trans->to;
439 trans = apple_find_translation(swapped_ctrl_cmd_keys, code);
442 code = trans->to;
445 if (code == KEY_FN)
485 trans = apple_find_translation(table, code);
492 code = trans->from;
494 code = trans->to;
514 code = trans->to;
519 (test_bit(code, asc->pressed_numlock) ||
521 trans = apple_find_translation(powerbook_numlock_keys, code);
525 set_bit(code, asc->pressed_numlock);
527 clear_bit(code, asc->pressed_numlock);
529 code = trans->to;
534 if (usage->code != code) {
535 input_event_with_scancode(input, usage->type, code, usage->hid, value);
553 usage->code == REL_HWHEEL) {
555 usage->code, usage->hid, -value);
699 else if (usage->code == BTN_1)
701 else if (usage->code == BTN_2)