Lines Matching refs:usage

179 		struct hid_usage *usage, __s32 value)  in hidinput_apple_event()  argument
186 if (usage->code == KEY_FN) { in hidinput_apple_event()
188 input_event(input, usage->type, usage->code, value); in hidinput_apple_event()
201 trans = apple_find_translation (table, usage->code); in hidinput_apple_event()
229 input_event(input, usage->type, code, value); in hidinput_apple_event()
234 (test_bit(usage->code, asc->pressed_numlock) || in hidinput_apple_event()
237 usage->code); in hidinput_apple_event()
241 set_bit(usage->code, in hidinput_apple_event()
244 clear_bit(usage->code, in hidinput_apple_event()
247 input_event(input, usage->type, trans->to, in hidinput_apple_event()
257 trans = apple_find_translation(apple_iso_keyboard, usage->code); in hidinput_apple_event()
259 input_event(input, usage->type, trans->to, value); in hidinput_apple_event()
266 trans = apple_find_translation(swapped_option_cmd_keys, usage->code); in hidinput_apple_event()
268 input_event(input, usage->type, trans->to, value); in hidinput_apple_event()
277 struct hid_usage *usage, __s32 value) in apple_event() argument
282 !usage->type) in apple_event()
286 usage->code == REL_HWHEEL) { in apple_event()
287 input_event(field->hidinput->input, usage->type, usage->code, in apple_event()
294 usage, value)) in apple_event()
339 struct hid_field *field, struct hid_usage *usage, in apple_input_mapping() argument
342 if (usage->hid == (HID_UP_CUSTOM | 0x0003) || in apple_input_mapping()
343 usage->hid == (HID_UP_MSVENDOR | 0x0003)) { in apple_input_mapping()
346 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_FN); in apple_input_mapping()
356 struct hid_field *field, struct hid_usage *usage, in apple_input_mapped() argument
362 if (usage->hid == HID_GD_Z) in apple_input_mapped()
363 hid_map_usage(hi, usage, bit, max, EV_REL, REL_HWHEEL); in apple_input_mapped()
364 else if (usage->code == BTN_1) in apple_input_mapped()
365 hid_map_usage(hi, usage, bit, max, EV_KEY, BTN_2); in apple_input_mapped()
366 else if (usage->code == BTN_2) in apple_input_mapped()
367 hid_map_usage(hi, usage, bit, max, EV_KEY, BTN_1); in apple_input_mapped()