Lines Matching refs:sc_evdev
495 struct evdev_dev *sc_evdev; member
728 sc->sc_evdev = evdev_alloc(); in bcm5974_attach()
729 evdev_set_name(sc->sc_evdev, device_get_desc(dev)); in bcm5974_attach()
730 evdev_set_phys(sc->sc_evdev, device_get_nameunit(dev)); in bcm5974_attach()
731 evdev_set_id(sc->sc_evdev, hw->idBus, hw->idVendor, hw->idProduct, in bcm5974_attach()
733 evdev_set_serial(sc->sc_evdev, hw->serial); in bcm5974_attach()
734 evdev_set_methods(sc->sc_evdev, sc, &bcm5974_evdev_methods); in bcm5974_attach()
735 evdev_support_prop(sc->sc_evdev, INPUT_PROP_POINTER); in bcm5974_attach()
736 evdev_support_event(sc->sc_evdev, EV_SYN); in bcm5974_attach()
737 evdev_support_event(sc->sc_evdev, EV_ABS); in bcm5974_attach()
738 evdev_support_event(sc->sc_evdev, EV_KEY); in bcm5974_attach()
739 evdev_set_flag(sc->sc_evdev, EVDEV_FLAG_EXT_EPOCH); /* hidbus child */ in bcm5974_attach()
747 BCM5974_ABS(sc->sc_evdev, ABS_MT_POSITION_X, sc->sc_params->x); in bcm5974_attach()
748 BCM5974_ABS(sc->sc_evdev, ABS_MT_POSITION_Y, sc->sc_params->y); in bcm5974_attach()
750 BCM5974_ABS(sc->sc_evdev, ABS_MT_PRESSURE, sc->sc_params->p); in bcm5974_attach()
752 BCM5974_ABS(sc->sc_evdev, ABS_MT_TOUCH_MAJOR, sc->sc_params->w); in bcm5974_attach()
753 BCM5974_ABS(sc->sc_evdev, ABS_MT_TOUCH_MINOR, sc->sc_params->w); in bcm5974_attach()
756 BCM5974_ABS(sc->sc_evdev, ABS_MT_WIDTH_MAJOR, sc->sc_params->w); in bcm5974_attach()
757 BCM5974_ABS(sc->sc_evdev, ABS_MT_WIDTH_MINOR, sc->sc_params->w); in bcm5974_attach()
760 BCM5974_ABS(sc->sc_evdev, ABS_MT_ORIENTATION, sc->sc_params->o); in bcm5974_attach()
762 evdev_support_key(sc->sc_evdev, BTN_LEFT); in bcm5974_attach()
764 evdev_support_prop(sc->sc_evdev, INPUT_PROP_BUTTONPAD); in bcm5974_attach()
766 evdev_support_abs(sc->sc_evdev, ABS_MT_SLOT, in bcm5974_attach()
768 evdev_support_abs(sc->sc_evdev, ABS_MT_TRACKING_ID, in bcm5974_attach()
771 evdev_set_flag(sc->sc_evdev, EVDEV_FLAG_MT_TRACK); in bcm5974_attach()
772 evdev_set_flag(sc->sc_evdev, EVDEV_FLAG_MT_AUTOREL); in bcm5974_attach()
774 evdev_set_flag(sc->sc_evdev, EVDEV_FLAG_MT_STCOMPAT); in bcm5974_attach()
776 err = evdev_register(sc->sc_evdev); in bcm5974_attach()
794 evdev_free(sc->sc_evdev); in bcm5974_detach()
862 evdev_mt_push_slot(sc->sc_evdev, slot, &slot_data); in bcm5974_intr()
894 evdev_mt_push_slot(sc->sc_evdev, slot, &slot_data); in bcm5974_intr()
898 evdev_push_key(sc->sc_evdev, BTN_LEFT, ibt); in bcm5974_intr()
899 evdev_sync(sc->sc_evdev); in bcm5974_intr()