Lines Matching full:usage

58 #define map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, EV_KEY, (c))
106 0x05, 0x88, /* Usage Page (Vendor Usage Page 0x88) */
107 0x09, 0x01, /* Usage (Vendor Usage 0x01) */
110 0x19, 0x00, /* Usage Minimum (0) */
111 0x2a, 0xff, 0xff, /* Usage Maximum (65535) */
116 0x06, 0x00, 0xFF, /* Usage Page (Vendor Defined 0xFF00) */
117 0x09, 0x01, /* Usage (0x01) */
120 0x1A, 0xF1, 0x00, /* Usage Minimum (0xF1) */
121 0x2A, 0xFC, 0x00, /* Usage Maximum (0xFC) */
137 * - get a reasonable usage max for the vendor collection in lenovo_report_fixup()
151 rdesc[244] = 0x00; /* usage minimum = 0x00 */ in lenovo_report_fixup()
152 rdesc[247] = 0xff; /* usage maximum = 0xff */ in lenovo_report_fixup()
166 struct hid_usage *usage, unsigned long **bit, int *max) in lenovo_input_mapping_tpkbd() argument
168 if (usage->hid == (HID_UP_BUTTON | 0x0010)) { in lenovo_input_mapping_tpkbd()
179 struct hid_usage *usage, unsigned long **bit, int *max) in lenovo_input_mapping_cptkbd() argument
182 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_MSVENDOR || in lenovo_input_mapping_cptkbd()
183 (usage->hid & HID_USAGE_PAGE) == HID_UP_LNVENDOR) { in lenovo_input_mapping_cptkbd()
184 switch (usage->hid & HID_USAGE) { in lenovo_input_mapping_cptkbd()
220 if (usage->hid == HID_GD_WHEEL) in lenovo_input_mapping_cptkbd()
222 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_BUTTON && in lenovo_input_mapping_cptkbd()
223 (usage->hid & HID_USAGE) == 0x003) in lenovo_input_mapping_cptkbd()
225 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_CONSUMER && in lenovo_input_mapping_cptkbd()
226 (usage->hid & HID_USAGE) == 0x238) in lenovo_input_mapping_cptkbd()
230 if ((usage->hid & HID_USAGE_PAGE) == 0xff100000 || in lenovo_input_mapping_cptkbd()
231 (usage->hid & HID_USAGE_PAGE) == 0xffa10000) { in lenovo_input_mapping_cptkbd()
236 switch (usage->hid & HID_USAGE) { in lenovo_input_mapping_cptkbd()
238 hid_map_usage(hi, usage, bit, max, EV_REL, REL_HWHEEL); in lenovo_input_mapping_cptkbd()
241 hid_map_usage(hi, usage, bit, max, EV_REL, REL_WHEEL); in lenovo_input_mapping_cptkbd()
253 struct hid_usage *usage, unsigned long **bit, int *max) in lenovo_input_mapping_tpIIkbd() argument
261 if (((usage->hid & HID_USAGE_PAGE) == 0xff0a0000 || in lenovo_input_mapping_tpIIkbd()
262 (usage->hid & HID_USAGE_PAGE) == HID_UP_MSVENDOR) && in lenovo_input_mapping_tpIIkbd()
264 switch (usage->hid & HID_USAGE) { in lenovo_input_mapping_tpIIkbd()
298 if ((usage->hid & HID_USAGE_PAGE) == 0xffa00000) { in lenovo_input_mapping_tpIIkbd()
299 switch (usage->hid & HID_USAGE) { in lenovo_input_mapping_tpIIkbd()
306 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_MSVENDOR && in lenovo_input_mapping_tpIIkbd()
308 switch (usage->hid & HID_USAGE) { in lenovo_input_mapping_tpIIkbd()
316 if (usage->hid == HID_GD_WHEEL) in lenovo_input_mapping_tpIIkbd()
318 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_BUTTON && in lenovo_input_mapping_tpIIkbd()
319 (usage->hid & HID_USAGE) == 0x003) in lenovo_input_mapping_tpIIkbd()
321 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_CONSUMER && in lenovo_input_mapping_tpIIkbd()
322 (usage->hid & HID_USAGE) == 0x238) in lenovo_input_mapping_tpIIkbd()
326 if ((usage->hid & HID_USAGE_PAGE) == 0xff100000) { in lenovo_input_mapping_tpIIkbd()
331 switch (usage->hid & HID_USAGE) { in lenovo_input_mapping_tpIIkbd()
333 hid_map_usage(hi, usage, bit, max, EV_REL, REL_HWHEEL); in lenovo_input_mapping_tpIIkbd()
336 hid_map_usage(hi, usage, bit, max, EV_REL, REL_WHEEL); in lenovo_input_mapping_tpIIkbd()
348 struct hid_usage *usage, unsigned long **bit, int *max) in lenovo_input_mapping_scrollpoint() argument
350 if (usage->hid == HID_GD_Z) { in lenovo_input_mapping_scrollpoint()
351 hid_map_usage(hi, usage, bit, max, EV_REL, REL_HWHEEL); in lenovo_input_mapping_scrollpoint()
359 struct hid_usage *usage, unsigned long **bit, int *max) in lenovo_input_mapping_tp10_ultrabook_kbd() argument
362 * The ThinkPad 10 Ultrabook Keyboard uses 0x000c0001 usage for in lenovo_input_mapping_tp10_ultrabook_kbd()
365 if (usage->hid == 0x000c0001) { in lenovo_input_mapping_tp10_ultrabook_kbd()
366 switch (usage->usage_index) { in lenovo_input_mapping_tp10_ultrabook_kbd()
389 if (usage->hid == 0x00070072) in lenovo_input_mapping_tp10_ultrabook_kbd()
397 struct hid_usage *usage, unsigned long **bit, int *max) in lenovo_input_mapping_x1_tab_kbd() argument
400 * The ThinkPad X1 Tablet Thin Keyboard uses 0x000c0001 usage for in lenovo_input_mapping_x1_tab_kbd()
403 if (usage->hid == 0x000c0001) { in lenovo_input_mapping_x1_tab_kbd()
404 switch (usage->usage_index) { in lenovo_input_mapping_x1_tab_kbd()
435 if (usage->hid == (HID_UP_KEYBOARD | 0x009a)) { in lenovo_input_mapping_x1_tab_kbd()
445 struct hid_usage *usage, unsigned long **bit, int *max) in lenovo_input_mapping() argument
450 usage, bit, max); in lenovo_input_mapping()
454 usage, bit, max); in lenovo_input_mapping()
458 usage, bit, max); in lenovo_input_mapping()
466 usage, bit, max); in lenovo_input_mapping()
469 usage, bit, max); in lenovo_input_mapping()
471 return lenovo_input_mapping_x1_tab_kbd(hdev, hi, field, usage, bit, max); in lenovo_input_mapping()
633 * its own key is outside the usage page range. Remove extra in lenovo_raw_event()
634 * keypresses and remap to inside usage page. in lenovo_raw_event()
649 struct hid_field *field, struct hid_usage *usage, __s32 value) in lenovo_event_tp10ubkbd() argument
653 if (usage->type == EV_KEY && usage->code == KEY_FN_ESC && value == 1) { in lenovo_event_tp10ubkbd()
667 struct hid_field *field, struct hid_usage *usage, __s32 value) in lenovo_event_cptkbd() argument
672 if (usage->type == EV_REL && (usage->code == REL_WHEEL || in lenovo_event_cptkbd()
673 usage->code == REL_HWHEEL)) { in lenovo_event_cptkbd()
680 if (usage->type == EV_KEY && usage->code == BTN_MIDDLE) { in lenovo_event_cptkbd()
698 if (usage->type == EV_KEY && usage->code == KEY_FN_ESC && value == 1) { in lenovo_event_cptkbd()
711 struct hid_usage *usage, __s32 value) in lenovo_event() argument
721 return lenovo_event_cptkbd(hdev, field, usage, value); in lenovo_event()
724 return lenovo_event_tp10ubkbd(hdev, field, usage, value); in lenovo_event()