Lines Matching refs:usage

200 		struct hid_usage *usage, __s32 value)  in hidinput_apple_event()  argument
209 if (usage->code == fn_keycode) { in hidinput_apple_event()
211 input_event_with_scancode(input, usage->type, KEY_FN, in hidinput_apple_event()
212 usage->hid, value); in hidinput_apple_event()
225 trans = apple_find_translation (table, usage->code); in hidinput_apple_event()
253 input_event_with_scancode(input, usage->type, code, in hidinput_apple_event()
254 usage->hid, value); in hidinput_apple_event()
259 (test_bit(usage->code, asc->pressed_numlock) || in hidinput_apple_event()
262 usage->code); in hidinput_apple_event()
266 set_bit(usage->code, in hidinput_apple_event()
269 clear_bit(usage->code, in hidinput_apple_event()
272 input_event_with_scancode(input, usage->type, in hidinput_apple_event()
273 trans->to, usage->hid, value); in hidinput_apple_event()
282 trans = apple_find_translation(apple_iso_keyboard, usage->code); in hidinput_apple_event()
284 input_event_with_scancode(input, usage->type, in hidinput_apple_event()
285 trans->to, usage->hid, value); in hidinput_apple_event()
291 trans = apple_find_translation(swapped_option_cmd_keys, usage->code); in hidinput_apple_event()
293 input_event_with_scancode(input, usage->type, in hidinput_apple_event()
294 trans->to, usage->hid, value); in hidinput_apple_event()
300 trans = apple_find_translation(swapped_fn_leftctrl_keys, usage->code); in hidinput_apple_event()
302 input_event_with_scancode(input, usage->type, in hidinput_apple_event()
303 trans->to, usage->hid, value); in hidinput_apple_event()
312 struct hid_usage *usage, __s32 value) in apple_event() argument
317 !usage->type) in apple_event()
321 usage->code == REL_HWHEEL) { in apple_event()
322 input_event_with_scancode(field->hidinput->input, usage->type, in apple_event()
323 usage->code, usage->hid, -value); in apple_event()
329 usage, value)) in apple_event()
386 struct hid_field *field, struct hid_usage *usage, in apple_input_mapping() argument
391 if (usage->hid == (HID_UP_CUSTOM | 0x0003) || in apple_input_mapping()
392 usage->hid == (HID_UP_MSVENDOR | 0x0003) || in apple_input_mapping()
393 usage->hid == (HID_UP_HPVENDOR2 | 0x0003)) { in apple_input_mapping()
396 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_FN); in apple_input_mapping()
407 struct hid_field *field, struct hid_usage *usage, in apple_input_mapped() argument
413 if (usage->hid == HID_GD_Z) in apple_input_mapped()
414 hid_map_usage(hi, usage, bit, max, EV_REL, REL_HWHEEL); in apple_input_mapped()
415 else if (usage->code == BTN_1) in apple_input_mapped()
416 hid_map_usage(hi, usage, bit, max, EV_KEY, BTN_2); in apple_input_mapped()
417 else if (usage->code == BTN_2) in apple_input_mapped()
418 hid_map_usage(hi, usage, bit, max, EV_KEY, BTN_1); in apple_input_mapped()