• Home
  • Raw
  • Download

Lines Matching refs:usage

191 		struct hid_usage *usage, __s32 value)  in hidinput_apple_event()  argument
200 if (usage->code == fn_keycode) { in hidinput_apple_event()
202 input_event(input, usage->type, KEY_FN, value); in hidinput_apple_event()
215 trans = apple_find_translation (table, usage->code); in hidinput_apple_event()
243 input_event(input, usage->type, code, value); in hidinput_apple_event()
248 (test_bit(usage->code, asc->pressed_numlock) || in hidinput_apple_event()
251 usage->code); in hidinput_apple_event()
255 set_bit(usage->code, in hidinput_apple_event()
258 clear_bit(usage->code, in hidinput_apple_event()
261 input_event(input, usage->type, trans->to, in hidinput_apple_event()
271 trans = apple_find_translation(apple_iso_keyboard, usage->code); in hidinput_apple_event()
273 input_event(input, usage->type, trans->to, value); in hidinput_apple_event()
280 trans = apple_find_translation(swapped_option_cmd_keys, usage->code); in hidinput_apple_event()
282 input_event(input, usage->type, trans->to, value); in hidinput_apple_event()
288 trans = apple_find_translation(swapped_fn_leftctrl_keys, usage->code); in hidinput_apple_event()
290 input_event(input, usage->type, trans->to, value); in hidinput_apple_event()
299 struct hid_usage *usage, __s32 value) in apple_event() argument
304 !usage->type) in apple_event()
308 usage->code == REL_HWHEEL) { in apple_event()
309 input_event(field->hidinput->input, usage->type, usage->code, in apple_event()
316 usage, value)) in apple_event()
373 struct hid_field *field, struct hid_usage *usage, in apple_input_mapping() argument
378 if (usage->hid == (HID_UP_CUSTOM | 0x0003) || in apple_input_mapping()
379 usage->hid == (HID_UP_MSVENDOR | 0x0003) || in apple_input_mapping()
380 usage->hid == (HID_UP_HPVENDOR2 | 0x0003)) { in apple_input_mapping()
383 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_FN); in apple_input_mapping()
394 struct hid_field *field, struct hid_usage *usage, in apple_input_mapped() argument
400 if (usage->hid == HID_GD_Z) in apple_input_mapped()
401 hid_map_usage(hi, usage, bit, max, EV_REL, REL_HWHEEL); in apple_input_mapped()
402 else if (usage->code == BTN_1) in apple_input_mapped()
403 hid_map_usage(hi, usage, bit, max, EV_KEY, BTN_2); in apple_input_mapped()
404 else if (usage->code == BTN_2) in apple_input_mapped()
405 hid_map_usage(hi, usage, bit, max, EV_KEY, BTN_1); in apple_input_mapped()