Lines Matching defs:input
23 #include <linux/input.h>
31 struct input_dev *input = q;
33 pm_wakeup_event(input->dev.parent, MAX_HELD_TIME);
34 input_report_key(input, KEY_POWER, 1);
35 input_sync(input);
42 struct input_dev *input = q;
44 pm_wakeup_event(input->dev.parent, MAX_HELD_TIME);
45 input_report_key(input, KEY_POWER, 0);
46 input_sync(input);
53 struct input_dev *input = q;
54 int value = test_bit(KEY_RESTART, input->key);
56 pm_wakeup_event(input->dev.parent, MAX_HELD_TIME);
57 input_report_key(input, KEY_RESTART, !value);
58 input_sync(input);
75 struct input_dev *input;
78 input = devm_input_allocate_device(dev);
79 if (!input) {
80 dev_err(dev, "failed to allocate input device\n");
84 input->phys = "hisi_on/input0";
85 input->name = "HISI 65xx PowerOn Key";
87 input_set_capability(input, EV_KEY, KEY_POWER);
88 input_set_capability(input, EV_KEY, KEY_RESTART);
100 input);
108 error = input_register_device(input);
110 dev_err(dev, "failed to register input device: %d\n", error);