Lines Matching refs:usage

373 		struct hid_usage *usage, __s32 value)  in hidinput_apple_event()  argument
383 if (usage->code == fn_keycode) { in hidinput_apple_event()
385 input_event_with_scancode(input, usage->type, KEY_FN, in hidinput_apple_event()
386 usage->hid, value); in hidinput_apple_event()
433 trans = apple_find_translation (table, usage->code); in hidinput_apple_event()
461 input_event_with_scancode(input, usage->type, code, in hidinput_apple_event()
462 usage->hid, value); in hidinput_apple_event()
467 (test_bit(usage->code, asc->pressed_numlock) || in hidinput_apple_event()
470 usage->code); in hidinput_apple_event()
474 set_bit(usage->code, in hidinput_apple_event()
477 clear_bit(usage->code, in hidinput_apple_event()
480 input_event_with_scancode(input, usage->type, in hidinput_apple_event()
481 trans->to, usage->hid, value); in hidinput_apple_event()
490 trans = apple_find_translation(apple_iso_keyboard, usage->code); in hidinput_apple_event()
492 input_event_with_scancode(input, usage->type, in hidinput_apple_event()
493 trans->to, usage->hid, value); in hidinput_apple_event()
499 trans = apple_find_translation(swapped_option_cmd_keys, usage->code); in hidinput_apple_event()
501 input_event_with_scancode(input, usage->type, in hidinput_apple_event()
502 trans->to, usage->hid, value); in hidinput_apple_event()
508 trans = apple_find_translation(swapped_fn_leftctrl_keys, usage->code); in hidinput_apple_event()
510 input_event_with_scancode(input, usage->type, in hidinput_apple_event()
511 trans->to, usage->hid, value); in hidinput_apple_event()
520 struct hid_usage *usage, __s32 value) in apple_event() argument
525 !usage->type) in apple_event()
529 usage->code == REL_HWHEEL) { in apple_event()
530 input_event_with_scancode(field->hidinput->input, usage->type, in apple_event()
531 usage->code, usage->hid, -value); in apple_event()
537 usage, value)) in apple_event()
649 struct hid_field *field, struct hid_usage *usage, in apple_input_mapping() argument
654 if (usage->hid == (HID_UP_CUSTOM | 0x0003) || in apple_input_mapping()
655 usage->hid == (HID_UP_MSVENDOR | 0x0003) || in apple_input_mapping()
656 usage->hid == (HID_UP_HPVENDOR2 | 0x0003)) { in apple_input_mapping()
659 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_FN); in apple_input_mapping()
670 struct hid_field *field, struct hid_usage *usage, in apple_input_mapped() argument
676 if (usage->hid == HID_GD_Z) in apple_input_mapped()
677 hid_map_usage(hi, usage, bit, max, EV_REL, REL_HWHEEL); in apple_input_mapped()
678 else if (usage->code == BTN_1) in apple_input_mapped()
679 hid_map_usage(hi, usage, bit, max, EV_KEY, BTN_2); in apple_input_mapped()
680 else if (usage->code == BTN_2) in apple_input_mapped()
681 hid_map_usage(hi, usage, bit, max, EV_KEY, BTN_1); in apple_input_mapped()
713 hid = report->field[i]->usage->hid; in apple_backlight_check_support()