Lines Matching refs:input
31 struct input_dev *input = q; in hi65xx_power_press_isr() local
33 pm_wakeup_event(input->dev.parent, MAX_HELD_TIME); in hi65xx_power_press_isr()
34 input_report_key(input, KEY_POWER, 1); in hi65xx_power_press_isr()
35 input_sync(input); in hi65xx_power_press_isr()
42 struct input_dev *input = q; in hi65xx_power_release_isr() local
44 pm_wakeup_event(input->dev.parent, MAX_HELD_TIME); in hi65xx_power_release_isr()
45 input_report_key(input, KEY_POWER, 0); in hi65xx_power_release_isr()
46 input_sync(input); in hi65xx_power_release_isr()
53 struct input_dev *input = q; in hi65xx_restart_toggle_isr() local
54 int value = test_bit(KEY_RESTART, input->key); in hi65xx_restart_toggle_isr()
56 pm_wakeup_event(input->dev.parent, MAX_HELD_TIME); in hi65xx_restart_toggle_isr()
57 input_report_key(input, KEY_RESTART, !value); in hi65xx_restart_toggle_isr()
58 input_sync(input); in hi65xx_restart_toggle_isr()
75 struct input_dev *input; in hi65xx_powerkey_probe() local
78 input = devm_input_allocate_device(dev); in hi65xx_powerkey_probe()
79 if (!input) { in hi65xx_powerkey_probe()
84 input->phys = "hisi_on/input0"; in hi65xx_powerkey_probe()
85 input->name = "HISI 65xx PowerOn Key"; in hi65xx_powerkey_probe()
87 input_set_capability(input, EV_KEY, KEY_POWER); in hi65xx_powerkey_probe()
88 input_set_capability(input, EV_KEY, KEY_RESTART); in hi65xx_powerkey_probe()
100 input); in hi65xx_powerkey_probe()
108 error = input_register_device(input); in hi65xx_powerkey_probe()