Lines Matching refs:evdev
877 struct evdev_dev *evdev; in hkbd_attach() local
966 evdev = evdev_alloc(); in hkbd_attach()
967 evdev_set_name(evdev, device_get_desc(dev)); in hkbd_attach()
968 evdev_set_phys(evdev, device_get_nameunit(dev)); in hkbd_attach()
969 evdev_set_id(evdev, hw->idBus, hw->idVendor, hw->idProduct, in hkbd_attach()
971 evdev_set_serial(evdev, hw->serial); in hkbd_attach()
972 evdev_set_methods(evdev, kbd, &hkbd_evdev_methods); in hkbd_attach()
973 evdev_set_flag(evdev, EVDEV_FLAG_EXT_EPOCH); /* hidbus child */ in hkbd_attach()
974 evdev_support_event(evdev, EV_SYN); in hkbd_attach()
975 evdev_support_event(evdev, EV_KEY); in hkbd_attach()
978 evdev_support_event(evdev, EV_LED); in hkbd_attach()
979 evdev_support_event(evdev, EV_REP); in hkbd_attach()
982 evdev_support_key(evdev, evdev_hid2key(i)); in hkbd_attach()
984 evdev_support_led(evdev, LED_NUML); in hkbd_attach()
986 evdev_support_led(evdev, LED_CAPSL); in hkbd_attach()
988 evdev_support_led(evdev, LED_SCROLLL); in hkbd_attach()
990 if (evdev_register(evdev)) in hkbd_attach()
991 evdev_free(evdev); in hkbd_attach()
993 sc->sc_evdev = evdev; in hkbd_attach()
1100 hkbd_ev_event(struct evdev_dev *evdev, uint16_t type, uint16_t code, in hkbd_ev_event() argument
1103 keyboard_t *kbd = evdev_get_softc(evdev); in hkbd_ev_event()
2027 MODULE_DEPEND(hkbd, evdev, 1, 1, 1);