Lines Matching defs:usage
26 #define ez_map_rel(c) hid_map_usage(hi, usage, bit, max, EV_REL, (c))
27 #define ez_map_key(c) hid_map_usage(hi, usage, bit, max, EV_KEY, (c))
30 struct hid_field *field, struct hid_usage *usage,
33 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER)
36 switch (usage->hid & HID_USAGE) {
41 * totally broken way. We map this usage temporarily
52 struct hid_usage *usage, __s32 value)
55 !usage->type)
59 if (usage->type == EV_REL && usage->code == REL_HWHEEL) {
61 input_event(input, usage->type, REL_WHEEL, -value);