Lines Matching refs:btn
303 int nbuttons, btn; in hmt_attach() local
422 for (btn = 0; btn < sc->max_button; ++btn) { in hmt_attach()
423 if (isset(sc->buttons, btn)) { in hmt_attach()
424 evdev_support_key(sc->evdev, BTN_MOUSE + btn); in hmt_attach()
479 uint32_t cont, btn; in hmt_intr() local
643 for (btn = 1; btn < sc->max_button; ++btn) { in hmt_intr()
644 if (isset(sc->buttons, btn)) in hmt_intr()
645 evdev_push_key(sc->evdev, BTN_MOUSE + btn, in hmt_intr()
648 &sc->btn_loc[btn]) != 0); in hmt_intr()
665 uint32_t left_btn, btn; in hmt_hid_parse() local
755 btn = (hi.usage & 0xFFFF) - left_btn; in hmt_hid_parse()
756 setbit(sc->buttons, btn); in hmt_hid_parse()
757 sc->btn_loc[btn] = hi.loc; in hmt_hid_parse()
758 if (btn >= sc->max_button) in hmt_hid_parse()
759 sc->max_button = btn + 1; in hmt_hid_parse()