Lines Matching refs:usage
35 struct hid_field *field, struct hid_usage *usage, in a4_input_mapping() argument
41 usage->hid == A4_WHEEL_ORIENTATION) { in a4_input_mapping()
57 struct hid_field *field, struct hid_usage *usage, in a4_input_mapped() argument
62 if (usage->type == EV_REL && usage->code == REL_WHEEL_HI_RES) { in a4_input_mapped()
67 if ((a4->quirks & A4_2WHEEL_MOUSE_HACK_7) && usage->hid == 0x00090007) in a4_input_mapped()
74 struct hid_usage *usage, __s32 value) in a4_event() argument
85 if (usage->type == EV_REL && usage->code == REL_WHEEL_HI_RES) { in a4_event()
90 if (usage->hid == A4_WHEEL_ORIENTATION) { in a4_event()
99 if ((a4->quirks & A4_2WHEEL_MOUSE_HACK_7) && usage->hid == 0x00090007) { in a4_event()
104 if (usage->code == REL_WHEEL_HI_RES && a4->hw_wheel) { in a4_event()
105 input_event(input, usage->type, REL_HWHEEL, value); in a4_event()
106 input_event(input, usage->type, REL_HWHEEL_HI_RES, value * 120); in a4_event()