Lines Matching +full:auto +full:- +full:sleep +full:- +full:disabled
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 1999-2002 Vojtech Pavlik
16 * In-kernel definitions.
27 * struct input_value - input value representation
46 * struct input_dev - represents an input device
73 * not sleep
104 * by @event_lock and must not sleep
116 * to make sure that dev->open() is only called when the first
117 * user opens device and dev->close() is called when the very
120 * causes input_open_device*() fail with -ENODEV.
123 * accessing the list dev->mutex must be held
271 * struct input_handler - implements one of interfaces for input devices
272 * @private: driver-specific data
274 * interrupts disabled and dev->event_lock spinlock held and so
275 * it may not sleep
277 * input core with interrupts disabled and dev->event_lock
278 * spinlock held and so it may not sleep. The method must return
283 * to perform fine-grained matching between device and handler
335 * struct input_handle - links input device with an input handler
336 * @private: handler-specific data
345 * This method is being called by the input core with interrupts disabled
346 * and dev->event_lock spinlock held and so it may not sleep.
374 return dev ? to_input_dev(get_device(&dev->dev)) : NULL; in input_get_device()
380 put_device(&dev->dev); in input_put_device()
385 return dev_get_drvdata(&dev->dev); in input_get_drvdata()
390 dev_set_drvdata(&dev->dev, data); in input_set_drvdata()
470 * input_set_events_per_packet - tell handlers about the driver event rate
481 dev->hint_events_per_packet = n_events; in input_set_events_per_packet()
494 return dev->absinfo ? dev->absinfo[axis]._item : 0; \
501 if (dev->absinfo) \
502 dev->absinfo[axis]._item = val; \
529 * struct ff_device - force-feedback part of an input device
534 * @set_autocenter: Called to auto-center device
537 * @private: driver-specific data, will be freed automatically
539 * device (not emulated like ones in input_dev->ffbit)
546 * Every force-feedback device must implement upload() and playback()
552 * dev->event_lock spinlock held and interrupts off and thus may not
553 * sleep.