Lines Matching +full:fn +full:- +full:keymap
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
69 * @getkeycode: optional legacy method to retrieve current keymap.
70 * @setkeycode: optional method to alter current keymap, used to implement
111 * (such as keymap or absmin, absmax, absfuzz, etc.) after device
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
277 * input core with interrupts disabled and dev->event_lock
282 * to perform fine-grained matching between device and handler
334 * struct input_handle - links input device with an input handler
335 * @private: handler-specific data
365 return dev ? to_input_dev(get_device(&dev->dev)) : NULL; in input_get_device()
371 put_device(&dev->dev); in input_put_device()
376 return dev_get_drvdata(&dev->dev); in input_get_drvdata()
381 dev_set_drvdata(&dev->dev, data); in input_set_drvdata()
404 int (*fn)(struct input_handle *, void *));
461 * input_set_events_per_packet - tell handlers about the driver event rate
472 dev->hint_events_per_packet = n_events; in input_set_events_per_packet()
485 return dev->absinfo ? dev->absinfo[axis]._item : 0; \
492 if (dev->absinfo) \
493 dev->absinfo[axis]._item = val; \
520 * struct ff_device - force-feedback part of an input device
525 * @set_autocenter: Called to auto-center device
528 * @private: driver-specific data, will be freed automatically
530 * device (not emulated like ones in input_dev->ffbit)
537 * Every force-feedback device must implement upload() and playback()
543 * dev->event_lock spinlock held and interrupts off and thus may not