Lines Matching refs:evdev
879 struct evdev_dev *evdev; in hkbd_attach() local
968 evdev = evdev_alloc(); in hkbd_attach()
969 evdev_set_name(evdev, device_get_desc(dev)); in hkbd_attach()
970 evdev_set_phys(evdev, device_get_nameunit(dev)); in hkbd_attach()
971 evdev_set_id(evdev, hw->idBus, hw->idVendor, hw->idProduct, in hkbd_attach()
973 evdev_set_serial(evdev, hw->serial); in hkbd_attach()
974 evdev_set_methods(evdev, kbd, &hkbd_evdev_methods); in hkbd_attach()
975 evdev_set_flag(evdev, EVDEV_FLAG_EXT_EPOCH); /* hidbus child */ in hkbd_attach()
976 evdev_support_event(evdev, EV_SYN); in hkbd_attach()
977 evdev_support_event(evdev, EV_KEY); in hkbd_attach()
980 evdev_support_event(evdev, EV_LED); in hkbd_attach()
981 evdev_support_event(evdev, EV_REP); in hkbd_attach()
984 evdev_support_key(evdev, evdev_hid2key(i)); in hkbd_attach()
986 evdev_support_led(evdev, LED_NUML); in hkbd_attach()
988 evdev_support_led(evdev, LED_CAPSL); in hkbd_attach()
990 evdev_support_led(evdev, LED_SCROLLL); in hkbd_attach()
992 if (evdev_register(evdev)) in hkbd_attach()
993 evdev_free(evdev); in hkbd_attach()
995 sc->sc_evdev = evdev; in hkbd_attach()
1102 hkbd_ev_event(struct evdev_dev *evdev, uint16_t type, uint16_t code, in hkbd_ev_event() argument
1105 keyboard_t *kbd = evdev_get_softc(evdev); in hkbd_ev_event()
2025 MODULE_DEPEND(hkbd, evdev, 1, 1, 1);