Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/input/
Dinput-compat.c18 struct input_event *event) in input_event_from_user()
34 if (copy_from_user(event, buffer, sizeof(struct input_event))) in input_event_from_user()
42 const struct input_event *event) in input_event_to_user()
58 if (copy_to_user(buffer, event, sizeof(struct input_event))) in input_event_to_user()
103 struct input_event *event) in input_event_from_user()
105 if (copy_from_user(event, buffer, sizeof(struct input_event))) in input_event_from_user()
112 const struct input_event *event) in input_event_to_user()
114 if (copy_to_user(buffer, event, sizeof(struct input_event))) in input_event_to_user()
Dinput-mt.c149 input_event(dev, EV_ABS, ABS_MT_TRACKING_ID, -1); in input_mt_report_slot_state()
157 input_event(dev, EV_ABS, ABS_MT_TRACKING_ID, id); in input_mt_report_slot_state()
158 input_event(dev, EV_ABS, ABS_MT_TOOL_TYPE, tool_type); in input_mt_report_slot_state()
175 input_event(dev, EV_KEY, BTN_TOOL_FINGER, count == 1); in input_mt_report_finger_count()
176 input_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, count == 2); in input_mt_report_finger_count()
177 input_event(dev, EV_KEY, BTN_TOOL_TRIPLETAP, count == 3); in input_mt_report_finger_count()
178 input_event(dev, EV_KEY, BTN_TOOL_QUADTAP, count == 4); in input_mt_report_finger_count()
179 input_event(dev, EV_KEY, BTN_TOOL_QUINTTAP, count == 5); in input_mt_report_finger_count()
220 input_event(dev, EV_KEY, BTN_TOUCH, count > 0); in input_mt_report_pointer_emulation()
228 input_event(dev, EV_ABS, ABS_X, x); in input_mt_report_pointer_emulation()
[all …]
Dinput-compat.h71 sizeof(struct input_event_compat) : sizeof(struct input_event); in input_event_size()
78 return sizeof(struct input_event); in input_event_size()
84 struct input_event *event);
87 const struct input_event *event);
Devdev.c62 struct input_event buffer[];
71 struct input_event *ev; in __evdev_flush_queue()
113 struct input_event ev; in __evdev_queue_syn_dropped()
185 const struct input_event *event) in __pass_event()
217 struct input_event event; in evdev_pass_values()
444 bufsize * sizeof(struct input_event); in evdev_open()
479 struct input_event event; in evdev_write()
512 struct input_event *event) in evdev_fetch_next_event()
534 struct input_event event; in evdev_read()
Dsparse-keymap.c278 input_event(dev, EV_MSC, MSC_SCAN, ke->code); in sparse_keymap_report_entry()
Dinput.c429 void input_event(struct input_dev *dev, in input_event() function
441 EXPORT_SYMBOL(input_event);
/linux-4.1.27/include/linux/
Dinput.h384 void input_event(struct input_dev *dev, unsigned int type, unsigned int code, int value);
389 input_event(dev, EV_KEY, code, !!value); in input_report_key()
394 input_event(dev, EV_REL, code, value); in input_report_rel()
399 input_event(dev, EV_ABS, code, value); in input_report_abs()
404 input_event(dev, EV_FF_STATUS, code, value); in input_report_ff_status()
409 input_event(dev, EV_SW, code, !!value); in input_report_switch()
414 input_event(dev, EV_SYN, SYN_REPORT, 0); in input_sync()
419 input_event(dev, EV_SYN, SYN_MT_REPORT, 0); in input_mt_sync()
Duinput.h69 struct input_event buff[UINPUT_BUFFER_SIZE];
/linux-4.1.27/drivers/hid/
Dhid-ntrig.c634 input_event(input, EV_ABS, ABS_X, nd->x); in ntrig_event()
635 input_event(input, EV_ABS, ABS_Y, nd->y); in ntrig_event()
727 input_event(input, EV_ABS, ABS_X, nd->x); in ntrig_event()
728 input_event(input, EV_ABS, ABS_Y, nd->y); in ntrig_event()
732 input_event(input, EV_ABS, ABS_MT_POSITION_X, nd->x); in ntrig_event()
733 input_event(input, EV_ABS, ABS_MT_POSITION_Y, nd->y); in ntrig_event()
740 input_event(input, EV_ABS, in ntrig_event()
742 input_event(input, EV_ABS, in ntrig_event()
744 input_event(input, EV_ABS, in ntrig_event()
747 input_event(input, EV_ABS, in ntrig_event()
[all …]
Dhid-gyration.c67 input_event(input, usage->type, usage->code, 1); in gyration_event()
69 input_event(input, usage->type, usage->code, 0); in gyration_event()
Dhid-a4tech.c69 input_event(input, EV_REL, value ? REL_HWHEEL : in a4_event()
81 input_event(input, usage->type, REL_HWHEEL, value); in a4_event()
Dhid-zydacron.c126 input_event(zc->input_ep81, EV_KEY, key, 0); in zc_raw_event()
155 input_event(zc->input_ep81, EV_KEY, key, 1); in zc_raw_event()
Dhid-apple.c188 input_event(input, usage->type, usage->code, value); in hidinput_apple_event()
220 input_event(input, usage->type, trans->to, in hidinput_apple_event()
241 input_event(input, usage->type, trans->to, in hidinput_apple_event()
253 input_event(input, usage->type, trans->to, value); in hidinput_apple_event()
262 input_event(input, usage->type, trans->to, value); in hidinput_apple_event()
281 input_event(field->hidinput->input, usage->type, usage->code, in apple_event()
Dhid-multitouch.c598 input_event(input, EV_ABS, ABS_MT_POSITION_X, s->x); in mt_complete_slot()
599 input_event(input, EV_ABS, ABS_MT_POSITION_Y, s->y); in mt_complete_slot()
600 input_event(input, EV_ABS, ABS_MT_TOOL_X, s->cx); in mt_complete_slot()
601 input_event(input, EV_ABS, ABS_MT_TOOL_Y, s->cy); in mt_complete_slot()
602 input_event(input, EV_ABS, ABS_MT_DISTANCE, in mt_complete_slot()
604 input_event(input, EV_ABS, ABS_MT_ORIENTATION, wide); in mt_complete_slot()
605 input_event(input, EV_ABS, ABS_MT_PRESSURE, s->p); in mt_complete_slot()
606 input_event(input, EV_ABS, ABS_MT_TOUCH_MAJOR, major); in mt_complete_slot()
607 input_event(input, EV_ABS, ABS_MT_TOUCH_MINOR, minor); in mt_complete_slot()
691 input_event(input, usage->type, usage->code, in mt_process_mt_event()
Dhid-xinmo.c37 input_event(field->hidinput->input, usage->type, in xinmo_event()
Dhid-input.c1075 input_event(input, usage->type, usage->code , hid_hat_to_axis[hat_dir].x); in hidinput_hid_event()
1076 input_event(input, usage->type, usage->code + 1, hid_hat_to_axis[hat_dir].y); in hidinput_hid_event()
1087 input_event(input, usage->type, (*quirks & HID_QUIRK_INVERT) ? BTN_TOOL_RUBBER : usage->code, 1); in hidinput_hid_event()
1090 input_event(input, usage->type, usage->code, 0); in hidinput_hid_event()
1091 input_event(input, usage->type, BTN_TOOL_RUBBER, 0); in hidinput_hid_event()
1098 input_event(input, EV_KEY, BTN_TOUCH, value > a + ((b - a) >> 3)); in hidinput_hid_event()
1121 input_event(input, EV_KEY, direction, 1); in hidinput_hid_event()
1123 input_event(input, EV_KEY, direction, 0); in hidinput_hid_event()
1164 input_event(input, EV_MSC, MSC_SCAN, usage->hid); in hidinput_hid_event()
1166 input_event(input, usage->type, usage->code, value); in hidinput_hid_event()
[all …]
Dhid-ezkey.c60 input_event(input, usage->type, REL_WHEEL, -value); in ez_event()
Dhid-rmi.c340 input_event(hdata->input, EV_ABS, ABS_MT_POSITION_X, x); in rmi_f11_process_touch()
341 input_event(hdata->input, EV_ABS, ABS_MT_POSITION_Y, y); in rmi_f11_process_touch()
342 input_event(hdata->input, EV_ABS, ABS_MT_ORIENTATION, wide); in rmi_f11_process_touch()
343 input_event(hdata->input, EV_ABS, ABS_MT_PRESSURE, z); in rmi_f11_process_touch()
344 input_event(hdata->input, EV_ABS, ABS_MT_TOUCH_MAJOR, major); in rmi_f11_process_touch()
345 input_event(hdata->input, EV_ABS, ABS_MT_TOUCH_MINOR, minor); in rmi_f11_process_touch()
420 input_event(hdata->input, EV_KEY, BTN_LEFT + button++, in rmi_f30_input_event()
Dhid-microsoft.c219 input_event(input, usage->type, key, 1); in ms_event()
222 input_event(input, usage->type, last_key, 0); in ms_event()
Dhid-logitech-hidpp.c757 input_event(wd->input, EV_ABS, ABS_MT_POSITION_X, in wtp_touch_event()
759 input_event(wd->input, EV_ABS, ABS_MT_POSITION_Y, in wtp_touch_event()
762 input_event(wd->input, EV_ABS, ABS_MT_PRESSURE, in wtp_touch_event()
778 input_event(wd->input, EV_KEY, BTN_LEFT, raw->button); in wtp_send_raw_xy_event()
843 input_event(wd->input, EV_KEY, BTN_LEFT, in wtp_raw_event()
845 input_event(wd->input, EV_KEY, BTN_RIGHT, in wtp_raw_event()
Dhid-icade.c185 input_event(field->hidinput->input, usage->type, in icade_event()
Dhid-cypress.c93 input_event(input, usage->type, REL_HWHEEL, value); in cp_event()
Dhid-magicmouse.c273 input_event(input, EV_MSC, MSC_RAW, tdata[7]); in magicmouse_emit_touch()
275 input_event(input, EV_MSC, MSC_RAW, tdata[8]); in magicmouse_emit_touch()
Dhid-picolcd_core.c148 input_event(data->input_keys, EV_MSC, MSC_SCAN, raw_data[i]); in picolcd_raw_keypad()
171 input_event(data->input_keys, EV_MSC, MSC_SCAN, data->pressed_keys[j]); in picolcd_raw_keypad()
Dhid-prodikeys.c400 input_event(pm->input_ep82, EV_KEY, in pcmidi_handle_report4()
491 input_event(pm->input_ep82, EV_KEY, key, 1); in pcmidi_handle_report4()
Dhid-lg.c648 input_event(field->hidinput->input, usage->type, usage->code, in lg_event()
Dhid-lg4ff.c287 input_event(field->hidinput->input, usage->type, usage->code, new_value); in lg4ff_adjust_input_event()
Dwacom_wac.c633 input_event(input, EV_MSC, MSC_SERIAL, wacom->serial[idx]); in wacom_intuos_inout()
1009 input_event(input, EV_MSC, MSC_SERIAL, wacom->serial[idx]); in wacom_intuos_irq()
1432 input_event(input, usage->type, usage->code, value); in wacom_wac_pen_event()
/linux-4.1.27/drivers/media/pci/ttpci/
Dav7110_ir.c140 input_event(ir->input_dev, EV_MSC, MSC_RAW, (addr << 16) | data); in av7110_emit_key()
141 input_event(ir->input_dev, EV_MSC, MSC_SCAN, data); in av7110_emit_key()
162 input_event(ir->input_dev, EV_KEY, ir->last_key, 0); in av7110_emit_key()
163 input_event(ir->input_dev, EV_KEY, keycode, 1); in av7110_emit_key()
166 input_event(ir->input_dev, EV_KEY, keycode, 2); in av7110_emit_key()
171 input_event(ir->input_dev, EV_KEY, keycode, 1); in av7110_emit_key()
/linux-4.1.27/drivers/input/touchscreen/
Dchipone_icn8318.c137 input_event(data->input, EV_ABS, ABS_MT_POSITION_X, x); in icn8318_irq()
138 input_event(data->input, EV_ABS, ABS_MT_POSITION_Y, y); in icn8318_irq()
140 input_event(data->input, EV_ABS, ABS_MT_POSITION_X, y); in icn8318_irq()
141 input_event(data->input, EV_ABS, ABS_MT_POSITION_Y, x); in icn8318_irq()
Dmax11801_ts.c141 input_event(data->input_dev, EV_KEY, BTN_TOUCH, 1); in max11801_ts_interrupt()
146 input_event(data->input_dev, EV_KEY, BTN_TOUCH, 0); in max11801_ts_interrupt()
Dpenmount.c79 input_event(input, EV_ABS, ABS_MT_POSITION_X, pm->slots[i].x); in pm_mtevent()
80 input_event(input, EV_ABS, ABS_MT_POSITION_Y, pm->slots[i].y); in pm_mtevent()
Delants_i2c.c789 input_event(input, EV_ABS, ABS_MT_POSITION_X, x); in elants_i2c_mt_event()
790 input_event(input, EV_ABS, ABS_MT_POSITION_Y, y); in elants_i2c_mt_event()
791 input_event(input, EV_ABS, ABS_MT_PRESSURE, p); in elants_i2c_mt_event()
792 input_event(input, EV_ABS, ABS_MT_TOUCH_MAJOR, w); in elants_i2c_mt_event()
Dpixcir_i2c_ts.c150 input_event(ts->input, EV_ABS, ABS_MT_POSITION_X, touch->x); in pixcir_ts_report()
151 input_event(ts->input, EV_ABS, ABS_MT_POSITION_Y, touch->y); in pixcir_ts_report()
/linux-4.1.27/drivers/input/tablet/
Dgtco.c681 input_event(inputdev, EV_MSC, MSC_SERIAL, val); in gtco_urb_callback()
714 input_event(inputdev, EV_MSC, MSC_SERIAL, val); in gtco_urb_callback()
720 input_event(inputdev, EV_MSC, MSC_SCAN, in gtco_urb_callback()
733 input_event(inputdev, EV_MSC, MSC_SCAN, device->buffer[1]); in gtco_urb_callback()
784 input_event(inputdev, EV_MSC, MSC_SERIAL, val); in gtco_urb_callback()
793 input_event(inputdev, EV_MSC, MSC_RAW, device->buffer[0]); in gtco_urb_callback()
Dhanwang.c217 input_event(input_dev, EV_MSC, MSC_SERIAL, in hanwang_parse_packet()
259 input_event(input_dev, EV_MSC, MSC_SERIAL, 0xffffffff); in hanwang_parse_packet()
/linux-4.1.27/drivers/input/misc/
Dsgi_btns.c78 input_event(input, EV_MSC, MSC_SCAN, i); in handle_buttons()
84 input_event(input, EV_MSC, MSC_SCAN, i); in handle_buttons()
Dcobalt_btns.c60 input_event(input, EV_MSC, MSC_SCAN, i); in handle_buttons()
66 input_event(input, EV_MSC, MSC_SCAN, i); in handle_buttons()
Dsirfsoc-onkey.c48 input_event(pwrcdrv->input, EV_KEY, KEY_POWER, 0); in sirfsoc_pwrc_report_event()
63 input_event(pwrcdrv->input, EV_KEY, KEY_POWER, 1); in sirfsoc_pwrc_isr()
Datlas_btns.c60 input_event(input_dev, EV_MSC, MSC_SCAN, code); in acpi_atlas_button_handler()
Duinput.c441 struct input_event ev; in uinput_inject_events()
457 input_event(udev->dev, ev.type, ev.code, ev.value); in uinput_inject_events()
487 struct input_event *event) in uinput_fetch_next_event()
507 struct input_event event; in uinput_events_to_user()
Dadxl34x.c263 input_event(ac->input, pdata->ev_type, pdata->ev_code_x, in adxl34x_service_ev_fifo()
265 input_event(ac->input, pdata->ev_type, pdata->ev_code_y, in adxl34x_service_ev_fifo()
267 input_event(ac->input, pdata->ev_type, pdata->ev_code_z, in adxl34x_service_ev_fifo()
Dati_remote2.c336 input_event(idev, EV_REL, REL_X, (s8) data[1]); in ati_remote2_input_mouse()
337 input_event(idev, EV_REL, REL_Y, (s8) data[2]); in ati_remote2_input_mouse()
424 input_event(idev, EV_KEY, ar2->keycode[mode][index], data[1]); in ati_remote2_input_key()
Dkeyspan_remote.c179 input_event(input, EV_MSC, MSC_SCAN, button); in keyspan_report_button()
/linux-4.1.27/drivers/input/keyboard/
Dmaple_keyb.c105 input_event(dev, EV_MSC, MSC_SCAN, code); in dc_scan_kbd()
115 input_event(dev, EV_MSC, MSC_SCAN, code); in dc_scan_kbd()
127 input_event(dev, EV_MSC, MSC_SCAN, code); in dc_scan_kbd()
Dgpio_keys.c343 input_event(input, type, button->code, button->value); in gpio_keys_gpio_report_event()
345 input_event(input, type, button->code, !!state); in gpio_keys_gpio_report_event()
385 input_event(input, EV_KEY, bdata->button->code, 0); in gpio_keys_irq_timer()
407 input_event(input, EV_KEY, button->code, 1); in gpio_keys_irq_isr()
411 input_event(input, EV_KEY, button->code, 0); in gpio_keys_irq_isr()
Dw90p910_keypad.c66 input_event(input_dev, EV_MSC, MSC_SCAN, code); in w90p910_keypad_scan_matrix()
70 input_event(input_dev, EV_MSC, MSC_SCAN, code); in w90p910_keypad_scan_matrix()
Dpxa27x_keypad.c469 input_event(input_dev, EV_MSC, MSC_SCAN, code); in pxa27x_keypad_scan_matrix()
502 input_event(dev, EV_MSC, MSC_SCAN, code); in report_rotary_event()
505 input_event(dev, EV_MSC, MSC_SCAN, code); in report_rotary_event()
561 input_event(input_dev, EV_MSC, MSC_SCAN, code); in pxa27x_keypad_scan_direct()
Dsh_keysc.c149 input_event(priv->input, EV_KEY, k, 1); in sh_keysc_isr()
154 input_event(priv->input, EV_KEY, k, 0); in sh_keysc_isr()
Djornada720_kbd.c83 input_event(input, EV_MSC, MSC_SCAN, scan_code); in jornada720_kbd_interrupt()
Dclps711x-keypad.c68 input_event(dev->input, EV_MSC, in clps711x_keypad_poll()
Dgoldfish_events.c53 input_event(edev->input, type, code, value); in events_interrupt()
Dlm8333.c98 input_event(input, EV_MSC, MSC_SCAN, code); in lm8333_key_handler()
Djornada680_kbd.c96 input_event(input_dev, in jornada_parse_kbd()
Datkbd.c407 input_event(dev, EV_MSC, MSC_RAW, code); in atkbd_interrupt()
461 input_event(dev, EV_MSC, MSC_SCAN, code); in atkbd_interrupt()
511 input_event(dev, EV_KEY, keycode, value); in atkbd_interrupt()
515 input_event(dev, EV_MSC, MSC_SCAN, code); in atkbd_interrupt()
Dmcs_touchkey.c88 input_event(input, EV_MSC, MSC_SCAN, data->key_val); in mcs_touchkey_interrupt()
Dmax7359_keypad.c124 input_event(input_dev, EV_MSC, MSC_SCAN, code); in max7359_interrupt()
Dnspire-keypad.c86 input_event(input, EV_MSC, MSC_SCAN, code); in nspire_keypad_irq()
Dmpr121_touchkey.c114 input_event(input, EV_MSC, MSC_SCAN, key_num); in mpr_touchkey_interrupt()
Dgpio_keys_polled.c60 input_event(input, type, button->code, state); in gpio_keys_polled_check_state()
Dlocomokbd.c168 input_event(locomokbd->input, EV_PWR, in locomokbd_scankeyboard()
Dlpc32xx-keys.c98 input_event(input, EV_MSC, MSC_SCAN, scancode); in lpc32xx_mod_states()
Dtca8418_keypad.c182 input_event(input, EV_MSC, MSC_SCAN, code); in tca8418_read_keypad()
Dtca6416-keypad.c114 input_event(input, type, button->code, !!state); in tca6416_keys_scan()
Dtwl4030_keypad.c244 input_event(input, EV_MSC, MSC_SCAN, code); in twl4030_kp_scan()
Dstmpe-keypad.c178 input_event(input, EV_MSC, MSC_SCAN, code); in stmpe_keypad_irq()
Dspear-keyboard.c90 input_event(input, EV_MSC, MSC_SCAN, val); in spear_kbd_interrupt()
Dnomadik-ske-keypad.c159 input_event(input, EV_MSC, MSC_SCAN, code); in ske_keypad_report()
Dtc3589x-keypad.c211 input_event(keypad->input, EV_MSC, MSC_SCAN, code); in tc3589x_keypad_irq()
Domap4-keypad.c149 input_event(input_dev, EV_MSC, MSC_SCAN, code); in omap4_keypad_irq_thread_fn()
Dimx_keypad.c175 input_event(input_dev, EV_MSC, MSC_SCAN, code); in imx_keypad_fire_events()
Dmatrix_keypad.c155 input_event(input_dev, EV_MSC, MSC_SCAN, code); in matrix_keypad_scan()
Dpmic8xxx-keypad.c248 input_event(kp->input, EV_MSC, MSC_SCAN, code); in __pmic8xxx_kp_scan_matrix()
Dsamsung-keypad.c137 input_event(input_dev, EV_MSC, MSC_SCAN, val); in samsung_keypad_report()
Dtegra-kbc.c151 input_event(input, EV_MSC, MSC_SCAN, scancodes[i]); in tegra_kbc_report_pressed_keys()
Dlm8323.c287 input_event(lm->idev, EV_MSC, MSC_SCAN, key); in process_keys()
/linux-4.1.27/Documentation/input/
Dff.txt127 struct input_event play;
128 struct input_event stop;
156 struct input_event ie; /* structure used to communicate with the driver */
172 struct input_event ie;
200 struct input_event {
Dinput.txt273 struct input_event {
/linux-4.1.27/include/linux/input/
Dmt.h90 input_event(dev, EV_ABS, ABS_MT_SLOT, slot); in input_mt_slot()
/linux-4.1.27/drivers/platform/x86/
Dintel_mid_powerbtn.c51 input_event(input, EV_KEY, KEY_POWER, in mfld_pb_isr()
Dfujitsu-tablet.c307 input_event(fujitsu.idev, EV_MSC, MSC_SCAN, i); in fujitsu_interrupt()
Dthinkpad_acpi.c2280 input_event(tpacpi_inputdev, EV_MSC, MSC_SCAN, scancode); in tpacpi_input_send_key()
2284 input_event(tpacpi_inputdev, EV_MSC, MSC_SCAN, scancode); in tpacpi_input_send_key()
Dsony-laptop.c438 input_event(kp.dev, EV_MSC, MSC_SCAN, scancode); in sony_laptop_report_input_event()
/linux-4.1.27/drivers/media/usb/dvb-usb/
Ddvb-usb-remote.c136 input_event(d->input_dev, EV_KEY, event, 1); in legacy_dvb_usb_read_remote_control()
138 input_event(d->input_dev, EV_KEY, d->last_event, 0); in legacy_dvb_usb_read_remote_control()
/linux-4.1.27/drivers/media/rc/
Dati_remote.c569 input_event(dev, EV_KEY, ati_remote_tbl[index].code, in ati_remote_input_report()
600 input_event(dev, EV_KEY, ati_remote_tbl[index].code, 1); in ati_remote_input_report()
601 input_event(dev, EV_KEY, ati_remote_tbl[index].code, 0); in ati_remote_input_report()
Drc-main.c609 input_event(dev->input_dev, EV_MSC, MSC_SCAN, dev->last_scancode); in rc_repeat()
645 input_event(dev->input_dev, EV_MSC, MSC_SCAN, scancode); in ir_do_keydown()
/linux-4.1.27/drivers/virtio/
Dvirtio_input.c41 input_event(vi->idev, in virtinput_recv_events()
/linux-4.1.27/include/uapi/linux/
Dinput.h24 struct input_event { struct
/linux-4.1.27/drivers/extcon/
Dextcon-max77693.c596 input_event(dock, EV_KEY, code, attached); in max77693_muic_dock_button_handler()
/linux-4.1.27/sound/soc/codecs/
Dcs42l52.c1027 input_event(cs42l52->beep, EV_SND, SND_TONE, time); in cs42l52_beep_set()
Dcs42l56.c1097 input_event(cs42l56->beep, EV_SND, SND_TONE, time); in cs42l56_beep_set()
Dwm8962.c3235 input_event(wm8962->beep, EV_SND, SND_TONE, time); in wm8962_beep_set()