Lines Matching defs:input
8 #include <linux/input.h>
42 struct input_dev *input;
48 struct input_dev *input = bbnsm->input;
58 input_event(input, EV_KEY, bbnsm->keycode, state);
59 input_sync(input);
60 pm_relax(bbnsm->input->dev.parent);
79 pm_wakeup_event(bbnsm->input->dev.parent, 0);
100 struct input_dev *input;
133 input = devm_input_allocate_device(&pdev->dev);
134 if (!input) {
135 dev_err(&pdev->dev, "failed to allocate the input device\n");
139 input->name = pdev->name;
140 input->phys = "bbnsm-pwrkey/input0";
141 input->id.bustype = BUS_HOST;
143 input_set_capability(input, EV_KEY, bbnsm->keycode);
145 /* input customer action to cancel release timer */
152 bbnsm->input = input;
162 error = input_register_device(input);
164 dev_err(&pdev->dev, "failed to register input device\n");