Home
last modified time | relevance | path

Searched refs:evdev (Results 1 – 25 of 67) sorted by relevance

123

/freebsd/sys/dev/evdev/
H A Devdev.c45 #include <dev/evdev/evdev.h>
46 #include <dev/evdev/evdev_private.h>
47 #include <dev/evdev/input.h>
50 #define debugf(evdev, fmt, args...) printf("evdev: " fmt "\n", ##args) argument
52 #define debugf(evdev, fmt, args...) argument
56 FEATURE(evdev, "Input event devices support");
69 MALLOC_DEFINE(M_EVDEV, "evdev", "evdev memor
98 struct evdev_dev *evdev; evdev_alloc() local
109 evdev_free(struct evdev_dev * evdev) evdev_free() argument
135 evdev_set_report_size(struct evdev_dev * evdev,size_t report_size) evdev_set_report_size() argument
146 evdev_estimate_report_size(struct evdev_dev * evdev) evdev_estimate_report_size() argument
207 evdev_sysctl_create(struct evdev_dev * evdev) evdev_sysctl_create() argument
289 evdev_register_common(struct evdev_dev * evdev) evdev_register_common() argument
342 evdev_register(struct evdev_dev * evdev) evdev_register() argument
361 evdev_register_mtx(struct evdev_dev * evdev,struct mtx * mtx) evdev_register_mtx() argument
370 evdev_unregister(struct evdev_dev * evdev) evdev_unregister() argument
405 evdev_set_name(struct evdev_dev * evdev,const char * name) evdev_set_name() argument
412 evdev_set_id(struct evdev_dev * evdev,uint16_t bustype,uint16_t vendor,uint16_t product,uint16_t version) evdev_set_id() argument
425 evdev_set_phys(struct evdev_dev * evdev,const char * name) evdev_set_phys() argument
432 evdev_set_serial(struct evdev_dev * evdev,const char * serial) evdev_set_serial() argument
439 evdev_set_methods(struct evdev_dev * evdev,void * softc,const struct evdev_methods * methods) evdev_set_methods() argument
448 evdev_get_softc(struct evdev_dev * evdev) evdev_get_softc() argument
455 evdev_support_prop(struct evdev_dev * evdev,uint16_t prop) evdev_support_prop() argument
463 evdev_support_event(struct evdev_dev * evdev,uint16_t type) evdev_support_event() argument
471 evdev_support_key(struct evdev_dev * evdev,uint16_t code) evdev_support_key() argument
479 evdev_support_rel(struct evdev_dev * evdev,uint16_t code) evdev_support_rel() argument
487 evdev_support_abs(struct evdev_dev * evdev,uint16_t code,int32_t minimum,int32_t maximum,int32_t fuzz,int32_t flat,int32_t resolution) evdev_support_abs() argument
507 evdev_set_abs_bit(struct evdev_dev * evdev,uint16_t code) evdev_set_abs_bit() argument
517 evdev_support_msc(struct evdev_dev * evdev,uint16_t code) evdev_support_msc() argument
526 evdev_support_led(struct evdev_dev * evdev,uint16_t code) evdev_support_led() argument
534 evdev_support_snd(struct evdev_dev * evdev,uint16_t code) evdev_support_snd() argument
542 evdev_support_sw(struct evdev_dev * evdev,uint16_t code) evdev_support_sw() argument
550 evdev_event_supported(struct evdev_dev * evdev,uint16_t type) evdev_event_supported() argument
558 evdev_set_absinfo(struct evdev_dev * evdev,uint16_t axis,struct input_absinfo * absinfo) evdev_set_absinfo() argument
579 evdev_set_repeat_params(struct evdev_dev * evdev,uint16_t property,int value) evdev_set_repeat_params() argument
587 evdev_set_flag(struct evdev_dev * evdev,uint16_t flag) evdev_set_flag() argument
595 evdev_set_cdev_mode(struct evdev_dev * evdev,uid_t uid,gid_t gid,int mode) evdev_set_cdev_mode() argument
603 evdev_check_event(struct evdev_dev * evdev,uint16_t type,uint16_t code,int32_t value) evdev_check_event() argument
688 evdev_modify_event(struct evdev_dev * evdev,uint16_t type,uint16_t code,int32_t * value) evdev_modify_event() argument
749 evdev_sparse_event(struct evdev_dev * evdev,uint16_t type,uint16_t code,int32_t value) evdev_sparse_event() argument
858 evdev_propagate_event(struct evdev_dev * evdev,uint16_t type,uint16_t code,int32_t value) evdev_propagate_event() argument
894 evdev_send_event(struct evdev_dev * evdev,uint16_t type,uint16_t code,int32_t value) evdev_send_event() argument
918 evdev_restore_after_kdb(struct evdev_dev * evdev) evdev_restore_after_kdb() argument
938 evdev_push_event(struct evdev_dev * evdev,uint16_t type,uint16_t code,int32_t value) evdev_push_event() argument
981 evdev_inject_event(struct evdev_dev * evdev,uint16_t type,uint16_t code,int32_t value) evdev_inject_event() argument
1035 evdev_register_client(struct evdev_dev * evdev,struct evdev_client * client) evdev_register_client() argument
1055 evdev_dispose_client(struct evdev_dev * evdev,struct evdev_client * client) evdev_dispose_client() argument
1083 evdev_grab_client(struct evdev_dev * evdev,struct evdev_client * client) evdev_grab_client() argument
1097 evdev_release_client(struct evdev_dev * evdev,struct evdev_client * client) evdev_release_client() argument
1111 evdev_is_grabbed(struct evdev_dev * evdev) evdev_is_grabbed() argument
1127 struct evdev_dev *evdev = (struct evdev_dev *)arg; evdev_repeat_callout() local
1145 evdev_start_repeat(struct evdev_dev * evdev,uint16_t key) evdev_start_repeat() argument
1159 evdev_stop_repeat(struct evdev_dev * evdev) evdev_stop_repeat() argument
[all...]
H A Devdev_mt.c100 ffc_slot(struct evdev_dev *evdev, slotset_t slots) in ffc_slot() argument
102 return (ffs(~slots & ((2U << MAXIMAL_MT_SLOT(evdev)) - 1)) - 1); in ffc_slot()
106 evdev_mt_init(struct evdev_dev *evdev) in evdev_mt_init() argument
113 type_a = !bit_test(evdev->ev_abs_flags, ABS_MT_SLOT); in evdev_mt_init()
116 evdev_support_abs(evdev, in evdev_mt_init()
118 evdev_support_abs(evdev, in evdev_mt_init()
122 slots = MAXIMAL_MT_SLOT(evdev) + 1; in evdev_mt_init()
124 if (bit_test(evdev->ev_flags, EVDEV_FLAG_MT_TRACK)) { in evdev_mt_init()
130 evdev->ev_mt = mt; in evdev_mt_init()
133 if (bit_test(evdev->ev_flags, EVDEV_FLAG_MT_TRACK)) { in evdev_mt_init()
[all …]
H A Dcdev.c105 struct evdev_dev *evdev = dev->si_drv1; in evdev_open() local
110 if (evdev == NULL) in evdev_open()
114 buffer_size = evdev->ev_report_size * DEF_RING_REPORTS; in evdev_open()
125 client->ec_evdev = evdev; in evdev_open()
129 ret = EVDEV_LIST_LOCK_SIG(evdev); in evdev_open()
136 ret = evdev_register_client(evdev, client); in evdev_open()
137 EVDEV_LIST_UNLOCK(evdev); in evdev_open()
256 struct evdev_dev *evdev = dev->si_drv1; in evdev_write() local
274 if (client->ec_revoked || evdev == NULL) in evdev_write()
294 ret = evdev_inject_event(evdev, event.t32.type, in evdev_write()
[all …]
H A Devdev_private.h43 #include <dev/evdev/evdev.h>
44 #include <dev/evdev/input.h>
61 #define CURRENT_MT_SLOT(evdev) ((evdev)->ev_absinfo[ABS_MT_SLOT].value) argument
62 #define MAXIMAL_MT_SLOT(evdev) ((evdev)->ev_absinfo[ABS_MT_SLOT].maximum) argument
71 /* evdev clock IDs in Linux semantic */
82 * Internal evdev structures are protected with next locks:
84 * by incoming evdev event
175 EVDEV_LOCK(evdev) global() argument
176 EVDEV_UNLOCK(evdev) global() argument
177 EVDEV_LOCK_ASSERT(evdev) global() argument
181 EVDEV_ENTER(evdev) global() argument
187 EVDEV_EXIT(evdev) global() argument
192 EVDEV_LIST_LOCK(evdev) global() argument
198 EVDEV_LIST_UNLOCK(evdev) global() argument
204 EVDEV_LIST_LOCK_ASSERT(evdev) global() argument
211 EVDEV_LIST_LOCK_SIG(struct evdev_dev * evdev) EVDEV_LIST_LOCK_SIG() argument
[all...]
H A Devdev.h180 evdev_sync(struct evdev_dev *evdev) in evdev_sync() argument
183 return (evdev_push_event(evdev, EV_SYN, SYN_REPORT, 1)); in evdev_sync()
187 evdev_mt_sync(struct evdev_dev *evdev) in evdev_mt_sync() argument
190 return (evdev_push_event(evdev, EV_SYN, SYN_MT_REPORT, 1)); in evdev_mt_sync()
194 evdev_push_key(struct evdev_dev *evdev, uint16_t code, int32_t value) in evdev_push_key() argument
197 return (evdev_push_event(evdev, EV_KEY, code, value != 0)); in evdev_push_key()
201 evdev_push_rel(struct evdev_dev *evdev, uint16_t code, int32_t value) in evdev_push_rel() argument
204 return (evdev_push_event(evdev, EV_REL, code, value)); in evdev_push_rel()
208 evdev_push_abs(struct evdev_dev *evdev, uint16_t code, int32_t value) in evdev_push_abs() argument
211 return (evdev_push_event(evdev, EV_ABS, code, value)); in evdev_push_abs()
[all …]
H A Devdev_utils.c227 evdev_support_all_known_keys(struct evdev_dev *evdev) in evdev_support_all_known_keys() argument
233 evdev_support_key(evdev, evdev_at_set1_scancodes[i]); in evdev_support_all_known_keys()
283 evdev_push_mouse_btn(struct evdev_dev *evdev, int buttons) in evdev_push_mouse_btn() argument
288 evdev_push_key(evdev, evdev_mouse_button_codes[i], in evdev_push_mouse_btn()
293 evdev_push_leds(struct evdev_dev *evdev, int leds) in evdev_push_leds() argument
298 if (evdev == NULL) in evdev_push_leds()
302 evdev_push_led(evdev, evdev_led_codes[i], leds & (1 << i)); in evdev_push_leds()
306 evdev_push_repeats(struct evdev_dev *evdev, keyboard_t *kbd) in evdev_push_repeats() argument
309 if (evdev == NULL) in evdev_push_repeats()
312 evdev_push_event(evdev, EV_REP, REP_DELAY, kbd->kb_delay1); in evdev_push_repeats()
[all …]
/freebsd/sys/dev/hid/
H A Dhgame.c91 struct evdev_dev *evdev = HIDMAP_CB_GET_EVDEV(); in hgame_hat_switch_cb() local
96 evdev_support_event(evdev, EV_ABS); in hgame_hat_switch_cb()
97 evdev_support_abs(evdev, ABS_HAT0X, -1, 1, 0, 0, 0); in hgame_hat_switch_cb()
98 evdev_support_abs(evdev, ABS_HAT0Y, -1, 1, 0, 0, 0); in hgame_hat_switch_cb()
103 evdev_push_abs(evdev, ABS_HAT0X, hat_switch_map[idx].x); in hgame_hat_switch_cb()
104 evdev_push_abs(evdev, ABS_HAT0Y, hat_switch_map[idx].y); in hgame_hat_switch_cb()
122 struct evdev_dev *evdev = HIDMAP_CB_GET_EVDEV(); in hgame_dpad_cb() local
128 evdev_support_event(evdev, EV_ABS); in hgame_dpad_cb()
129 evdev_support_abs(evdev, ABS_HAT0X, -1, 1, 0, 0, 0); in hgame_dpad_cb()
130 evdev_support_abs(evdev, ABS_HAT0Y, -1, 1, 0, 0, 0); in hgame_dpad_cb()
[all …]
H A Dietp.c104 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()
[all …]
H A Dps4dshock.c809 struct evdev_dev *evdev = HIDMAP_CB_GET_EVDEV(); in ps4dshock_final_cb() local
812 evdev_support_prop(evdev, INPUT_PROP_DIRECT); in ps4dshock_final_cb()
813 evdev_set_cdev_mode(evdev, UID_ROOT, GID_GAMES, in ps4dshock_final_cb()
824 struct evdev_dev *evdev = HIDMAP_CB_GET_EVDEV(); in ps4dsacc_data_cb() local
833 evdev_support_abs(evdev, in ps4dsacc_data_cb()
846 evdev_push_abs(evdev, calib->code, in ps4dsacc_data_cb()
861 struct evdev_dev *evdev = HIDMAP_CB_GET_EVDEV(); in ps4dsacc_tstamp_cb() local
867 evdev_support_event(evdev, EV_MSC); in ps4dsacc_tstamp_cb()
868 evdev_support_msc(evdev, MSC_TIMESTAMP); in ps4dsacc_tstamp_cb()
876 evdev_push_msc(evdev, MSC_TIMESTAMP, sc->ev_tstamp); in ps4dsacc_tstamp_cb()
[all …]
H A Dhmt.c195 struct evdev_dev *evdev; member
251 hmt_ev_close(struct evdev_dev *evdev) in hmt_ev_close() argument
253 return (hid_intr_stop(evdev_get_softc(evdev))); in hmt_ev_close()
257 hmt_ev_open(struct evdev_dev *evdev) in hmt_ev_open() argument
259 return (hid_intr_start(evdev_get_softc(evdev))); in hmt_ev_open()
386 sc->evdev = evdev_alloc(); in hmt_attach()
387 evdev_set_name(sc->evdev, device_get_desc(dev)); in hmt_attach()
388 evdev_set_phys(sc->evdev, device_get_nameunit(dev)); in hmt_attach()
389 evdev_set_id(sc->evdev, hw->idBus, hw->idVendor, hw->idProduct, in hmt_attach()
391 evdev_set_serial(sc->evdev, hw->serial); in hmt_attach()
[all …]
H A Dhidmap.c117 hidmap_ev_close(struct evdev_dev *evdev) in hidmap_ev_close() argument
119 return (hid_intr_stop(evdev_get_softc(evdev))); in hidmap_ev_close()
123 hidmap_ev_open(struct evdev_dev *evdev) in hidmap_ev_open() argument
125 return (hid_intr_start(evdev_get_softc(evdev))); in hidmap_ev_open()
134 evdev_support_event(hm->evdev, EV_KEY); in hidmap_support_key()
146 evdev_support_key(hm->evdev, key); in hidmap_support_key()
156 evdev_push_key(hm->evdev, key, value); in hidmap_push_key()
171 evdev_push_key(hm->evdev, i, press); in hidmap_sync_keys()
264 evdev_push_event(hm->evdev, hi->evtype, in hidmap_intr()
334 evdev_sync(hm->evdev); in hidmap_intr()
[all …]
H A Dhpen.c114 struct evdev_dev *evdev = HIDMAP_CB_GET_EVDEV(); in hpen_battery_strength_cb() local
118 evdev_support_event(evdev, EV_PWR); in hpen_battery_strength_cb()
134 struct evdev_dev *evdev = HIDMAP_CB_GET_EVDEV(); in hpen_final_pen_cb() local
139 evdev_support_prop(evdev, INPUT_PROP_POINTER); in hpen_final_pen_cb()
141 evdev_support_prop(evdev, INPUT_PROP_DIRECT); in hpen_final_pen_cb()
258 MODULE_DEPEND(hpen, evdev, 1, 1, 1);
H A Dhcons.c234 struct evdev_dev *evdev = HIDMAP_CB_GET_EVDEV(); in hcons_rel_volume_cb() local
240 evdev_support_event(evdev, EV_KEY); in hcons_rel_volume_cb()
241 evdev_support_key(evdev, KEY_VOLUMEUP); in hcons_rel_volume_cb()
242 evdev_support_key(evdev, KEY_VOLUMEDOWN); in hcons_rel_volume_cb()
250 evdev_push_key(evdev, code, 1); in hcons_rel_volume_cb()
251 evdev_push_key(evdev, code, 0); in hcons_rel_volume_cb()
293 MODULE_DEPEND(hcons, evdev, 1, 1, 1);
H A Dhkbd.c994 struct evdev_dev *evdev; in hkbd_attach() local
1083 evdev = evdev_alloc(); in hkbd_attach()
1084 evdev_set_name(evdev, device_get_desc(dev)); in hkbd_attach()
1085 evdev_set_phys(evdev, device_get_nameunit(dev)); in hkbd_attach()
1086 evdev_set_id(evdev, hw->idBus, hw->idVendor, hw->idProduct, in hkbd_attach()
1088 evdev_set_serial(evdev, hw->serial); in hkbd_attach()
1089 evdev_set_methods(evdev, kbd, &hkbd_evdev_methods); in hkbd_attach()
1090 evdev_set_flag(evdev, EVDEV_FLAG_EXT_EPOCH); /* hidbus child */ in hkbd_attach()
1091 evdev_support_event(evdev, EV_SYN); in hkbd_attach()
1092 evdev_support_event(evdev, EV_KEY); in hkbd_attach()
[all …]
/freebsd/sys/dev/usb/input/
H A Duep.c99 struct evdev_dev *evdev; member
217 evdev_push_abs(sc->evdev, ABS_X, x); in uep_process_pkt()
218 evdev_push_abs(sc->evdev, ABS_Y, y); in uep_process_pkt()
220 evdev_push_key(sc->evdev, BTN_TOUCH, touch); in uep_process_pkt()
221 evdev_sync(sc->evdev); in uep_process_pkt()
370 sc->evdev = evdev_alloc(); in uep_attach()
371 evdev_set_name(sc->evdev, device_get_desc(dev)); in uep_attach()
372 evdev_set_phys(sc->evdev, device_get_nameunit(dev)); in uep_attach()
373 evdev_set_id(sc->evdev, BUS_USB, uaa->info.idVendor, in uep_attach()
375 evdev_set_serial(sc->evdev, usb_get_serial(uaa->device)); in uep_attach()
[all …]
H A Dwmt.c218 struct evdev_dev *evdev; member
405 sc->evdev = evdev_alloc(); in wmt_attach()
406 evdev_set_name(sc->evdev, device_get_desc(dev)); in wmt_attach()
407 evdev_set_phys(sc->evdev, device_get_nameunit(dev)); in wmt_attach()
408 evdev_set_id(sc->evdev, BUS_USB, uaa->info.idVendor, in wmt_attach()
410 evdev_set_serial(sc->evdev, usb_get_serial(uaa->device)); in wmt_attach()
411 evdev_set_methods(sc->evdev, sc, &wmt_evdev_methods); in wmt_attach()
412 evdev_set_flag(sc->evdev, EVDEV_FLAG_MT_STCOMPAT); in wmt_attach()
415 evdev_support_prop(sc->evdev, INPUT_PROP_DIRECT); in wmt_attach()
418 evdev_support_prop(sc->evdev, INPUT_PROP_POINTER); in wmt_attach()
[all …]
/freebsd/sys/dev/hyperv/input/
H A Dhv_kbd.c704 hvkbd_ev_event(struct evdev_dev *evdev, uint16_t type, uint16_t code, in hvkbd_ev_event() argument
707 keyboard_t *kbd = evdev_get_softc(evdev); in hvkbd_ev_event()
782 struct evdev_dev *evdev; in hv_kbd_drv_attach() local
801 evdev = evdev_alloc(); in hv_kbd_drv_attach()
802 evdev_set_name(evdev, "Hyper-V keyboard"); in hv_kbd_drv_attach()
803 evdev_set_phys(evdev, device_get_nameunit(dev)); in hv_kbd_drv_attach()
804 evdev_set_id(evdev, BUS_VIRTUAL, 0, 0, 0); in hv_kbd_drv_attach()
805 evdev_set_methods(evdev, kbd, &hvkbd_evdev_methods); in hv_kbd_drv_attach()
806 evdev_support_event(evdev, EV_SYN); in hv_kbd_drv_attach()
807 evdev_support_event(evdev, EV_KEY); in hv_kbd_drv_attach()
[all …]
/freebsd/sys/dev/cyapa/
H A Dcyapa.c162 struct evdev_dev *evdev; member
572 sc->evdev = evdev_alloc(); in cyapa_attach()
573 evdev_set_name(sc->evdev, device_get_desc(sc->dev)); in cyapa_attach()
574 evdev_set_phys(sc->evdev, device_get_nameunit(sc->dev)); in cyapa_attach()
575 evdev_set_id(sc->evdev, BUS_I2C, 0, 0, 1); in cyapa_attach()
576 evdev_set_flag(sc->evdev, EVDEV_FLAG_MT_STCOMPAT); in cyapa_attach()
577 evdev_set_flag(sc->evdev, EVDEV_FLAG_MT_AUTOREL); in cyapa_attach()
579 evdev_support_event(sc->evdev, EV_SYN); in cyapa_attach()
580 evdev_support_event(sc->evdev, EV_ABS); in cyapa_attach()
581 evdev_support_event(sc->evdev, EV_KEY); in cyapa_attach()
[all …]
/freebsd/sys/dev/acpi_support/
H A Dacpi_asus_wmi.c137 struct evdev_dev *evdev; member
421 MODULE_DEPEND(acpi_asus_wmi, evdev, 1, 1, 1);
618 sc->evdev = evdev_alloc(); in acpi_asus_wmi_attach()
619 evdev_set_name(sc->evdev, device_get_desc(dev)); in acpi_asus_wmi_attach()
620 evdev_set_phys(sc->evdev, device_get_nameunit(dev)); in acpi_asus_wmi_attach()
621 evdev_set_id(sc->evdev, BUS_HOST, 0, 0, 1); in acpi_asus_wmi_attach()
622 evdev_support_event(sc->evdev, EV_SYN); in acpi_asus_wmi_attach()
623 evdev_support_event(sc->evdev, EV_KEY); in acpi_asus_wmi_attach()
626 evdev_support_key(sc->evdev, in acpi_asus_wmi_attach()
630 if (evdev_register(sc->evdev) != 0) { in acpi_asus_wmi_attach()
[all …]
H A Dacpi_ibm.c60 #include <dev/evdev/input.h>
61 #include <dev/evdev/evdev.h>
209 struct evdev_dev *evdev;
377 MODULE_DEPEND(acpi_ibm, evdev, 1, 1, 1);
499 sc->evdev = evdev_alloc(); in acpi_ibm_attach()
500 evdev_set_name(sc->evdev, device_get_desc(dev)); in acpi_ibm_attach()
501 evdev_set_phys(sc->evdev, device_get_nameunit(dev)); in acpi_ibm_attach()
502 evdev_set_id(sc->evdev, BUS_HOST, 0, 0, 1); in acpi_ibm_attach()
503 evdev_support_event(sc->evdev, EV_SY in acpi_ibm_attach()
208 struct evdev_dev *evdev; global() member
[all...]
/freebsd/sys/modules/evdev/
H A DMakefile1 .PATH: ${SRCTOP}/sys/dev/evdev
3 KMOD= evdev
4 SRCS= cdev.c evdev.c evdev_mt.c evdev_utils.c
/freebsd/sys/dev/kbdmux/
H A Dkbdmux.c392 struct evdev_dev *evdev; in kbdmux_init() local
457 evdev = evdev_alloc(); in kbdmux_init()
458 evdev_set_name(evdev, "System keyboard multiplexer"); in kbdmux_init()
460 evdev_set_phys(evdev, phys_loc); in kbdmux_init()
461 evdev_set_id(evdev, BUS_VIRTUAL, 0, 0, 0); in kbdmux_init()
462 evdev_set_methods(evdev, kbd, &kbdmux_evdev_methods); in kbdmux_init()
463 evdev_support_event(evdev, EV_SYN); in kbdmux_init()
464 evdev_support_event(evdev, EV_KEY); in kbdmux_init()
465 evdev_support_event(evdev, EV_LED); in kbdmux_init()
466 evdev_support_event(evdev, EV_REP); in kbdmux_init()
[all …]
/freebsd/sys/dev/acpica/
H A Dacpi_video.c70 struct evdev_dev *evdev; member
82 struct evdev_dev *evdev; member
191 MODULE_DEPEND(acpi_video, evdev, 1, 1, 1);
226 acpi_video_push_evdev_event(struct evdev_dev *evdev, UINT32 notify) in acpi_video_push_evdev_event() argument
237 evdev_push_key(evdev, key, 1); in acpi_video_push_evdev_event()
238 evdev_sync(evdev); in acpi_video_push_evdev_event()
239 evdev_push_key(evdev, key, 0); in acpi_video_push_evdev_event()
240 evdev_sync(evdev); in acpi_video_push_evdev_event()
315 sc->evdev = evdev_alloc(); in acpi_video_attach()
316 evdev_set_name(sc->evdev, device_get_desc(dev)); in acpi_video_attach()
[all …]
/freebsd/sys/dev/atkbdc/
H A Datkbd.c383 struct evdev_dev *evdev; in atkbd_init() local
475 evdev = evdev_alloc(); in atkbd_init()
476 evdev_set_name(evdev, "AT keyboard"); in atkbd_init()
477 evdev_set_phys(evdev, phys_loc); in atkbd_init()
478 evdev_set_id(evdev, BUS_I8042, PS2_KEYBOARD_VENDOR, in atkbd_init()
480 evdev_set_methods(evdev, kbd, &atkbd_evdev_methods); in atkbd_init()
481 evdev_support_event(evdev, EV_SYN); in atkbd_init()
482 evdev_support_event(evdev, EV_KEY); in atkbd_init()
483 evdev_support_event(evdev, EV_LED); in atkbd_init()
484 evdev_support_event(evdev, EV_REP); in atkbd_init()
[all …]
/freebsd/sys/arm/broadcom/bcm2835/
H A Dbcm2835_ft5406.c173 ft5406ts_ev_close(struct evdev_dev *evdev) in ft5406ts_ev_close() argument
175 struct ft5406ts_softc *sc = evdev_get_softc(evdev); in ft5406ts_ev_close()
185 ft5406ts_ev_open(struct evdev_dev *evdev) in ft5406ts_ev_open() argument
187 struct ft5406ts_softc *sc = evdev_get_softc(evdev); in ft5406ts_ev_open()
332 MODULE_DEPEND(ft5406ts, evdev, 1, 1, 1);

123