Lines Matching defs:input
14 #include <linux/input.h>
22 #include <linux/input/mt.h>
166 * @dev: the input device for which events should be reported.
183 struct input_dev *input;
536 * @input_dev: Pointer to the input device
542 * fractions of 120 and emits high-resolution scroll events for the input
545 * backwards-compatibility with userspace input libraries.
2782 struct input_dev *idev = hidinput->input;
2792 struct input_dev *idev = hidinput->input;
2843 dev = hidinput->input;
2984 slot = input_mt_get_slot_by_key(hidpp->input, touch_report->finger_id);
2986 input_mt_slot(hidpp->input, slot);
2987 input_mt_report_slot_state(hidpp->input, MT_TOOL_FINGER,
2990 input_event(hidpp->input, EV_ABS, ABS_MT_POSITION_X,
2992 input_event(hidpp->input, EV_ABS, ABS_MT_POSITION_Y,
2995 input_event(hidpp->input, EV_ABS, ABS_MT_PRESSURE,
3010 input_event(hidpp->input, EV_KEY, BTN_LEFT, raw->button);
3013 input_mt_sync_frame(hidpp->input);
3014 input_sync(hidpp->input);
3064 if (!wd || !hidpp->input)
3075 input_event(hidpp->input, EV_KEY, BTN_LEFT,
3077 input_event(hidpp->input, EV_KEY, BTN_RIGHT,
3079 input_sync(hidpp->input);
3229 if (!hidpp->input) {
3256 input_report_key(hidpp->input, BTN_MIDDLE, 1);
3259 input_report_key(hidpp->input, BTN_FORWARD, 1);
3262 input_report_key(hidpp->input, BTN_BACK, 1);
3265 input_report_key(hidpp->input, BTN_BACK, 0);
3266 input_report_key(hidpp->input, BTN_FORWARD, 0);
3267 input_report_key(hidpp->input, BTN_MIDDLE, 0);
3273 input_sync(hidpp->input);
3287 input_report_key(hidpp->input, BTN_LEFT,
3289 input_report_key(hidpp->input, BTN_RIGHT,
3293 input_report_rel(hidpp->input, REL_HWHEEL, -1);
3294 input_report_rel(hidpp->input, REL_HWHEEL_HI_RES,
3297 input_report_rel(hidpp->input, REL_HWHEEL, 1);
3298 input_report_rel(hidpp->input, REL_HWHEEL_HI_RES,
3303 input_report_rel(hidpp->input, REL_X, v);
3306 input_report_rel(hidpp->input, REL_Y, v);
3310 hidpp_scroll_counter_handle_scroll(hidpp->input,
3313 input_sync(hidpp->input);
3541 if (!hidpp->input)
3553 input_report_rel(hidpp->input, REL_WHEEL, value);
3554 input_report_rel(hidpp->input, REL_WHEEL_HI_RES, value * 120);
3555 input_report_rel(hidpp->input, REL_HWHEEL, hvalue);
3556 input_report_rel(hidpp->input, REL_HWHEEL_HI_RES, hvalue * 120);
3557 input_sync(hidpp->input);
3587 if (!hidpp->input)
3604 input_report_key(hidpp->input, BTN_MOUSE + i,
3609 input_report_key(hidpp->input, BTN_MISC + i,
3612 input_sync(hidpp->input);
3634 /* Find the consumer-page input report desc and change Maximums to 0x107f */
3833 struct input_dev *input)
3835 hidpp->input = input;
3838 wtp_populate_input(hidpp, input);
3840 m560_populate_input(hidpp, input);
3843 hidpp10_wheel_populate_input(hidpp, input);
3846 hidpp10_extra_mouse_buttons_populate_input(hidpp, input);
3853 struct input_dev *input = hidinput->input;
3858 hidpp_populate_input(hidpp, input);
4022 * the input device set, or high-res scroll enabling may fail. In such
4027 || value == 0 || hidpp->input == NULL
4031 hidpp_scroll_counter_handle_scroll(hidpp->input, counter, value);
4196 struct input_dev *input;
4299 /* if the input nodes are already created, we can stop now */
4302 input = hidpp_allocate_input(hdev);
4303 if (!input) {
4304 hid_err(hdev, "cannot allocate new input device: %d\n", ret);
4308 hidpp_populate_input(hidpp, input);
4310 ret = input_register_device(input);
4312 input_free_device(input);
4316 hidpp->delayed_input = input;
4465 * hid subdrivers (hid-input, hidraw). This allows retrieving the dev's
4467 * before the hid-input and hidraw drivers expose these to userspace.