• Home
  • Raw
  • Download

Lines Matching full:usage

58  * a custom vendor usage page, providing only a combined value as
64 0x05, 0x01, /* Usage Page (Desktop), */
65 0x09, 0x04, /* Usage (Joystick), */
74 0x09, 0x30, /* Usage (X), */
80 0x05, 0x09, /* Usage (Buttons), */
81 0x19, 0x01, /* Usage Minimum (1), */
82 0x29, 0x0c, /* Usage Maximum (12), */
85 0x06, 0x00, 0xFF, /* Usage Page (Vendor: 65280), */
86 0x09, 0x01, /* Usage (?: 1), */
88 0x05, 0x01, /* Usage Page (Desktop), */
98 0x09, 0x39, /* Usage (Hat Switch), */
103 0x06, 0x00, 0xFF, /* Usage Page (Vendor: 65280), */
104 0x09, 0x01, /* Usage (?: 1), */
108 0x05, 0x01, /* Usage Page (Desktop), */
113 0x09, 0x31, /* Usage (Y), */
115 0x09, 0x35, /* Usage (Rz), */
123 0x09, 0x03, /* Usage (?: 3), */
130 0x05, 0x01, /* Usage Page (Desktop), */
131 0x09, 0x04, /* Usage (Joystick), */
140 0x09, 0x30, /* Usage (X), */
146 0x05, 0x09, /* Usage Page (Button), */
147 0x19, 0x01, /* Usage Minimum (01h), */
148 0x29, 0x0E, /* Usage Maximum (0Eh), */
150 0x05, 0x01, /* Usage Page (Desktop), */
156 0x09, 0x39, /* Usage (Hat Switch), */
163 0x09, 0x31, /* Usage (Y), */
165 0x09, 0x35, /* Usage (Rz), */
170 0x09, 0x02, /* Usage (02h), */
178 0x05, 0x01, /* Usage Page (Desktop), */
179 0x09, 0x04, /* Usage (Joystick), */
188 0x09, 0x30, /* Usage (X), */
194 0x05, 0x09, /* Usage Page (Button), */
195 0x19, 0x01, /* Usage Minimum (01h), */
196 0x29, 0x0C, /* Usage Maximum (0Ch), */
199 0x06, 0x00, 0xFF, /* Usage Page (FF00h), */
200 0x09, 0x01, /* Usage (01h), */
202 0x09, 0x02, /* Usage (02h), */
208 0x05, 0x01, /* Usage Page (Desktop), */
213 0x09, 0x39, /* Usage (Hat Switch), */
218 0x06, 0x00, 0xFF, /* Usage Page (FF00h), */
219 0x09, 0x01, /* Usage (01h), */
223 0x05, 0x01, /* Usage Page (Desktop), */
228 0x09, 0x31, /* Usage (Y), */
230 0x09, 0x32, /* Usage (Z), */
238 0x09, 0x03, /* Usage (03h), */
245 0x05, 0x01, /* Usage Page (Desktop), */
246 0x09, 0x04, /* Usage (Joystick), */
255 0x09, 0x30, /* Usage (X), */
261 0x05, 0x09, /* Usage Page (Button), */
262 0x19, 0x01, /* Usage Minimum (01h), */
263 0x29, 0x08, /* Usage Maximum (08h), */
265 0x06, 0x00, 0xFF, /* Usage Page (FF00h), */
270 0x09, 0x00, /* Usage (00h), */
272 0x05, 0x01, /* Usage Page (Desktop), */
274 0x09, 0x31, /* Usage (Y), */
276 0x09, 0x32, /* Usage (Z), */
278 0x06, 0x00, 0xFF, /* Usage Page (FF00h), */
279 0x09, 0x01, /* Usage (01h), */
283 0x09, 0x02, /* Usage (02h), */
291 0x05, 0x01, /* Usage Page (Desktop), */
292 0x09, 0x04, /* Usage (Joystick), */
301 0x09, 0x30, /* Usage (X), */
307 0x05, 0x09, /* Usage Page (Button), */
308 0x19, 0x01, /* Usage Minimum (01h), */
309 0x29, 0x0A, /* Usage Maximum (0Ah), */
311 0x06, 0x00, 0xFF, /* Usage Page (FF00h), */
312 0x09, 0x00, /* Usage (00h), */
319 0x09, 0x01, /* Usage (01h), */
321 0x05, 0x01, /* Usage Page (Desktop), */
322 0x09, 0x31, /* Usage (Y), */
324 0x09, 0x32, /* Usage (Z), */
326 0x06, 0x00, 0xFF, /* Usage Page (FF00h), */
327 0x09, 0x00, /* Usage (00h), */
331 0x09, 0x02, /* Usage (02h), */
339 0x05, 0x01, /* Usage Page (Desktop), */
340 0x09, 0x04, /* Usage (Joystik), */
349 0x09, 0x30, /* Usage (X), */
355 0x05, 0x09, /* Usage Page (Button), */
356 0x19, 0x01, /* Usage Minimum (01h), */
357 0x29, 0x06, /* Usage Maximum (06h), */
363 0x06, 0x00, 0xFF, /* Usage Page (FF00h), */
364 0x09, 0x01, /* Usage (01h), */
366 0x05, 0x01, /* Usage Page (Desktop), */
368 0x09, 0x31, /* Usage (Y), */
370 0x09, 0x32, /* Usage (Z), */
372 0x06, 0x00, 0xFF, /* Usage Page (FF00h), */
373 0x09, 0x01, /* Usage (01h), */
377 0x09, 0x02, /* Usage (02h), */
481 #define lg_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \
485 struct hid_usage *usage, unsigned long **bit, int *max) in lg_ultrax_remote_mapping() argument
487 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR) in lg_ultrax_remote_mapping()
491 switch (usage->hid & HID_USAGE) { in lg_ultrax_remote_mapping()
517 static int lg_dinovo_mapping(struct hid_input *hi, struct hid_usage *usage, in lg_dinovo_mapping() argument
520 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR) in lg_dinovo_mapping()
523 switch (usage->hid & HID_USAGE) { in lg_dinovo_mapping()
533 static int lg_wireless_mapping(struct hid_input *hi, struct hid_usage *usage, in lg_wireless_mapping() argument
536 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER) in lg_wireless_mapping()
539 switch (usage->hid & HID_USAGE) { in lg_wireless_mapping()
595 struct hid_field *field, struct hid_usage *usage, in lg_input_mapping() argument
611 unsigned int hid = usage->hid; in lg_input_mapping()
614 lg_ultrax_remote_mapping(hi, usage, bit, max)) in lg_input_mapping()
618 lg_dinovo_mapping(hi, usage, bit, max)) in lg_input_mapping()
621 if ((drv_data->quirks & LG_WIRELESS) && lg_wireless_mapping(hi, usage, bit, max)) in lg_input_mapping()
638 hid_map_usage(hi, usage, bit, max, EV_KEY, in lg_input_mapping()
648 struct hid_field *field, struct hid_usage *usage, in lg_input_mapped() argument
653 if ((drv_data->quirks & LG_BAD_RELATIVE_KEYS) && usage->type == EV_KEY && in lg_input_mapped()
657 if ((drv_data->quirks & LG_DUPLICATE_USAGES) && (usage->type == EV_KEY || in lg_input_mapped()
658 usage->type == EV_REL || usage->type == EV_ABS)) in lg_input_mapped()
659 clear_bit(usage->code, *bit); in lg_input_mapped()
662 if (usage->type == EV_ABS && (usage->code == ABS_X || in lg_input_mapped()
663 usage->code == ABS_Y || usage->code == ABS_Z || in lg_input_mapped()
664 usage->code == ABS_RZ)) { in lg_input_mapped()
688 struct hid_usage *usage, __s32 value) in lg_event() argument
692 if ((drv_data->quirks & LG_INVERT_HWHEEL) && usage->code == REL_HWHEEL) { in lg_event()
693 input_event(field->hidinput->input, usage->type, usage->code, in lg_event()
698 return lg4ff_adjust_input_event(hdev, field, usage, value, drv_data); in lg_event()