Lines Matching refs:usage
114 int32_t usage; /* HID usage */ member
122 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_TIP_SWITCH),
128 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_WIDTH),
134 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_HEIGHT),
140 .usage = WMT_NO_USAGE,
146 .usage = HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_X),
152 .usage = HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_Y),
158 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_CONTACTID),
164 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_TIP_PRESSURE),
170 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_IN_RANGE),
176 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_CONFIDENCE),
182 .usage = HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_X),
188 .usage = HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_Y),
249 #define WMT_FOREACH_USAGE(caps, usage) \ argument
250 for ((usage) = 0; (usage) < WMT_N_USAGES; ++(usage)) \
251 if (isset((caps), (usage)))
493 size_t usage; in wmt_process_report() local
535 WMT_FOREACH_USAGE(sc->caps, usage) { in wmt_process_report()
536 if (wmt_hid_map[usage].usage != WMT_NO_USAGE) in wmt_process_report()
537 printf(" %-4s", wmt_hid_map[usage].name); in wmt_process_report()
550 WMT_FOREACH_USAGE(sc->caps, usage) { in wmt_process_report()
551 if (sc->locs[cont][usage].size > 0) in wmt_process_report()
552 slot_data->val[usage] = hid_get_udata( in wmt_process_report()
553 buf, len, &sc->locs[cont][usage]); in wmt_process_report()
561 WMT_FOREACH_USAGE(sc->caps, usage) { in wmt_process_report()
562 if (wmt_hid_map[usage].usage != WMT_NO_USAGE) in wmt_process_report()
563 printf("%04x ", slot_data->val[usage]); in wmt_process_report()
755 if (hi.collevel == 1 && hi.usage == in wmt_hid_parse()
762 if (hi.collevel == 1 && hi.usage == in wmt_hid_parse()
774 if (hi.collevel == 1 && touch_coll && hi.usage == in wmt_hid_parse()
779 if (hi.collevel == 1 && touch_coll && hi.usage == in wmt_hid_parse()
786 if (hi.collevel == 1 && touch_coll && hi.usage == in wmt_hid_parse()
811 if (hi.collevel == 1 && hi.usage == in wmt_hid_parse()
816 hi.usage == HID_USAGE2(HUP_DIGITIZERS, HUD_FINGER)) in wmt_hid_parse()
838 hi.usage == HID_USAGE2(HUP_BUTTON, 1)) { in wmt_hid_parse()
844 hi.usage >= HID_USAGE2(HUP_BUTTON, left_btn) && in wmt_hid_parse()
845 hi.usage <= HID_USAGE2(HUP_BUTTON, WMT_BTN_MAX)) { in wmt_hid_parse()
846 btn = (hi.usage & 0xFFFF) - left_btn; in wmt_hid_parse()
853 if (hi.collevel == 1 && hi.usage == in wmt_hid_parse()
860 if (hi.collevel == 1 && hi.usage == in wmt_hid_parse()
876 if (hi.usage == wmt_hid_map[i].usage) { in wmt_hid_parse()