Home
last modified time | relevance | path

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

12

/linux/drivers/input/
H A Devdev.c28 struct evdev { struct
47 struct evdev *evdev; argument
145 ktime_t *ev_time = input_get_timestamp(client->evdev->handle.dev); in __evdev_queue_syn_dropped()
294 struct evdev *evdev = handle->private; in evdev_events() local
300 client = rcu_dereference(evdev->grab); in evdev_events()
305 list_for_each_entry_rcu(client, &evdev->client_list, node) in evdev_events()
322 struct evdev *evdev = container_of(dev, struct evdev, dev); in evdev_free() local
324 input_put_device(evdev->handle.dev); in evdev_free()
325 kfree(evdev); in evdev_free()
332 static int evdev_grab(struct evdev *evdev, struct evdev_client *client) in evdev_grab() argument
[all …]
H A DMakefile20 obj-$(CONFIG_INPUT_EVDEV) += evdev.o
H A DKconfig153 module will be called evdev.
/linux/tools/testing/selftests/hid/tests/
H A Dtest_apple_keyboard.py167 evdev = uhdev.get_evdev()
176 assert evdev.value[libevdev.EV_KEY.KEY_ALL_APPLICATIONS] == 1
177 assert evdev.value[libevdev.EV_KEY.KEY_FN] == 0
185 assert evdev.value[libevdev.EV_KEY.KEY_ALL_APPLICATIONS] == 0
190 evdev = uhdev.get_evdev()
201 assert evdev.value[libevdev.EV_KEY.KEY_F4] == 1
209 assert evdev.value[libevdev.EV_KEY.KEY_F4] == 0
210 assert evdev.value[libevdev.EV_KEY.KEY_FN] == 1
222 evdev = uhdev.get_evdev()
233 assert evdev.value[libevdev.EV_KEY.KEY_F4] == 1
[all …]
H A Dtest_sony.py41 evdev = uhdev.get_evdev("Accelerometer")
49 value = evdev.value[libevdev.EV_ABS.ABS_X]
60 value = evdev.value[libevdev.EV_ABS.ABS_Y]
69 value = evdev.value[libevdev.EV_ABS.ABS_Z]
74 evdev = uhdev.get_evdev("Accelerometer")
82 value = evdev.value[libevdev.EV_ABS.ABS_RX]
93 value = evdev.value[libevdev.EV_ABS.ABS_RY]
102 value = evdev.value[libevdev.EV_ABS.ABS_RZ]
141 evdev = uhdev.get_evdev("Touch Pad")
149 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0
[all …]
H A Dtest_multitouch.py503 def match_evdev_rule(self, application, evdev): argument
508 absinfo = evdev.absinfo[libevdev.EV_ABS.ABS_MT_POSITION_X]
540 evdev = uhdev.get_evdev()
547 assert evdev.num_slots == uhdev.max_contacts
550 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
551 assert evdev.slots[1][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
553 assert evdev.slots[2][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
588 evdev = uhdev.get_evdev()
598 assert evdev.slots[slot][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0
599 assert evdev.slots[slot][libevdev.EV_ABS.ABS_MT_POSITION_X] == 50
[all …]
H A Dtest_wacom_generic.py176 def match_evdev_rule(self, application, evdev): argument
187 return evdev.name.endswith(application)
530 evdev = uhdev.get_evdev()
534 assert evdev.name == expected_name
825 evdev = self.uhdev.get_evdev()
826 info = evdev.absinfo[libevdev.EV_ABS.ABS_WHEEL]
839 evdev = uhdev.get_evdev()
841 print(evdev.name)
897 def assert_contact(self, uhdev, evdev, contact_ids, t=0): argument
914 assert evdev.slots[slot_num][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == tracking_id
[all …]
H A Dtest_gamepad.py34 evdev = uhdev.get_evdev()
46 assert evdev.value[key] == 1
54 assert evdev.value[key] == 0
66 evdev = uhdev.get_evdev()
84 assert evdev.value[key1] == 1
85 assert evdev.value[key2] == 1
93 assert evdev.value[key1] == 0
94 assert evdev.value[key2] == 1
102 assert evdev.value[key1] == 0
103 assert evdev.value[key2] == 0
[all …]
H A Dbase_device.py188 def is_a_match(self: "EvdevMatch", evdev: libevdev.Device) -> bool:
190 if not evdev.has(m):
193 if evdev.has(m):
196 if not evdev.has_property(p):
199 if evdev.has_property(p):
235 def evdev(self: "EvdevDevice") -> Path: member in EvdevDevice
253 self.event_node = open(self.evdev, "rb")
345 def match_evdev_rule(self, application, evdev): argument
379 evdev = self.get_evdev(application)
380 if evdev is not None:
[all …]
H A Dtest_keyboard.py266 evdev = uhdev.get_evdev()
275 assert evdev.value[libevdev.EV_KEY.KEY_A] == 1
283 assert evdev.value[libevdev.EV_KEY.KEY_A] == 0
287 evdev = uhdev.get_evdev()
297 assert evdev.value[libevdev.EV_KEY.KEY_A] == 1
306 assert evdev.value[libevdev.EV_KEY.KEY_A] == 0
307 assert evdev.value[libevdev.EV_KEY.KEY_Q] == 0
315 assert evdev.value[libevdev.EV_KEY.KEY_C] == 1
324 assert evdev.value[libevdev.EV_KEY.KEY_C] == 1
325 assert evdev.value[libevdev.EV_KEY.KEY_SPACE] == 1
[all …]
H A Dtest_mouse.py544 evdev = uhdev.get_evdev()
552 assert evdev.value[libevdev.EV_KEY.BTN_RIGHT] == 1
559 assert evdev.value[libevdev.EV_KEY.BTN_RIGHT] == 0
566 assert evdev.value[libevdev.EV_KEY.BTN_MIDDLE] == 1
573 assert evdev.value[libevdev.EV_KEY.BTN_MIDDLE] == 0
580 assert evdev.value[libevdev.EV_KEY.BTN_LEFT] == 1
587 assert evdev.value[libevdev.EV_KEY.BTN_LEFT] == 0
597 assert evdev.value[libevdev.EV_KEY.BTN_RIGHT] == 1
598 assert evdev.value[libevdev.EV_KEY.BTN_LEFT] == 1
605 assert evdev.value[libevdev.EV_KEY.BTN_RIGHT] == 1
[all …]
H A Dbase_gamepad.py20 def __init__(self, hid, evdev=None): argument
23 if evdev is None:
24 evdev = f"ABS_{hid.upper()}"
26 self.evdev = libevdev.evbit("EV_ABS", evdev)
H A Dtest_tablet.py66 def from_evdev(cls, evdev, test_button) -> "PenState": argument
67 touch = BtnTouch(evdev.value[libevdev.EV_KEY.BTN_TOUCH])
71 evdev.value[libevdev.EV_KEY.BTN_TOOL_RUBBER]
72 and not evdev.value[libevdev.EV_KEY.BTN_TOOL_PEN]
76 evdev.value[libevdev.EV_KEY.BTN_TOOL_PEN]
77 and not evdev.value[libevdev.EV_KEY.BTN_TOOL_RUBBER]
81 evdev.value[libevdev.EV_KEY.BTN_TOOL_PEN]
82 or evdev.value[libevdev.EV_KEY.BTN_TOOL_RUBBER]
88 button = bool(evdev.value[test_button.value])
488 def __assert_axis(self, evdev, axis, value): argument
[all …]
H A Dbase.py302 evdev = uhdev.get_evdev()
303 assert uhdev.name in evdev.name
/linux/drivers/clocksource/
H A Dtimer-riscv.c143 struct clock_event_device *evdev = this_cpu_ptr(&riscv_clock_event); in riscv_timer_interrupt() local
146 evdev->event_handler(evdev); in riscv_timer_interrupt()
H A Dnomadik-mtu.c177 struct clock_event_device *evdev = dev_id; in nmdk_timer_interrupt() local
180 evdev->event_handler(evdev); in nmdk_timer_interrupt()
/linux/Documentation/userspace-api/media/rc/
H A Drc-intro.rst14 A Remote Controller interface is mapped as a normal evdev/input
/linux/Documentation/hid/
H A Dhidintro.rst331 the ``EV_KEY/BTN_LEFT`` evdev event and relative X movement translates
332 into the ``EV_REL/REL_X`` evdev event".
355 evdev:
393 - evdev:
397 - evdev:
401 - evdev:
406 - evdev:
/linux/Documentation/input/
H A Dinput.rst84 evdev subsection
87 ``evdev`` is the generic input event interface. It passes the events
107 evdev nodes are created with minors starting with 256.
H A Dff.rst27 1. have your kernel configured with evdev and a driver that supports your
29 2. make sure evdev module is loaded and /dev/input/event* device files are
H A Devent-codes.rst95 sent in the evdev event stream.
115 - Used to indicate buffer overrun in the evdev client's event queue.
158 BTN_TOUCH must be the first evdev code emitted in a synchronization frame.
H A Dinput-programming.rst290 The id and name fields can be passed to userland via the evdev interface.
301 EVIOCGKEYCODE and EVIOCSKEYCODE ioctls on corresponding evdev interface.
H A Duinput.rst27 libevdev is a wrapper library for evdev devices that provides interfaces to
/linux/Documentation/usb/
H A Dmtouchusb.rst61 Perhaps at some point an abstract function will be placed into evdev so
/linux/Documentation/driver-api/media/
H A Drc-core.rst16 remote controller core is implemented on the top of the linux input/evdev

12