Lines Matching refs:usage
56 #define map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, EV_KEY, (c))
89 struct hid_usage *usage, unsigned long **bit, int *max) in lenovo_input_mapping_tpkbd() argument
91 if (usage->hid == (HID_UP_BUTTON | 0x0010)) { in lenovo_input_mapping_tpkbd()
102 struct hid_usage *usage, unsigned long **bit, int *max) in lenovo_input_mapping_cptkbd() argument
105 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_MSVENDOR || in lenovo_input_mapping_cptkbd()
106 (usage->hid & HID_USAGE_PAGE) == HID_UP_LNVENDOR) { in lenovo_input_mapping_cptkbd()
107 switch (usage->hid & HID_USAGE) { in lenovo_input_mapping_cptkbd()
143 if (usage->hid == HID_GD_WHEEL) in lenovo_input_mapping_cptkbd()
145 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_BUTTON && in lenovo_input_mapping_cptkbd()
146 (usage->hid & HID_USAGE) == 0x003) in lenovo_input_mapping_cptkbd()
148 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_CONSUMER && in lenovo_input_mapping_cptkbd()
149 (usage->hid & HID_USAGE) == 0x238) in lenovo_input_mapping_cptkbd()
153 if ((usage->hid & HID_USAGE_PAGE) == 0xff100000 || in lenovo_input_mapping_cptkbd()
154 (usage->hid & HID_USAGE_PAGE) == 0xffa10000) { in lenovo_input_mapping_cptkbd()
159 switch (usage->hid & HID_USAGE) { in lenovo_input_mapping_cptkbd()
161 hid_map_usage(hi, usage, bit, max, EV_REL, REL_HWHEEL); in lenovo_input_mapping_cptkbd()
164 hid_map_usage(hi, usage, bit, max, EV_REL, REL_WHEEL); in lenovo_input_mapping_cptkbd()
176 struct hid_usage *usage, unsigned long **bit, int *max) in lenovo_input_mapping_scrollpoint() argument
178 if (usage->hid == HID_GD_Z) { in lenovo_input_mapping_scrollpoint()
179 hid_map_usage(hi, usage, bit, max, EV_REL, REL_HWHEEL); in lenovo_input_mapping_scrollpoint()
187 struct hid_usage *usage, unsigned long **bit, int *max) in lenovo_input_mapping() argument
192 usage, bit, max); in lenovo_input_mapping()
196 usage, bit, max); in lenovo_input_mapping()
204 usage, bit, max); in lenovo_input_mapping()
361 struct hid_field *field, struct hid_usage *usage, __s32 value) in lenovo_event_cptkbd() argument
366 if (usage->type == EV_REL && (usage->code == REL_WHEEL || in lenovo_event_cptkbd()
367 usage->code == REL_HWHEEL)) { in lenovo_event_cptkbd()
374 if (usage->type == EV_KEY && usage->code == BTN_MIDDLE) { in lenovo_event_cptkbd()
396 struct hid_usage *usage, __s32 value) in lenovo_event() argument
401 return lenovo_event_cptkbd(hdev, field, usage, value); in lenovo_event()