Lines Matching refs:evdev
104 struct evdev_dev *evdev; member
234 ietp_ev_open(struct evdev_dev *evdev) in ietp_ev_open() argument
236 struct ietp_softc *sc = evdev_get_softc(evdev); in ietp_ev_open()
246 ietp_ev_close(struct evdev_dev *evdev) in ietp_ev_close() argument
248 struct ietp_softc *sc = evdev_get_softc(evdev); in ietp_ev_close()
300 sc->evdev = evdev_alloc(); in ietp_attach()
301 evdev_set_name(sc->evdev, device_get_desc(sc->dev)); in ietp_attach()
302 evdev_set_phys(sc->evdev, device_get_nameunit(sc->dev)); in ietp_attach()
303 evdev_set_id(sc->evdev, hw->idBus, hw->idVendor, hw->idProduct, in ietp_attach()
305 evdev_set_serial(sc->evdev, hw->serial); in ietp_attach()
306 evdev_set_methods(sc->evdev, sc, &ietp_evdev_methods); in ietp_attach()
307 evdev_set_flag(sc->evdev, EVDEV_FLAG_MT_STCOMPAT); in ietp_attach()
308 evdev_set_flag(sc->evdev, EVDEV_FLAG_EXT_EPOCH); /* hidbus child */ in ietp_attach()
310 evdev_support_event(sc->evdev, EV_SYN); in ietp_attach()
311 evdev_support_event(sc->evdev, EV_ABS); in ietp_attach()
312 evdev_support_event(sc->evdev, EV_KEY); in ietp_attach()
313 evdev_support_prop(sc->evdev, INPUT_PROP_POINTER); in ietp_attach()
314 evdev_support_key(sc->evdev, BTN_LEFT); in ietp_attach()
316 evdev_support_prop(sc->evdev, INPUT_PROP_BUTTONPAD); in ietp_attach()
318 evdev_support_key(sc->evdev, BTN_RIGHT); in ietp_attach()
320 evdev_support_key(sc->evdev, BTN_MIDDLE); in ietp_attach()
326 evdev_support_abs(sc->evdev, ABS_MT_SLOT, in ietp_attach()
328 evdev_support_abs(sc->evdev, ABS_MT_TRACKING_ID, in ietp_attach()
330 evdev_support_abs(sc->evdev, ABS_MT_POSITION_X, in ietp_attach()
332 evdev_support_abs(sc->evdev, ABS_MT_POSITION_Y, in ietp_attach()
334 evdev_support_abs(sc->evdev, ABS_MT_PRESSURE, in ietp_attach()
336 evdev_support_abs(sc->evdev, ABS_MT_ORIENTATION, 0, 1, 0, 0, 0); in ietp_attach()
337 evdev_support_abs(sc->evdev, ABS_MT_TOUCH_MAJOR, 0, major, 0, 0, 0); in ietp_attach()
338 evdev_support_abs(sc->evdev, ABS_MT_TOUCH_MINOR, 0, minor, 0, 0, 0); in ietp_attach()
339 evdev_support_abs(sc->evdev, ABS_DISTANCE, 0, 1, 0, 0, 0); in ietp_attach()
341 error = evdev_register(sc->evdev); in ietp_attach()
359 evdev_free(sc->evdev); in ietp_detach()
385 evdev_push_key(sc->evdev, BTN_LEFT, in ietp_intr()
387 evdev_push_key(sc->evdev, BTN_MIDDLE, in ietp_intr()
389 evdev_push_key(sc->evdev, BTN_RIGHT, in ietp_intr()
391 evdev_push_abs(sc->evdev, ABS_DISTANCE, in ietp_intr()
428 evdev_mt_push_slot(sc->evdev, finger, &slot_data); in ietp_intr()
430 evdev_push_abs(sc->evdev, ABS_MT_SLOT, finger); in ietp_intr()
431 evdev_push_abs(sc->evdev, ABS_MT_TRACKING_ID, -1); in ietp_intr()
435 evdev_sync(sc->evdev); in ietp_intr()
713 MODULE_DEPEND(ietp, evdev, 1, 1, 1);