Home
last modified time | relevance | path

Searched refs:driver_input_lock (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/include/linux/
Dhid.h564 struct semaphore driver_input_lock; /* protects the current driver */ member
930 up(&hid->driver_input_lock); in hid_device_io_start()
950 down(&hid->driver_input_lock); in hid_device_io_stop()
/Linux-v5.4/drivers/hid/
Dhid-core.c1748 if (down_trylock(&hid->driver_input_lock)) in hid_input_report()
1784 up(&hid->driver_input_lock); in hid_input_report()
2176 if (down_interruptible(&hdev->driver_input_lock)) { in hid_device_probe()
2225 up(&hdev->driver_input_lock); in hid_device_probe()
2236 if (down_interruptible(&hdev->driver_input_lock)) { in hid_device_remove()
2253 up(&hdev->driver_input_lock); in hid_device_remove()
2406 sema_init(&hdev->driver_input_lock, 1); in hid_allocate_device()
Dhid-debug.c1051 if (down_interruptible(&hdev->driver_input_lock)) in hid_debug_rdesc_show()
1058 up(&hdev->driver_input_lock); in hid_debug_rdesc_show()