| /freebsd-13.1/sys/dev/evdev/ |
| H A D | evdev.c | 107 if (evdev != NULL && evdev->ev_cdev != NULL && in evdev_free() 249 evdev->ev_key_flags, sizeof(evdev->ev_key_flags), in evdev_sysctl_create() 254 evdev->ev_rel_flags, sizeof(evdev->ev_rel_flags), "", in evdev_sysctl_create() 259 evdev->ev_abs_flags, sizeof(evdev->ev_abs_flags), "", in evdev_sysctl_create() 264 evdev->ev_msc_flags, sizeof(evdev->ev_msc_flags), "", in evdev_sysctl_create() 279 evdev->ev_sw_flags, sizeof(evdev->ev_sw_flags), "", in evdev_sysctl_create() 289 evdev->ev_shortname, evdev->ev_name, evdev->ev_serial); in evdev_register_common() 345 evdev->ev_state_lock = &evdev->ev_mtx; in evdev_register() 370 evdev->ev_shortname, evdev->ev_name); in evdev_unregister() 1034 ret = evdev->ev_methods->ev_open(evdev); in evdev_register_client() [all …]
|
| H A D | evdev_mt.c | 131 evdev->ev_mt = mt; in evdev_mt_init() 166 evdev->ev_mt->frame = 0; in evdev_mt_sync_frame() 206 EVDEV_ENTER(evdev); in evdev_mt_push_slot() 219 EVDEV_EXIT(evdev); in evdev_mt_push_slot() 396 EVDEV_ENTER(evdev); in evdev_mt_push_frame() 398 EVDEV_EXIT(evdev); in evdev_mt_push_frame() 596 evdev_support_nfingers(evdev, MAXIMAL_MT_SLOT(evdev) + 1); in evdev_support_mt_compat() 657 EVDEV_ENTER(evdev); in evdev_push_mt_compat() 659 EVDEV_EXIT(evdev); in evdev_push_mt_compat() 678 EVDEV_ENTER(evdev); in evdev_mt_push_autorel() [all …]
|
| H A D | cdev.c | 111 if (evdev == NULL) in evdev_open() 417 EVDEV_LOCK(evdev); in evdev_ioctl() 468 evdev->ev_id.bustype, evdev->ev_id.vendor, in evdev_ioctl() 477 memcpy(data, evdev->ev_rep, sizeof(evdev->ev_rep)); in evdev_ioctl() 499 evdev->ev_methods->ev_get_keycode(evdev, ke); in evdev_ioctl() 512 evdev->ev_methods->ev_set_keycode(evdev, ke); in evdev_ioctl() 532 EVDEV_LOCK(evdev); in evdev_ioctl() 544 EVDEV_LOCK(evdev); in evdev_ioctl() 629 EVDEV_LOCK(evdev); in evdev_ioctl() 638 EVDEV_LOCK(evdev); in evdev_ioctl() [all …]
|
| H A D | evdev_private.h | 63 #define CURRENT_MT_SLOT(evdev) ((evdev)->ev_absinfo[ABS_MT_SLOT].value) argument 64 #define MAXIMAL_MT_SLOT(evdev) ((evdev)->ev_absinfo[ABS_MT_SLOT].maximum) argument 174 #define EVDEV_LOCK(evdev) mtx_lock((evdev)->ev_state_lock) argument 175 #define EVDEV_UNLOCK(evdev) mtx_unlock((evdev)->ev_state_lock) argument 182 EVDEV_LOCK(evdev); \ 184 EVDEV_LOCK_ASSERT(evdev); \ 188 EVDEV_UNLOCK(evdev); \ 193 EVDEV_LOCK(evdev); \ 199 EVDEV_UNLOCK(evdev); \ 205 EVDEV_LOCK_ASSERT(evdev); \ [all …]
|
| H A D | evdev.h | 168 evdev_mt_id_to_slot(struct evdev_dev *evdev, int32_t id) in evdev_mt_id_to_slot() argument 170 return (evdev_get_mt_slot_by_tracking_id(evdev, id)); in evdev_mt_id_to_slot() 185 evdev_sync(struct evdev_dev *evdev) in evdev_sync() argument 188 return (evdev_push_event(evdev, EV_SYN, SYN_REPORT, 1)); in evdev_sync() 192 evdev_mt_sync(struct evdev_dev *evdev) in evdev_mt_sync() argument 195 return (evdev_push_event(evdev, EV_SYN, SYN_MT_REPORT, 1)); in evdev_mt_sync() 209 return (evdev_push_event(evdev, EV_REL, code, value)); in evdev_push_rel() 216 return (evdev_push_event(evdev, EV_ABS, code, value)); in evdev_push_abs() 223 return (evdev_push_event(evdev, EV_MSC, code, value)); in evdev_push_msc() 237 return (evdev_push_event(evdev, EV_SND, code, value)); in evdev_push_snd() [all …]
|
| H A D | evdev_utils.c | 224 evdev_support_all_known_keys(struct evdev_dev *evdev) in evdev_support_all_known_keys() argument 230 evdev_support_key(evdev, evdev_at_set1_scancodes[i]); in evdev_support_all_known_keys() 285 evdev_push_key(evdev, evdev_mouse_button_codes[i], in evdev_push_mouse_btn() 290 evdev_push_leds(struct evdev_dev *evdev, int leds) in evdev_push_leds() argument 295 if (evdev == NULL) in evdev_push_leds() 306 if (evdev == NULL) in evdev_push_repeats() 319 evdev_support_key(evdev, evdev_nfinger_codes[i]); in evdev_support_nfingers() 327 EVDEV_LOCK_ASSERT(evdev); in evdev_send_nfingers() 340 EVDEV_ENTER(evdev); in evdev_push_nfingers() 341 evdev_send_nfingers(evdev, nfingers); in evdev_push_nfingers() [all …]
|
| /freebsd-13.1/sys/dev/hid/ |
| H A D | hgame.c | 91 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() 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() 173 struct evdev_dev *evdev = HIDMAP_CB_GET_EVDEV(); in hgame_final_cb() local 176 evdev_support_prop(evdev, INPUT_PROP_DIRECT); in hgame_final_cb() [all …]
|
| H A D | ps4dshock.c | 814 evdev_support_abs(evdev, in ps4dsacc_data_cb() 827 evdev_push_abs(evdev, calib->code, in ps4dsacc_data_cb() 848 evdev_support_event(evdev, EV_MSC); in ps4dsacc_tstamp_cb() 873 evdev_support_event(evdev, EV_ABS); in ps4dsacc_final_cb() 973 evdev_support_event(evdev, EV_SYN); in ps4dsmtp_final_cb() 974 evdev_support_event(evdev, EV_KEY); in ps4dsmtp_final_cb() 975 evdev_support_event(evdev, EV_ABS); in ps4dsmtp_final_cb() 977 evdev_support_event(evdev, EV_MSC); in ps4dsmtp_final_cb() 980 evdev_support_key(evdev, BTN_LEFT); in ps4dsmtp_final_cb() 994 evdev_push_key(evdev, BTN_LEFT, in ps4dsmtp_final_cb() [all …]
|
| H A D | hmt.c | 197 struct evdev_dev *evdev; member 253 hmt_ev_close(struct evdev_dev *evdev) in hmt_ev_close() argument 259 hmt_ev_open(struct evdev_dev *evdev) in hmt_ev_open() argument 388 sc->evdev = evdev_alloc(); in hmt_attach() 431 evdev_support_abs(sc->evdev, in hmt_attach() 439 err = evdev_register(sc->evdev); in hmt_attach() 470 evdev_free(sc->evdev); in hmt_detach() 503 evdev_sync(sc->evdev); in hmt_intr() 643 evdev_push_key(sc->evdev, BTN_LEFT, in hmt_intr() 652 evdev_sync(sc->evdev); in hmt_intr() [all …]
|
| H A D | hidmap.c | 119 hidmap_ev_close(struct evdev_dev *evdev) in hidmap_ev_close() argument 125 hidmap_ev_open(struct evdev_dev *evdev) in hidmap_ev_open() argument 148 evdev_support_key(hm->evdev, key); in hidmap_support_key() 158 evdev_push_key(hm->evdev, key, value); in hidmap_push_key() 336 evdev_sync(hm->evdev); in hidmap_intr() 582 evdev_support_rel(hm->evdev, in hidmap_parse_hid_item() 587 evdev_support_abs(hm->evdev, in hidmap_parse_hid_item() 597 evdev_support_sw(hm->evdev, in hidmap_parse_hid_item() 777 hm->evdev = evdev_alloc(); in hidmap_attach() 795 error = evdev_register(hm->evdev); in hidmap_attach() [all …]
|
| H A D | hpen.c | 116 struct evdev_dev *evdev = HIDMAP_CB_GET_EVDEV(); in hpen_battery_strenght_cb() local 121 evdev_support_event(evdev, EV_PWR); in hpen_battery_strenght_cb() 138 struct evdev_dev *evdev = HIDMAP_CB_GET_EVDEV(); in hpen_final_pen_cb() local 143 evdev_support_prop(evdev, INPUT_PROP_POINTER); in hpen_final_pen_cb() 145 evdev_support_prop(evdev, INPUT_PROP_DIRECT); in hpen_final_pen_cb() 263 MODULE_DEPEND(hpen, evdev, 1, 1, 1);
|
| H A D | hcons.c | 236 struct evdev_dev *evdev = HIDMAP_CB_GET_EVDEV(); in hcons_rel_volume_cb() local 242 evdev_support_event(evdev, EV_KEY); in hcons_rel_volume_cb() 243 evdev_support_key(evdev, KEY_VOLUMEUP); in hcons_rel_volume_cb() 244 evdev_support_key(evdev, KEY_VOLUMEDOWN); in hcons_rel_volume_cb() 252 evdev_push_key(evdev, code, 1); in hcons_rel_volume_cb() 253 evdev_push_key(evdev, code, 0); in hcons_rel_volume_cb() 296 MODULE_DEPEND(hcons, evdev, 1, 1, 1);
|
| H A D | hkbd.c | 877 struct evdev_dev *evdev; in hkbd_attach() local 966 evdev = evdev_alloc(); in hkbd_attach() 971 evdev_set_serial(evdev, hw->serial); 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() 990 if (evdev_register(evdev)) in hkbd_attach() 991 evdev_free(evdev); in hkbd_attach() 993 sc->sc_evdev = evdev; in hkbd_attach() [all …]
|
| H A D | hms.c | 163 struct evdev_dev *evdev = HIDMAP_CB_GET_EVDEV(); in hms_final_cb() local 168 evdev_support_prop(evdev, INPUT_PROP_DIRECT); in hms_final_cb() 170 evdev_support_prop(evdev, INPUT_PROP_POINTER); in hms_final_cb() 335 MODULE_DEPEND(hms, evdev, 1, 1, 1);
|
| /freebsd-13.1/sys/dev/usb/input/ |
| H A D | uep.c | 101 struct evdev_dev *evdev; member 219 evdev_push_abs(sc->evdev, ABS_X, x); in uep_process_pkt() 220 evdev_push_abs(sc->evdev, ABS_Y, y); in uep_process_pkt() 223 evdev_sync(sc->evdev); in uep_process_pkt() 372 sc->evdev = evdev_alloc(); in uep_attach() 380 evdev_support_event(sc->evdev, EV_SYN); in uep_attach() 381 evdev_support_event(sc->evdev, EV_ABS); in uep_attach() 419 evdev_free(sc->evdev); in uep_detach() 434 uep_ev_close(struct evdev_dev *evdev) in uep_ev_close() argument 445 uep_ev_open(struct evdev_dev *evdev) in uep_ev_open() argument [all …]
|
| H A D | wmt.c | 221 struct evdev_dev *evdev; member 418 sc->evdev = evdev_alloc(); in wmt_attach() 456 evdev_support_abs(sc->evdev, in wmt_attach() 496 evdev_free(sc->evdev); in wmt_detach() 630 evdev_push_key(sc->evdev, BTN_LEFT, in wmt_process_report() 639 evdev_sync(sc->evdev); in wmt_process_report() 724 wmt_ev_close(struct evdev_dev *evdev) in wmt_ev_close() argument 728 wmt_ev_close_11(evdev, sc); in wmt_ev_close() 734 wmt_ev_open(struct evdev_dev *evdev) in wmt_ev_open() argument 738 return (wmt_ev_open_11(evdev, sc)); in wmt_ev_open() [all …]
|
| H A D | ukbd.c | 1084 struct evdev_dev *evdev; in ukbd_attach() local 1202 evdev = evdev_alloc(); in ukbd_attach() 1209 evdev_support_event(evdev, EV_SYN); in ukbd_attach() 1210 evdev_support_event(evdev, EV_KEY); in ukbd_attach() 1213 evdev_support_event(evdev, EV_LED); in ukbd_attach() 1214 evdev_support_event(evdev, EV_REP); in ukbd_attach() 1219 evdev_support_led(evdev, LED_NUML); in ukbd_attach() 1221 evdev_support_led(evdev, LED_CAPSL); in ukbd_attach() 1226 evdev_free(evdev); in ukbd_attach() 1228 sc->sc_evdev = evdev; in ukbd_attach() [all …]
|
| /freebsd-13.1/sys/dev/cyapa/ |
| H A D | cyapa.c | 164 struct evdev_dev *evdev; member 576 sc->evdev = evdev_alloc(); in cyapa_attach() 583 evdev_support_event(sc->evdev, EV_SYN); in cyapa_attach() 584 evdev_support_event(sc->evdev, EV_ABS); in cyapa_attach() 605 if (evdev_register(sc->evdev) != 0) { in cyapa_attach() 614 evdev_free(sc->evdev); in cyapa_attach() 649 evdev_free(sc->evdev); in cyapa_detach() 1381 sc->evdev, regs->touch[i].id); in cyapa_raw_input() 1399 evdev_push_key(sc->evdev, BTN_LEFT, in cyapa_raw_input() 1407 evdev_sync(sc->evdev); in cyapa_raw_input() [all …]
|
| /freebsd-13.1/sys/modules/evdev/ |
| H A D | Makefile | 3 .PATH: ${SRCTOP}/sys/dev/evdev 5 KMOD= evdev 6 SRCS= cdev.c evdev.c evdev_mt.c evdev_utils.c
|
| /freebsd-13.1/sys/dev/kbdmux/ |
| H A D | kbdmux.c | 393 struct evdev_dev *evdev; in kbdmux_init() local 458 evdev = evdev_alloc(); in kbdmux_init() 461 evdev_set_phys(evdev, phys_loc); in kbdmux_init() 464 evdev_support_event(evdev, EV_SYN); in kbdmux_init() 465 evdev_support_event(evdev, EV_KEY); in kbdmux_init() 466 evdev_support_event(evdev, EV_LED); in kbdmux_init() 467 evdev_support_event(evdev, EV_REP); in kbdmux_init() 468 evdev_support_all_known_keys(evdev); in kbdmux_init() 469 evdev_support_led(evdev, LED_NUML); in kbdmux_init() 474 evdev_free(evdev); in kbdmux_init() [all …]
|
| /freebsd-13.1/sys/dev/acpica/ |
| H A D | acpi_video.c | 72 struct evdev_dev *evdev; member 84 struct evdev_dev *evdev; member 242 evdev_push_key(evdev, key, 1); in acpi_video_push_evdev_event() 243 evdev_sync(evdev); in acpi_video_push_evdev_event() 244 evdev_push_key(evdev, key, 0); in acpi_video_push_evdev_event() 245 evdev_sync(evdev); in acpi_video_push_evdev_event() 320 sc->evdev = evdev_alloc(); in acpi_video_attach() 324 evdev_support_event(sc->evdev, EV_SYN); in acpi_video_attach() 329 if (evdev_register(sc->evdev) != 0) in acpi_video_attach() 387 evdev_free(sc->evdev); in acpi_video_detach() [all …]
|
| /freebsd-13.1/sys/dev/atkbdc/ |
| H A D | atkbd.c | 385 struct evdev_dev *evdev; in atkbd_init() local 477 evdev = evdev_alloc(); in atkbd_init() 479 evdev_set_phys(evdev, phys_loc); in atkbd_init() 483 evdev_support_event(evdev, EV_SYN); in atkbd_init() 484 evdev_support_event(evdev, EV_KEY); in atkbd_init() 485 evdev_support_event(evdev, EV_LED); in atkbd_init() 486 evdev_support_event(evdev, EV_REP); in atkbd_init() 487 evdev_support_all_known_keys(evdev); in atkbd_init() 488 evdev_support_led(evdev, LED_NUML); in atkbd_init() 493 evdev_free(evdev); in atkbd_init() [all …]
|
| /freebsd-13.1/tools/kerneldoc/subsys/ |
| H A D | Doxyfile-dev_evdev | 8 PROJECT_NAME = "FreeBSD kernel evdev device code" 14 INPUT = $(DOXYGEN_SRC_PATH)/dev/evdev/ \
|
| /freebsd-13.1/sys/arm/broadcom/bcm2835/ |
| H A D | bcm2835_ft5406.c | 176 ft5406ts_ev_close(struct evdev_dev *evdev) in ft5406ts_ev_close() argument 178 struct ft5406ts_softc *sc = evdev_get_softc(evdev); in ft5406ts_ev_close() 188 ft5406ts_ev_open(struct evdev_dev *evdev) in ft5406ts_ev_open() argument 190 struct ft5406ts_softc *sc = evdev_get_softc(evdev); in ft5406ts_ev_open() 336 MODULE_DEPEND(ft5406ts, evdev, 1, 1, 1);
|
| /freebsd-13.1/sys/modules/uinput/ |
| H A D | Makefile | 3 .PATH: ${SRCTOP}/sys/dev/evdev
|