Lines Matching refs:evdev

104 	struct evdev_dev	*evdev;  member
218 ietp_ev_open(struct evdev_dev *evdev) in ietp_ev_open() argument
220 return (hid_intr_start(evdev_get_softc(evdev))); in ietp_ev_open()
224 ietp_ev_close(struct evdev_dev *evdev) in ietp_ev_close() argument
226 return (hid_intr_stop(evdev_get_softc(evdev))); in ietp_ev_close()
272 sc->evdev = evdev_alloc(); in ietp_attach()
273 evdev_set_name(sc->evdev, device_get_desc(sc->dev)); in ietp_attach()
274 evdev_set_phys(sc->evdev, device_get_nameunit(sc->dev)); in ietp_attach()
275 evdev_set_id(sc->evdev, hw->idBus, hw->idVendor, hw->idProduct, in ietp_attach()
277 evdev_set_serial(sc->evdev, hw->serial); in ietp_attach()
278 evdev_set_methods(sc->evdev, sc->dev, &ietp_evdev_methods); in ietp_attach()
279 evdev_set_flag(sc->evdev, EVDEV_FLAG_MT_STCOMPAT); in ietp_attach()
280 evdev_set_flag(sc->evdev, EVDEV_FLAG_EXT_EPOCH); /* hidbus child */ in ietp_attach()
282 evdev_support_event(sc->evdev, EV_SYN); in ietp_attach()
283 evdev_support_event(sc->evdev, EV_ABS); in ietp_attach()
284 evdev_support_event(sc->evdev, EV_KEY); in ietp_attach()
285 evdev_support_prop(sc->evdev, INPUT_PROP_POINTER); in ietp_attach()
286 evdev_support_key(sc->evdev, BTN_LEFT); in ietp_attach()
288 evdev_support_prop(sc->evdev, INPUT_PROP_BUTTONPAD); in ietp_attach()
290 evdev_support_key(sc->evdev, BTN_RIGHT); in ietp_attach()
292 evdev_support_key(sc->evdev, BTN_MIDDLE); in ietp_attach()
298 evdev_support_abs(sc->evdev, ABS_MT_SLOT, in ietp_attach()
300 evdev_support_abs(sc->evdev, ABS_MT_TRACKING_ID, in ietp_attach()
302 evdev_support_abs(sc->evdev, ABS_MT_POSITION_X, in ietp_attach()
304 evdev_support_abs(sc->evdev, ABS_MT_POSITION_Y, in ietp_attach()
306 evdev_support_abs(sc->evdev, ABS_MT_PRESSURE, in ietp_attach()
308 evdev_support_abs(sc->evdev, ABS_MT_ORIENTATION, 0, 1, 0, 0, 0); in ietp_attach()
309 evdev_support_abs(sc->evdev, ABS_MT_TOUCH_MAJOR, 0, major, 0, 0, 0); in ietp_attach()
310 evdev_support_abs(sc->evdev, ABS_MT_TOUCH_MINOR, 0, minor, 0, 0, 0); in ietp_attach()
311 evdev_support_abs(sc->evdev, ABS_DISTANCE, 0, 1, 0, 0, 0); in ietp_attach()
313 error = evdev_register(sc->evdev); in ietp_attach()
331 evdev_free(sc->evdev); in ietp_detach()
357 evdev_push_key(sc->evdev, BTN_LEFT, in ietp_intr()
359 evdev_push_key(sc->evdev, BTN_MIDDLE, in ietp_intr()
361 evdev_push_key(sc->evdev, BTN_RIGHT, in ietp_intr()
363 evdev_push_abs(sc->evdev, ABS_DISTANCE, in ietp_intr()
400 evdev_mt_push_slot(sc->evdev, finger, &slot_data); in ietp_intr()
402 evdev_push_abs(sc->evdev, ABS_MT_SLOT, finger); in ietp_intr()
403 evdev_push_abs(sc->evdev, ABS_MT_TRACKING_ID, -1); in ietp_intr()
407 evdev_sync(sc->evdev); in ietp_intr()
673 MODULE_DEPEND(ietp, evdev, 1, 1, 1);