Lines Matching defs:code
389 __u8 type, __u16 code, unsigned int hid, __s32 value)
392 (!test_bit(code, input->key)) == value)
394 input_event(input, type, code, value);
403 u16 code = usage->code;
413 trans = apple_find_translation(swapped_fn_leftctrl_keys, code);
416 code = trans->to;
421 trans = apple_find_translation(apple_iso_keyboard, code);
424 code = trans->to;
429 trans = apple_find_translation(swapped_option_cmd_left_keys, code);
431 trans = apple_find_translation(swapped_option_cmd_keys, code);
434 code = trans->to;
438 trans = apple_find_translation(swapped_ctrl_cmd_keys, code);
441 code = trans->to;
444 if (code == KEY_FN)
484 trans = apple_find_translation(table, code);
491 code = trans->from;
493 code = trans->to;
513 code = trans->to;
518 (test_bit(code, asc->pressed_numlock) ||
520 trans = apple_find_translation(powerbook_numlock_keys, code);
524 set_bit(code, asc->pressed_numlock);
526 clear_bit(code, asc->pressed_numlock);
528 code = trans->to;
533 if (usage->code != code) {
534 input_event_with_scancode(input, usage->type, code, usage->hid, value);
552 usage->code == REL_HWHEEL) {
554 usage->code, usage->hid, -value);
698 else if (usage->code == BTN_1)
700 else if (usage->code == BTN_2)