Lines Matching defs:input

14 #include <linux/input.h>
22 #include <linux/input/mt.h>
153 * @dev: the input device for which events should be reported.
170 struct input_dev *input;
452 * fractions of 120 and emits high-resolution scroll events for the input
455 * backwards-compatibility with userspace input libraries.
2278 struct input_dev *idev = hidinput->input;
2288 struct input_dev *idev = hidinput->input;
2334 dev = hidinput->input;
2473 slot = input_mt_get_slot_by_key(hidpp->input, touch_report->finger_id);
2475 input_mt_slot(hidpp->input, slot);
2476 input_mt_report_slot_state(hidpp->input, MT_TOOL_FINGER,
2479 input_event(hidpp->input, EV_ABS, ABS_MT_POSITION_X,
2481 input_event(hidpp->input, EV_ABS, ABS_MT_POSITION_Y,
2484 input_event(hidpp->input, EV_ABS, ABS_MT_PRESSURE,
2499 input_event(hidpp->input, EV_KEY, BTN_LEFT, raw->button);
2502 input_mt_sync_frame(hidpp->input);
2503 input_sync(hidpp->input);
2553 if (!wd || !hidpp->input)
2564 input_event(hidpp->input, EV_KEY, BTN_LEFT,
2566 input_event(hidpp->input, EV_KEY, BTN_RIGHT,
2568 input_sync(hidpp->input);
2718 if (!hidpp->input) {
2745 input_report_key(hidpp->input, BTN_MIDDLE, 1);
2748 input_report_key(hidpp->input, BTN_FORWARD, 1);
2751 input_report_key(hidpp->input, BTN_BACK, 1);
2754 input_report_key(hidpp->input, BTN_BACK, 0);
2755 input_report_key(hidpp->input, BTN_FORWARD, 0);
2756 input_report_key(hidpp->input, BTN_MIDDLE, 0);
2762 input_sync(hidpp->input);
2776 input_report_key(hidpp->input, BTN_LEFT,
2778 input_report_key(hidpp->input, BTN_RIGHT,
2782 input_report_rel(hidpp->input, REL_HWHEEL, -1);
2783 input_report_rel(hidpp->input, REL_HWHEEL_HI_RES,
2786 input_report_rel(hidpp->input, REL_HWHEEL, 1);
2787 input_report_rel(hidpp->input, REL_HWHEEL_HI_RES,
2792 input_report_rel(hidpp->input, REL_X, v);
2795 input_report_rel(hidpp->input, REL_Y, v);
2799 hidpp_scroll_counter_handle_scroll(hidpp->input,
2802 input_sync(hidpp->input);
3030 if (!hidpp->input)
3042 input_report_rel(hidpp->input, REL_WHEEL, value);
3043 input_report_rel(hidpp->input, REL_WHEEL_HI_RES, value * 120);
3044 input_report_rel(hidpp->input, REL_HWHEEL, hvalue);
3045 input_report_rel(hidpp->input, REL_HWHEEL_HI_RES, hvalue * 120);
3046 input_sync(hidpp->input);
3076 if (!hidpp->input)
3093 input_report_key(hidpp->input, BTN_MOUSE + i,
3098 input_report_key(hidpp->input, BTN_MISC + i,
3101 input_sync(hidpp->input);
3123 /* Find the consumer-page input report desc and change Maximums to 0x107f */
3279 struct input_dev *input)
3281 hidpp->input = input;
3284 wtp_populate_input(hidpp, input);
3286 m560_populate_input(hidpp, input);
3289 hidpp10_wheel_populate_input(hidpp, input);
3292 hidpp10_extra_mouse_buttons_populate_input(hidpp, input);
3299 struct input_dev *input = hidinput->input;
3304 hidpp_populate_input(hidpp, input);
3452 * the input device set, or high-res scroll enabling may fail. In such
3457 || hidpp->input == NULL || counter->wheel_multiplier == 0)
3460 hidpp_scroll_counter_handle_scroll(hidpp->input, counter, value);
3613 struct input_dev *input;
3710 /* if the input nodes are already created, we can stop now */
3713 input = hidpp_allocate_input(hdev);
3714 if (!input) {
3715 hid_err(hdev, "cannot allocate new input device: %d\n", ret);
3719 hidpp_populate_input(hidpp, input);
3721 ret = input_register_device(input);
3723 input_free_device(input);
3725 hidpp->delayed_input = input;
3874 * hid subdrivers (hid-input, hidraw). This allows retrieving the dev's
3876 * before the hid-input and hidraw drivers expose these to userspace.