Lines Matching refs:usage
116 int32_t usage; /* HID usage */ member
124 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_TIP_SWITCH),
130 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_WIDTH),
136 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_HEIGHT),
142 .usage = WMT_NO_USAGE,
148 .usage = HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_X),
154 .usage = HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_Y),
160 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_CONTACTID),
166 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_TIP_PRESSURE),
172 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_IN_RANGE),
178 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_CONFIDENCE),
184 .usage = HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_X),
190 .usage = HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_Y),
251 #define WMT_FOREACH_USAGE(caps, usage) \ argument
252 for ((usage) = 0; (usage) < WMT_N_USAGES; ++(usage)) \
253 if (isset((caps), (usage)))
505 size_t usage; in wmt_process_report() local
547 WMT_FOREACH_USAGE(sc->caps, usage) { in wmt_process_report()
548 if (wmt_hid_map[usage].usage != WMT_NO_USAGE) in wmt_process_report()
549 printf(" %-4s", wmt_hid_map[usage].name); in wmt_process_report()
562 WMT_FOREACH_USAGE(sc->caps, usage) { in wmt_process_report()
563 if (sc->locs[cont][usage].size > 0) in wmt_process_report()
564 slot_data->val[usage] = hid_get_udata( in wmt_process_report()
565 buf, len, &sc->locs[cont][usage]); in wmt_process_report()
573 WMT_FOREACH_USAGE(sc->caps, usage) { in wmt_process_report()
574 if (wmt_hid_map[usage].usage != WMT_NO_USAGE) in wmt_process_report()
575 printf("%04x ", slot_data->val[usage]); in wmt_process_report()
769 if (hi.collevel == 1 && hi.usage == in wmt_hid_parse()
776 if (hi.collevel == 1 && hi.usage == in wmt_hid_parse()
788 if (hi.collevel == 1 && touch_coll && hi.usage == in wmt_hid_parse()
793 if (hi.collevel == 1 && touch_coll && hi.usage == in wmt_hid_parse()
800 if (hi.collevel == 1 && touch_coll && hi.usage == in wmt_hid_parse()
825 if (hi.collevel == 1 && hi.usage == in wmt_hid_parse()
830 hi.usage == HID_USAGE2(HUP_DIGITIZERS, HUD_FINGER)) in wmt_hid_parse()
852 hi.usage == HID_USAGE2(HUP_BUTTON, 1)) { in wmt_hid_parse()
858 hi.usage >= HID_USAGE2(HUP_BUTTON, left_btn) && in wmt_hid_parse()
859 hi.usage <= HID_USAGE2(HUP_BUTTON, WMT_BTN_MAX)) { in wmt_hid_parse()
860 btn = (hi.usage & 0xFFFF) - left_btn; in wmt_hid_parse()
867 if (hi.collevel == 1 && hi.usage == in wmt_hid_parse()
874 if (hi.collevel == 1 && hi.usage == in wmt_hid_parse()
890 if (hi.usage == wmt_hid_map[i].usage) { in wmt_hid_parse()