Lines Matching refs:usage
22 #define ez_map_rel(c) hid_map_usage(hi, usage, bit, max, EV_REL, (c))
23 #define ez_map_key(c) hid_map_usage(hi, usage, bit, max, EV_KEY, (c))
26 struct hid_field *field, struct hid_usage *usage,
29 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER)
32 switch (usage->hid & HID_USAGE) {
37 * totally broken way. We map this usage temporarily
48 struct hid_usage *usage, __s32 value)
51 !usage->type)
55 if (usage->type == EV_REL && usage->code == REL_HWHEEL) {
57 input_event(input, usage->type, REL_WHEEL, -value);