Lines Matching refs:usage

102 	int32_t 	usage;		/* HID usage */  member
111 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_TIP_SWITCH),
117 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_WIDTH),
123 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_HEIGHT),
129 .usage = WMT_NO_USAGE,
135 .usage = HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_X),
141 .usage = HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_Y),
147 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_CONTACTID),
153 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_TIP_PRESSURE),
159 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_IN_RANGE),
165 .usage = HID_USAGE2(HUP_DIGITIZERS, HUD_CONFIDENCE),
171 .usage = HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_X),
177 .usage = HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_Y),
215 #define USAGE_SUPPORTED(caps, usage) ((caps) & (1 << (usage))) argument
216 #define WMT_FOREACH_USAGE(caps, usage) \ argument
217 for ((usage) = 0; (usage) < WMT_N_USAGES; ++(usage)) \
218 if (USAGE_SUPPORTED((caps), (usage)))
397 size_t usage; in wmt_process_report() local
410 WMT_FOREACH_USAGE(sc->caps, usage) { in wmt_process_report()
411 if (wmt_hid_map[usage].usage != WMT_NO_USAGE) in wmt_process_report()
412 printf(" %-4s", wmt_hid_map[usage].name); in wmt_process_report()
427 WMT_FOREACH_USAGE(sc->caps, usage) { in wmt_process_report()
428 if (sc->locs[cont][usage].size > 0) in wmt_process_report()
429 slot_data[usage] = hid_get_data_unsigned( in wmt_process_report()
430 buf, len, &sc->locs[cont][usage]); in wmt_process_report()
439 WMT_FOREACH_USAGE(sc->caps, usage) { in wmt_process_report()
440 if (wmt_hid_map[usage].usage != WMT_NO_USAGE) in wmt_process_report()
441 printf("%04x ", slot_data[usage]); in wmt_process_report()
466 WMT_FOREACH_USAGE(sc->caps, usage) in wmt_process_report()
467 if (wmt_hid_map[usage].code != WMT_NO_CODE) in wmt_process_report()
469 wmt_hid_map[usage].code, in wmt_process_report()
470 slot_data[usage]); in wmt_process_report()
644 if (hi.collevel == 1 && hi.usage == in wmt_hid_parse()
653 if (hi.collevel == 1 && touch_coll && hi.usage == in wmt_hid_parse()
659 WMT_HI_ABSOLUTE(hi) && hi.usage == in wmt_hid_parse()
684 if (hi.collevel == 1 && hi.usage == in wmt_hid_parse()
689 hi.usage == HID_USAGE2(HUP_DIGITIZERS, HUD_FINGER)) in wmt_hid_parse()
710 if (hi.collevel == 1 && hi.usage == in wmt_hid_parse()
718 if (hi.collevel == 1 && hi.usage == in wmt_hid_parse()
734 if (hi.usage == wmt_hid_map[i].usage) { in wmt_hid_parse()