Lines Matching refs:sc_evdev

496 	struct evdev_dev *sc_evdev;  member
729 sc->sc_evdev = evdev_alloc(); in bcm5974_attach()
730 evdev_set_name(sc->sc_evdev, device_get_desc(dev)); in bcm5974_attach()
731 evdev_set_phys(sc->sc_evdev, device_get_nameunit(dev)); in bcm5974_attach()
732 evdev_set_id(sc->sc_evdev, hw->idBus, hw->idVendor, hw->idProduct, in bcm5974_attach()
734 evdev_set_serial(sc->sc_evdev, hw->serial); in bcm5974_attach()
735 evdev_set_methods(sc->sc_evdev, sc, &bcm5974_evdev_methods); in bcm5974_attach()
736 evdev_support_prop(sc->sc_evdev, INPUT_PROP_POINTER); in bcm5974_attach()
737 evdev_support_event(sc->sc_evdev, EV_SYN); in bcm5974_attach()
738 evdev_support_event(sc->sc_evdev, EV_ABS); in bcm5974_attach()
739 evdev_support_event(sc->sc_evdev, EV_KEY); in bcm5974_attach()
740 evdev_set_flag(sc->sc_evdev, EVDEV_FLAG_EXT_EPOCH); /* hidbus child */ in bcm5974_attach()
748 BCM5974_ABS(sc->sc_evdev, ABS_MT_POSITION_X, sc->sc_params->x); in bcm5974_attach()
749 BCM5974_ABS(sc->sc_evdev, ABS_MT_POSITION_Y, sc->sc_params->y); in bcm5974_attach()
751 BCM5974_ABS(sc->sc_evdev, ABS_MT_PRESSURE, sc->sc_params->p); in bcm5974_attach()
753 BCM5974_ABS(sc->sc_evdev, ABS_MT_TOUCH_MAJOR, sc->sc_params->w); in bcm5974_attach()
754 BCM5974_ABS(sc->sc_evdev, ABS_MT_TOUCH_MINOR, sc->sc_params->w); in bcm5974_attach()
757 BCM5974_ABS(sc->sc_evdev, ABS_MT_WIDTH_MAJOR, sc->sc_params->w); in bcm5974_attach()
758 BCM5974_ABS(sc->sc_evdev, ABS_MT_WIDTH_MINOR, sc->sc_params->w); in bcm5974_attach()
761 BCM5974_ABS(sc->sc_evdev, ABS_MT_ORIENTATION, sc->sc_params->o); in bcm5974_attach()
763 evdev_support_key(sc->sc_evdev, BTN_LEFT); in bcm5974_attach()
765 evdev_support_prop(sc->sc_evdev, INPUT_PROP_BUTTONPAD); in bcm5974_attach()
767 evdev_support_abs(sc->sc_evdev, ABS_MT_SLOT, in bcm5974_attach()
769 evdev_support_abs(sc->sc_evdev, ABS_MT_TRACKING_ID, in bcm5974_attach()
772 evdev_set_flag(sc->sc_evdev, EVDEV_FLAG_MT_TRACK); in bcm5974_attach()
773 evdev_set_flag(sc->sc_evdev, EVDEV_FLAG_MT_AUTOREL); in bcm5974_attach()
775 evdev_set_flag(sc->sc_evdev, EVDEV_FLAG_MT_STCOMPAT); in bcm5974_attach()
777 err = evdev_register(sc->sc_evdev); in bcm5974_attach()
795 evdev_free(sc->sc_evdev); in bcm5974_detach()
845 slot = evdev_mt_id_to_slot(sc->sc_evdev, id); in bcm5974_intr()
866 evdev_mt_push_slot(sc->sc_evdev, slot, &slot_data); in bcm5974_intr()
897 evdev_mt_push_slot(sc->sc_evdev, slot, &slot_data); in bcm5974_intr()
901 evdev_push_key(sc->sc_evdev, BTN_LEFT, ibt); in bcm5974_intr()
902 evdev_sync(sc->sc_evdev); in bcm5974_intr()