Lines Matching refs:evdev
881 struct evdev_dev *evdev; in hkbd_attach() local
970 evdev = evdev_alloc(); in hkbd_attach()
971 evdev_set_name(evdev, device_get_desc(dev)); in hkbd_attach()
972 evdev_set_phys(evdev, device_get_nameunit(dev)); in hkbd_attach()
973 evdev_set_id(evdev, hw->idBus, hw->idVendor, hw->idProduct, in hkbd_attach()
975 evdev_set_serial(evdev, hw->serial); in hkbd_attach()
976 evdev_set_methods(evdev, kbd, &hkbd_evdev_methods); in hkbd_attach()
977 evdev_set_flag(evdev, EVDEV_FLAG_EXT_EPOCH); /* hidbus child */ in hkbd_attach()
978 evdev_support_event(evdev, EV_SYN); in hkbd_attach()
979 evdev_support_event(evdev, EV_KEY); in hkbd_attach()
982 evdev_support_event(evdev, EV_LED); in hkbd_attach()
983 evdev_support_event(evdev, EV_REP); in hkbd_attach()
986 evdev_support_key(evdev, evdev_hid2key(i)); in hkbd_attach()
988 evdev_support_led(evdev, LED_NUML); in hkbd_attach()
990 evdev_support_led(evdev, LED_CAPSL); in hkbd_attach()
992 evdev_support_led(evdev, LED_SCROLLL); in hkbd_attach()
994 if (evdev_register(evdev)) in hkbd_attach()
995 evdev_free(evdev); in hkbd_attach()
997 sc->sc_evdev = evdev; in hkbd_attach()
1104 hkbd_ev_event(struct evdev_dev *evdev, uint16_t type, uint16_t code, in hkbd_ev_event() argument
1107 keyboard_t *kbd = evdev_get_softc(evdev); in hkbd_ev_event()
2034 MODULE_DEPEND(hkbd, evdev, 1, 1, 1);