Home
last modified time | relevance | path

Searched refs:input_event (Results 1 – 25 of 93) sorted by relevance

1234

/drivers/input/
Dinput-compat.c15 struct input_event *event) in input_event_from_user()
31 if (copy_from_user(event, buffer, sizeof(struct input_event))) in input_event_from_user()
39 const struct input_event *event) in input_event_to_user()
55 if (copy_to_user(buffer, event, sizeof(struct input_event))) in input_event_to_user()
100 struct input_event *event) in input_event_from_user()
102 if (copy_from_user(event, buffer, sizeof(struct input_event))) in input_event_from_user()
109 const struct input_event *event) in input_event_to_user()
111 if (copy_to_user(buffer, event, sizeof(struct input_event))) in input_event_to_user()
Dinput-mt.c148 input_event(dev, EV_ABS, ABS_MT_TRACKING_ID, -1); in input_mt_report_slot_state()
156 input_event(dev, EV_ABS, ABS_MT_TRACKING_ID, id); in input_mt_report_slot_state()
157 input_event(dev, EV_ABS, ABS_MT_TOOL_TYPE, tool_type); in input_mt_report_slot_state()
176 input_event(dev, EV_KEY, BTN_TOOL_FINGER, count == 1); in input_mt_report_finger_count()
177 input_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, count == 2); in input_mt_report_finger_count()
178 input_event(dev, EV_KEY, BTN_TOOL_TRIPLETAP, count == 3); in input_mt_report_finger_count()
179 input_event(dev, EV_KEY, BTN_TOOL_QUADTAP, count == 4); in input_mt_report_finger_count()
180 input_event(dev, EV_KEY, BTN_TOOL_QUINTTAP, count == 5); in input_mt_report_finger_count()
221 input_event(dev, EV_KEY, BTN_TOUCH, count > 0); in input_mt_report_pointer_emulation()
244 input_event(dev, EV_ABS, ABS_X, x); in input_mt_report_pointer_emulation()
[all …]
Dinput-compat.h57 sizeof(struct input_event_compat) : sizeof(struct input_event); in input_event_size()
64 return sizeof(struct input_event); in input_event_size()
70 struct input_event *event);
73 const struct input_event *event);
Devdev.c53 struct input_event buffer[];
106 struct input_event *ev; in __evdev_flush_queue()
147 struct input_event ev; in __evdev_queue_syn_dropped()
215 const struct input_event *event) in __pass_event()
227 client->buffer[client->tail] = (struct input_event) { in __pass_event()
250 struct input_event event; in evdev_pass_values()
519 struct input_event event; in evdev_write()
553 struct input_event *event) in evdev_fetch_next_event()
575 struct input_event event; in evdev_read()
/drivers/hid/
Dhid-steam.c959 input_event(input, EV_KEY, BTN_TR2, !!(b8 & BIT(0))); in steam_do_input_event()
960 input_event(input, EV_KEY, BTN_TL2, !!(b8 & BIT(1))); in steam_do_input_event()
961 input_event(input, EV_KEY, BTN_TR, !!(b8 & BIT(2))); in steam_do_input_event()
962 input_event(input, EV_KEY, BTN_TL, !!(b8 & BIT(3))); in steam_do_input_event()
963 input_event(input, EV_KEY, BTN_Y, !!(b8 & BIT(4))); in steam_do_input_event()
964 input_event(input, EV_KEY, BTN_B, !!(b8 & BIT(5))); in steam_do_input_event()
965 input_event(input, EV_KEY, BTN_X, !!(b8 & BIT(6))); in steam_do_input_event()
966 input_event(input, EV_KEY, BTN_A, !!(b8 & BIT(7))); in steam_do_input_event()
967 input_event(input, EV_KEY, BTN_SELECT, !!(b9 & BIT(4))); in steam_do_input_event()
968 input_event(input, EV_KEY, BTN_MODE, !!(b9 & BIT(5))); in steam_do_input_event()
[all …]
Dhid-a4tech.c91 input_event(input, EV_REL, value ? REL_HWHEEL : in a4_event()
93 input_event(input, EV_REL, value ? REL_HWHEEL_HI_RES : in a4_event()
105 input_event(input, usage->type, REL_HWHEEL, value); in a4_event()
106 input_event(input, usage->type, REL_HWHEEL_HI_RES, value * 120); in a4_event()
Dhid-ntrig.c630 input_event(input, EV_ABS, ABS_X, nd->x); in ntrig_event()
631 input_event(input, EV_ABS, ABS_Y, nd->y); in ntrig_event()
723 input_event(input, EV_ABS, ABS_X, nd->x); in ntrig_event()
724 input_event(input, EV_ABS, ABS_Y, nd->y); in ntrig_event()
728 input_event(input, EV_ABS, ABS_MT_POSITION_X, nd->x); in ntrig_event()
729 input_event(input, EV_ABS, ABS_MT_POSITION_Y, nd->y); in ntrig_event()
736 input_event(input, EV_ABS, in ntrig_event()
738 input_event(input, EV_ABS, in ntrig_event()
740 input_event(input, EV_ABS, in ntrig_event()
743 input_event(input, EV_ABS, in ntrig_event()
[all …]
Dhid-ite.c30 input_event(input, EV_KEY, KEY_RFKILL, 1); in ite_event()
32 input_event(input, EV_KEY, KEY_RFKILL, 0); in ite_event()
Dhid-gyration.c64 input_event(input, usage->type, usage->code, 1); in gyration_event()
66 input_event(input, usage->type, usage->code, 0); in gyration_event()
Dhid-apple.c188 input_event(input, usage->type, usage->code, value); in hidinput_apple_event()
229 input_event(input, usage->type, code, value); in hidinput_apple_event()
247 input_event(input, usage->type, trans->to, in hidinput_apple_event()
259 input_event(input, usage->type, trans->to, value); in hidinput_apple_event()
268 input_event(input, usage->type, trans->to, value); in hidinput_apple_event()
287 input_event(field->hidinput->input, usage->type, usage->code, in apple_event()
Dhid-zydacron.c123 input_event(zc->input_ep81, EV_KEY, key, 0); in zc_raw_event()
152 input_event(zc->input_ep81, EV_KEY, key, 1); in zc_raw_event()
Dhid-input.c1259 input_event(input, EV_REL, code, lo_res); in hidinput_handle_scroll()
1260 input_event(input, EV_REL, usage->code, hi_res); in hidinput_handle_scroll()
1286 input_event(input, usage->type, usage->code , hid_hat_to_axis[hat_dir].x); in hidinput_hid_event()
1287 input_event(input, usage->type, usage->code + 1, hid_hat_to_axis[hat_dir].y); in hidinput_hid_event()
1298 input_event(input, usage->type, (*quirks & HID_QUIRK_INVERT) ? BTN_TOOL_RUBBER : usage->code, 1); in hidinput_hid_event()
1301 input_event(input, usage->type, usage->code, 0); in hidinput_hid_event()
1302 input_event(input, usage->type, BTN_TOOL_RUBBER, 0); in hidinput_hid_event()
1309 input_event(input, EV_KEY, BTN_TOUCH, value > a + ((b - a) >> 3)); in hidinput_hid_event()
1338 input_event(input, EV_KEY, direction, 1); in hidinput_hid_event()
1340 input_event(input, EV_KEY, direction, 0); in hidinput_hid_event()
[all …]
Dhid-multitouch.c918 input_event(input, EV_KEY, BTN_LEFT, app->left_button_state); in mt_sync_frame()
921 input_event(input, EV_MSC, MSC_TIMESTAMP, app->timestamp); in mt_sync_frame()
1077 input_event(input, EV_ABS, ABS_MT_POSITION_X, *slot->x); in mt_process_slot()
1078 input_event(input, EV_ABS, ABS_MT_POSITION_Y, *slot->y); in mt_process_slot()
1079 input_event(input, EV_ABS, ABS_MT_TOOL_X, *slot->cx); in mt_process_slot()
1080 input_event(input, EV_ABS, ABS_MT_TOOL_Y, *slot->cy); in mt_process_slot()
1081 input_event(input, EV_ABS, ABS_MT_DISTANCE, !*slot->tip_state); in mt_process_slot()
1082 input_event(input, EV_ABS, ABS_MT_ORIENTATION, orientation); in mt_process_slot()
1083 input_event(input, EV_ABS, ABS_MT_PRESSURE, *slot->p); in mt_process_slot()
1084 input_event(input, EV_ABS, ABS_MT_TOUCH_MAJOR, major); in mt_process_slot()
[all …]
/drivers/input/rmi4/
Drmi_2d_sensor.c98 input_event(sensor->input, EV_ABS, ABS_MT_POSITION_X, obj->x); in rmi_2d_sensor_abs_report()
99 input_event(sensor->input, EV_ABS, ABS_MT_POSITION_Y, obj->y); in rmi_2d_sensor_abs_report()
100 input_event(sensor->input, EV_ABS, ABS_MT_ORIENTATION, wide); in rmi_2d_sensor_abs_report()
101 input_event(sensor->input, EV_ABS, ABS_MT_PRESSURE, obj->z); in rmi_2d_sensor_abs_report()
102 input_event(sensor->input, EV_ABS, ABS_MT_TOUCH_MAJOR, major); in rmi_2d_sensor_abs_report()
103 input_event(sensor->input, EV_ABS, ABS_MT_TOUCH_MINOR, minor); in rmi_2d_sensor_abs_report()
/drivers/input/keyboard/
Dgpio_keys_polled.c55 input_event(input, type, button->code, button->value); in gpio_keys_button_event()
60 input_event(input, type, button->code, button->value); in gpio_keys_button_event()
64 input_event(input, type, button->code, state); in gpio_keys_button_event()
114 input_event(input, EV_REL, i, 0); in gpio_keys_polled_poll()
119 input_event(input, EV_ABS, i, 0); in gpio_keys_polled_poll()
Dmaple_keyb.c91 input_event(dev, EV_MSC, MSC_SCAN, code); in dc_scan_kbd()
101 input_event(dev, EV_MSC, MSC_SCAN, code); in dc_scan_kbd()
113 input_event(dev, EV_MSC, MSC_SCAN, code); in dc_scan_kbd()
Dgpio_keys.c372 input_event(input, type, button->code, button->value); in gpio_keys_gpio_report_event()
374 input_event(input, type, *bdata->code, state); in gpio_keys_gpio_report_event()
426 input_event(input, EV_KEY, *bdata->code, 0); in gpio_keys_irq_timer()
447 input_event(input, EV_KEY, *bdata->code, 1); in gpio_keys_irq_isr()
451 input_event(input, EV_KEY, *bdata->code, 0); in gpio_keys_irq_isr()
/drivers/platform/x86/
Dpeaq-wmi.c60 input_event(input_dev, EV_KEY, KEY_SOUND, 1); in peaq_wmi_poll()
62 input_event(input_dev, EV_KEY, KEY_SOUND, 0); in peaq_wmi_poll()
/drivers/media/usb/dvb-usb/
Ddvb-usb-remote.c135 input_event(d->input_dev, EV_KEY, event, 1); in legacy_dvb_usb_read_remote_control()
137 input_event(d->input_dev, EV_KEY, d->last_event, 0); in legacy_dvb_usb_read_remote_control()
142 input_event(d->input_dev, EV_KEY, event, 1); in legacy_dvb_usb_read_remote_control()
144 input_event(d->input_dev, EV_KEY, d->last_event, 0); in legacy_dvb_usb_read_remote_control()
/drivers/input/tablet/
Dgtco.c697 input_event(inputdev, EV_MSC, MSC_SERIAL, val); in gtco_urb_callback()
730 input_event(inputdev, EV_MSC, MSC_SERIAL, val); in gtco_urb_callback()
736 input_event(inputdev, EV_MSC, MSC_SCAN, in gtco_urb_callback()
749 input_event(inputdev, EV_MSC, MSC_SCAN, device->buffer[1]); in gtco_urb_callback()
800 input_event(inputdev, EV_MSC, MSC_SERIAL, val); in gtco_urb_callback()
809 input_event(inputdev, EV_MSC, MSC_RAW, device->buffer[0]); in gtco_urb_callback()
/drivers/input/misc/
Dsgi_btns.c65 input_event(input, EV_MSC, MSC_SCAN, i); in handle_buttons()
71 input_event(input, EV_MSC, MSC_SCAN, i); in handle_buttons()
Dcobalt_btns.c47 input_event(input, EV_MSC, MSC_SCAN, i); in handle_buttons()
53 input_event(input, EV_MSC, MSC_SCAN, i); in handle_buttons()
Dsirfsoc-onkey.c47 input_event(pwrcdrv->input, EV_KEY, KEY_POWER, 0); in sirfsoc_pwrc_report_event()
62 input_event(pwrcdrv->input, EV_KEY, KEY_POWER, 1); in sirfsoc_pwrc_isr()
Duinput.c63 struct input_event buff[UINPUT_BUFFER_SIZE];
79 udev->buff[udev->head] = (struct input_event) { in uinput_dev_event()
575 struct input_event ev; in uinput_inject_events()
591 input_event(udev->dev, ev.type, ev.code, ev.value); in uinput_inject_events()
622 struct input_event *event) in uinput_fetch_next_event()
642 struct input_event event; in uinput_events_to_user()
/drivers/input/touchscreen/
Dmax11801_ts.c137 input_event(data->input_dev, EV_KEY, BTN_TOUCH, 1); in max11801_ts_interrupt()
142 input_event(data->input_dev, EV_KEY, BTN_TOUCH, 0); in max11801_ts_interrupt()

1234