Lines Matching refs:sc_evdev

121 	struct evdev_dev	*sc_evdev;  member
162 evdev_push_event(sc->sc_evdev, EV_ABS, ABS_MT_SLOT, id); in ft5406ts_callout()
163 evdev_push_event(sc->sc_evdev, EV_ABS, ABS_MT_TRACKING_ID, id); in ft5406ts_callout()
164 evdev_push_event(sc->sc_evdev, EV_ABS, ABS_MT_POSITION_X, x); in ft5406ts_callout()
165 evdev_push_event(sc->sc_evdev, EV_ABS, ABS_MT_POSITION_Y, y); in ft5406ts_callout()
167 evdev_sync(sc->sc_evdev); in ft5406ts_callout()
235 sc->sc_evdev = evdev_alloc(); in ft5406ts_init()
236 evdev_set_name(sc->sc_evdev, device_get_desc(sc->sc_dev)); in ft5406ts_init()
237 evdev_set_phys(sc->sc_evdev, device_get_nameunit(sc->sc_dev)); in ft5406ts_init()
238 evdev_set_id(sc->sc_evdev, BUS_HOST, 0, 0, 0); in ft5406ts_init()
239 evdev_set_methods(sc->sc_evdev, sc, &ft5406ts_evdev_methods); in ft5406ts_init()
240 evdev_set_flag(sc->sc_evdev, EVDEV_FLAG_MT_STCOMPAT); in ft5406ts_init()
241 evdev_set_flag(sc->sc_evdev, EVDEV_FLAG_MT_AUTOREL); in ft5406ts_init()
242 evdev_support_prop(sc->sc_evdev, INPUT_PROP_DIRECT); in ft5406ts_init()
243 evdev_support_event(sc->sc_evdev, EV_SYN); in ft5406ts_init()
244 evdev_support_event(sc->sc_evdev, EV_ABS); in ft5406ts_init()
246 evdev_support_abs(sc->sc_evdev, ABS_MT_SLOT, 0, in ft5406ts_init()
248 evdev_support_abs(sc->sc_evdev, ABS_MT_TRACKING_ID, -1, in ft5406ts_init()
250 evdev_support_abs(sc->sc_evdev, ABS_MT_POSITION_X, 0, in ft5406ts_init()
252 evdev_support_abs(sc->sc_evdev, ABS_MT_POSITION_Y, 0, in ft5406ts_init()
255 err = evdev_register_mtx(sc->sc_evdev, &sc->sc_mtx); in ft5406ts_init()
257 evdev_free(sc->sc_evdev); in ft5406ts_init()
258 sc->sc_evdev = NULL; /* Avoid double free */ in ft5406ts_init()
309 evdev_free(sc->sc_evdev); in ft5406ts_detach()