Lines Matching refs:sc_evdev
572 struct evdev_dev *sc_evdev; member
854 sc->sc_evdev = evdev_alloc(); in wsp_attach()
855 evdev_set_name(sc->sc_evdev, device_get_desc(dev)); in wsp_attach()
856 evdev_set_phys(sc->sc_evdev, device_get_nameunit(dev)); in wsp_attach()
857 evdev_set_id(sc->sc_evdev, BUS_USB, uaa->info.idVendor, in wsp_attach()
859 evdev_set_serial(sc->sc_evdev, usb_get_serial(uaa->device)); in wsp_attach()
860 evdev_set_methods(sc->sc_evdev, sc, &wsp_evdev_methods); in wsp_attach()
861 evdev_support_prop(sc->sc_evdev, INPUT_PROP_POINTER); in wsp_attach()
862 evdev_support_event(sc->sc_evdev, EV_SYN); in wsp_attach()
863 evdev_support_event(sc->sc_evdev, EV_ABS); in wsp_attach()
864 evdev_support_event(sc->sc_evdev, EV_KEY); in wsp_attach()
872 WSP_SUPPORT_ABS(sc->sc_evdev, ABS_MT_POSITION_X, sc->sc_params->x); in wsp_attach()
873 WSP_SUPPORT_ABS(sc->sc_evdev, ABS_MT_POSITION_Y, sc->sc_params->y); in wsp_attach()
875 WSP_SUPPORT_ABS(sc->sc_evdev, ABS_MT_PRESSURE, sc->sc_params->p); in wsp_attach()
877 WSP_SUPPORT_ABS(sc->sc_evdev, ABS_MT_TOUCH_MAJOR, sc->sc_params->w); in wsp_attach()
878 WSP_SUPPORT_ABS(sc->sc_evdev, ABS_MT_TOUCH_MINOR, sc->sc_params->w); in wsp_attach()
880 WSP_SUPPORT_ABS(sc->sc_evdev, ABS_MT_WIDTH_MAJOR, sc->sc_params->w); in wsp_attach()
881 WSP_SUPPORT_ABS(sc->sc_evdev, ABS_MT_WIDTH_MINOR, sc->sc_params->w); in wsp_attach()
883 WSP_SUPPORT_ABS(sc->sc_evdev, ABS_MT_ORIENTATION, sc->sc_params->o); in wsp_attach()
885 evdev_support_key(sc->sc_evdev, BTN_LEFT); in wsp_attach()
887 evdev_support_prop(sc->sc_evdev, INPUT_PROP_BUTTONPAD); in wsp_attach()
889 evdev_support_abs(sc->sc_evdev, ABS_MT_SLOT, in wsp_attach()
891 evdev_support_abs(sc->sc_evdev, ABS_MT_TRACKING_ID, in wsp_attach()
893 evdev_set_flag(sc->sc_evdev, EVDEV_FLAG_MT_TRACK); in wsp_attach()
894 evdev_set_flag(sc->sc_evdev, EVDEV_FLAG_MT_AUTOREL); in wsp_attach()
896 evdev_set_flag(sc->sc_evdev, EVDEV_FLAG_MT_STCOMPAT); in wsp_attach()
898 err = evdev_register(sc->sc_evdev); in wsp_attach()
925 evdev_free(sc->sc_evdev); in wsp_detach()
1035 evdev_mt_push_slot(sc->sc_evdev, slot, &slot_data); in wsp_intr_callback()
1043 evdev_push_key(sc->sc_evdev, BTN_LEFT, ibt); in wsp_intr_callback()
1044 evdev_sync(sc->sc_evdev); in wsp_intr_callback()