Lines Matching refs:usage
113 int32_t usage; /* HID usage */ member
121 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_TIP_SWITCH),
127 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_WIDTH),
133 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_HEIGHT),
139 .usage = WMT_NO_USAGE,
145 .usage = HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_X),
151 .usage = HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_Y),
157 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_CONTACTID),
163 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_TIP_PRESSURE),
169 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_IN_RANGE),
175 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_CONFIDENCE),
181 .usage = HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_X),
187 .usage = HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_Y),
248 #define WMT_FOREACH_USAGE(caps, usage) \ argument
249 for ((usage) = 0; (usage) < WMT_N_USAGES; ++(usage)) \
250 if (isset((caps), (usage)))
492 size_t usage; in wmt_process_report() local
534 WMT_FOREACH_USAGE(sc->caps, usage) { in wmt_process_report()
535 if (wmt_hid_map[usage].usage != WMT_NO_USAGE) in wmt_process_report()
536 printf(" %-4s", wmt_hid_map[usage].name); in wmt_process_report()
549 WMT_FOREACH_USAGE(sc->caps, usage) { in wmt_process_report()
550 if (sc->locs[cont][usage].size > 0) in wmt_process_report()
551 slot_data->val[usage] = hid_get_udata( in wmt_process_report()
552 buf, len, &sc->locs[cont][usage]); in wmt_process_report()
560 WMT_FOREACH_USAGE(sc->caps, usage) { in wmt_process_report()
561 if (wmt_hid_map[usage].usage != WMT_NO_USAGE) in wmt_process_report()
562 printf("%04x ", slot_data->val[usage]); in wmt_process_report()
754 if (hi.collevel == 1 && hi.usage == in wmt_hid_parse()
761 if (hi.collevel == 1 && hi.usage == in wmt_hid_parse()
773 if (hi.collevel == 1 && touch_coll && hi.usage == in wmt_hid_parse()
778 if (hi.collevel == 1 && touch_coll && hi.usage == in wmt_hid_parse()
785 if (hi.collevel == 1 && touch_coll && hi.usage == in wmt_hid_parse()
810 if (hi.collevel == 1 && hi.usage == in wmt_hid_parse()
815 hi.usage == HID_USAGE2(HUP_DIGITIZERS, HUD_FINGER)) in wmt_hid_parse()
837 hi.usage == HID_USAGE2(HUP_BUTTON, 1)) { in wmt_hid_parse()
843 hi.usage >= HID_USAGE2(HUP_BUTTON, left_btn) && in wmt_hid_parse()
844 hi.usage <= HID_USAGE2(HUP_BUTTON, WMT_BTN_MAX)) { in wmt_hid_parse()
845 btn = (hi.usage & 0xFFFF) - left_btn; in wmt_hid_parse()
852 if (hi.collevel == 1 && hi.usage == in wmt_hid_parse()
859 if (hi.collevel == 1 && hi.usage == in wmt_hid_parse()
875 if (hi.usage == wmt_hid_map[i].usage) { in wmt_hid_parse()