Lines Matching +full:sw +full:- +full:managed
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
89 * @sw: reflects current state of device's switches
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
128 * @devres_managed: indicates that devices is managed with devres framework
183 unsigned long sw[BITS_TO_LONGS(SW_CNT)]; member
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
277 * input core with interrupts disabled and dev->event_lock
283 * to perform fine-grained matching between device and handler
340 * struct input_handle - links input device with an input handler
341 * @private: handler-specific data
351 * and dev->event_lock spinlock held and so it may not sleep.
379 return dev ? to_input_dev(get_device(&dev->dev)) : NULL; in input_get_device()
385 put_device(&dev->dev); in input_put_device()
390 return dev_get_drvdata(&dev->dev); in input_get_drvdata()
395 dev_set_drvdata(&dev->dev, data); in input_set_drvdata()
475 * input_set_events_per_packet - tell handlers about the driver event rate
486 dev->hint_events_per_packet = n_events; in input_set_events_per_packet()
499 return dev->absinfo ? dev->absinfo[axis]._item : 0; \
506 if (dev->absinfo) \
507 dev->absinfo[axis]._item = val; \
534 * struct ff_device - force-feedback part of an input device
539 * @set_autocenter: Called to auto-center device
542 * @private: driver-specific data, will be freed automatically
544 * device (not emulated like ones in input_dev->ffbit)
551 * Every force-feedback device must implement upload() and playback()
557 * dev->event_lock spinlock held and interrupts off and thus may not