Lines Matching refs:usage

213 		struct hid_usage *usage, __s32 value)
222 if (usage->code == fn_keycode) {
224 input_event(input, usage->type, KEY_FN, value);
239 trans = apple_find_translation (table, usage->code);
267 input_event(input, usage->type, code, value);
272 (test_bit(usage->code, asc->pressed_numlock) ||
275 usage->code);
279 set_bit(usage->code,
282 clear_bit(usage->code,
285 input_event(input, usage->type, trans->to,
295 trans = apple_find_translation(apple_iso_keyboard, usage->code);
297 input_event(input, usage->type, trans->to, value);
304 trans = apple_find_translation(swapped_option_cmd_keys, usage->code);
306 input_event(input, usage->type, trans->to, value);
312 trans = apple_find_translation(swapped_fn_leftctrl_keys, usage->code);
314 input_event(input, usage->type, trans->to, value);
323 struct hid_usage *usage, __s32 value)
328 !usage->type)
332 usage->code == REL_HWHEEL) {
333 input_event(field->hidinput->input, usage->type, usage->code,
340 usage, value))
400 struct hid_field *field, struct hid_usage *usage,
405 if (usage->hid == (HID_UP_CUSTOM | 0x0003) ||
406 usage->hid == (HID_UP_MSVENDOR | 0x0003) ||
407 usage->hid == (HID_UP_HPVENDOR2 | 0x0003)) {
410 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_FN);
421 struct hid_field *field, struct hid_usage *usage,
427 if (usage->hid == HID_GD_Z)
428 hid_map_usage(hi, usage, bit, max, EV_REL, REL_HWHEEL);
429 else if (usage->code == BTN_1)
430 hid_map_usage(hi, usage, bit, max, EV_KEY, BTN_2);
431 else if (usage->code == BTN_2)
432 hid_map_usage(hi, usage, bit, max, EV_KEY, BTN_1);