Lines Matching full:usage

56  * a custom vendor usage page, providing only a combined value as
62 0x05, 0x01, /* Usage Page (Desktop), */
63 0x09, 0x04, /* Usage (Joystick), */
72 0x09, 0x30, /* Usage (X), */
78 0x05, 0x09, /* Usage (Buttons), */
79 0x19, 0x01, /* Usage Minimum (1), */
80 0x29, 0x0c, /* Usage Maximum (12), */
83 0x06, 0x00, 0xFF, /* Usage Page (Vendor: 65280), */
84 0x09, 0x01, /* Usage (?: 1), */
86 0x05, 0x01, /* Usage Page (Desktop), */
96 0x09, 0x39, /* Usage (Hat Switch), */
101 0x06, 0x00, 0xFF, /* Usage Page (Vendor: 65280), */
102 0x09, 0x01, /* Usage (?: 1), */
106 0x05, 0x01, /* Usage Page (Desktop), */
111 0x09, 0x31, /* Usage (Y), */
113 0x09, 0x35, /* Usage (Rz), */
121 0x09, 0x03, /* Usage (?: 3), */
128 0x05, 0x01, /* Usage Page (Desktop), */
129 0x09, 0x04, /* Usage (Joystick), */
138 0x09, 0x30, /* Usage (X), */
144 0x05, 0x09, /* Usage Page (Button), */
145 0x19, 0x01, /* Usage Minimum (01h), */
146 0x29, 0x0E, /* Usage Maximum (0Eh), */
148 0x05, 0x01, /* Usage Page (Desktop), */
154 0x09, 0x39, /* Usage (Hat Switch), */
161 0x09, 0x31, /* Usage (Y), */
163 0x09, 0x35, /* Usage (Rz), */
168 0x09, 0x02, /* Usage (02h), */
176 0x05, 0x01, /* Usage Page (Desktop), */
177 0x09, 0x04, /* Usage (Joystick), */
186 0x09, 0x30, /* Usage (X), */
192 0x05, 0x09, /* Usage Page (Button), */
193 0x19, 0x01, /* Usage Minimum (01h), */
194 0x29, 0x0C, /* Usage Maximum (0Ch), */
197 0x06, 0x00, 0xFF, /* Usage Page (FF00h), */
198 0x09, 0x01, /* Usage (01h), */
200 0x09, 0x02, /* Usage (02h), */
206 0x05, 0x01, /* Usage Page (Desktop), */
211 0x09, 0x39, /* Usage (Hat Switch), */
216 0x06, 0x00, 0xFF, /* Usage Page (FF00h), */
217 0x09, 0x01, /* Usage (01h), */
221 0x05, 0x01, /* Usage Page (Desktop), */
226 0x09, 0x31, /* Usage (Y), */
228 0x09, 0x32, /* Usage (Z), */
236 0x09, 0x03, /* Usage (03h), */
243 0x05, 0x01, /* Usage Page (Desktop), */
244 0x09, 0x04, /* Usage (Joystick), */
253 0x09, 0x30, /* Usage (X), */
259 0x05, 0x09, /* Usage Page (Button), */
260 0x19, 0x01, /* Usage Minimum (01h), */
261 0x29, 0x08, /* Usage Maximum (08h), */
263 0x06, 0x00, 0xFF, /* Usage Page (FF00h), */
268 0x09, 0x00, /* Usage (00h), */
270 0x05, 0x01, /* Usage Page (Desktop), */
272 0x09, 0x31, /* Usage (Y), */
274 0x09, 0x32, /* Usage (Z), */
276 0x06, 0x00, 0xFF, /* Usage Page (FF00h), */
277 0x09, 0x01, /* Usage (01h), */
281 0x09, 0x02, /* Usage (02h), */
289 0x05, 0x01, /* Usage Page (Desktop), */
290 0x09, 0x04, /* Usage (Joystick), */
299 0x09, 0x30, /* Usage (X), */
305 0x05, 0x09, /* Usage Page (Button), */
306 0x19, 0x01, /* Usage Minimum (01h), */
307 0x29, 0x0A, /* Usage Maximum (0Ah), */
309 0x06, 0x00, 0xFF, /* Usage Page (FF00h), */
310 0x09, 0x00, /* Usage (00h), */
317 0x09, 0x01, /* Usage (01h), */
319 0x05, 0x01, /* Usage Page (Desktop), */
320 0x09, 0x31, /* Usage (Y), */
322 0x09, 0x32, /* Usage (Z), */
324 0x06, 0x00, 0xFF, /* Usage Page (FF00h), */
325 0x09, 0x00, /* Usage (00h), */
329 0x09, 0x02, /* Usage (02h), */
337 0x05, 0x01, /* Usage Page (Desktop), */
338 0x09, 0x04, /* Usage (Joystik), */
347 0x09, 0x30, /* Usage (X), */
353 0x05, 0x09, /* Usage Page (Button), */
354 0x19, 0x01, /* Usage Minimum (01h), */
355 0x29, 0x06, /* Usage Maximum (06h), */
361 0x06, 0x00, 0xFF, /* Usage Page (FF00h), */
362 0x09, 0x01, /* Usage (01h), */
364 0x05, 0x01, /* Usage Page (Desktop), */
366 0x09, 0x31, /* Usage (Y), */
368 0x09, 0x32, /* Usage (Z), */
370 0x06, 0x00, 0xFF, /* Usage Page (FF00h), */
371 0x09, 0x01, /* Usage (01h), */
375 0x09, 0x02, /* Usage (02h), */
383 0x05, 0x01, /* Usage Page (Desktop), */
384 0x09, 0x04, /* Usage (Joystik), */
393 0x09, 0x30, /* Usage (X), */
402 0x05, 0x09, /* Usage Page (Button), */
403 0x19, 0x01, /* Usage Minimum (01h), */
404 0x29, 0x06, /* Usage Maximum (06h), */
406 0x05, 0x01, /* Usage Page (Desktop), */
409 0x09, 0x31, /* Usage (Y), */
411 0x09, 0x32, /* Usage (Z), */
419 0x09, 0x02, /* Usage (02h), */
535 #define lg_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \
539 struct hid_usage *usage, unsigned long **bit, int *max) in lg_ultrax_remote_mapping() argument
541 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR) in lg_ultrax_remote_mapping()
545 switch (usage->hid & HID_USAGE) { in lg_ultrax_remote_mapping()
571 static int lg_dinovo_mapping(struct hid_input *hi, struct hid_usage *usage, in lg_dinovo_mapping() argument
574 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR) in lg_dinovo_mapping()
577 switch (usage->hid & HID_USAGE) { in lg_dinovo_mapping()
587 static int lg_wireless_mapping(struct hid_input *hi, struct hid_usage *usage, in lg_wireless_mapping() argument
590 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER) in lg_wireless_mapping()
593 switch (usage->hid & HID_USAGE) { in lg_wireless_mapping()
649 struct hid_field *field, struct hid_usage *usage, in lg_input_mapping() argument
665 unsigned int hid = usage->hid; in lg_input_mapping()
668 lg_ultrax_remote_mapping(hi, usage, bit, max)) in lg_input_mapping()
672 lg_dinovo_mapping(hi, usage, bit, max)) in lg_input_mapping()
675 if ((drv_data->quirks & LG_WIRELESS) && lg_wireless_mapping(hi, usage, bit, max)) in lg_input_mapping()
692 hid_map_usage(hi, usage, bit, max, EV_KEY, in lg_input_mapping()
702 struct hid_field *field, struct hid_usage *usage, in lg_input_mapped() argument
707 if ((drv_data->quirks & LG_BAD_RELATIVE_KEYS) && usage->type == EV_KEY && in lg_input_mapped()
711 if ((drv_data->quirks & LG_DUPLICATE_USAGES) && (usage->type == EV_KEY || in lg_input_mapped()
712 usage->type == EV_REL || usage->type == EV_ABS)) in lg_input_mapped()
713 clear_bit(usage->code, *bit); in lg_input_mapped()
716 if (usage->type == EV_ABS && (usage->code == ABS_X || in lg_input_mapped()
717 usage->code == ABS_Y || usage->code == ABS_Z || in lg_input_mapped()
718 usage->code == ABS_RZ)) { in lg_input_mapped()
743 struct hid_usage *usage, __s32 value) in lg_event() argument
747 if ((drv_data->quirks & LG_INVERT_HWHEEL) && usage->code == REL_HWHEEL) { in lg_event()
748 input_event(field->hidinput->input, usage->type, usage->code, in lg_event()
753 return lg4ff_adjust_input_event(hdev, field, usage, value, drv_data); in lg_event()