Lines Matching refs:input
25 struct input_dev *input; member
50 input_report_key(keys->input, keys->codes[key], down); in micro_key_receive()
51 input_sync(keys->input); in micro_key_receive()
71 static int micro_key_open(struct input_dev *input) in micro_key_open() argument
73 struct ipaq_micro_keys *keys = input_get_drvdata(input); in micro_key_open()
80 static void micro_key_close(struct input_dev *input) in micro_key_close() argument
82 struct ipaq_micro_keys *keys = input_get_drvdata(input); in micro_key_close()
99 keys->input = devm_input_allocate_device(&pdev->dev); in micro_key_probe()
100 if (!keys->input) in micro_key_probe()
103 keys->input->keycodesize = sizeof(micro_keycodes[0]); in micro_key_probe()
104 keys->input->keycodemax = ARRAY_SIZE(micro_keycodes); in micro_key_probe()
106 keys->input->keycodesize * keys->input->keycodemax, in micro_key_probe()
111 keys->input->keycode = keys->codes; in micro_key_probe()
113 __set_bit(EV_KEY, keys->input->evbit); in micro_key_probe()
115 __set_bit(micro_keycodes[i], keys->input->keybit); in micro_key_probe()
117 keys->input->name = "h3600 micro keys"; in micro_key_probe()
118 keys->input->open = micro_key_open; in micro_key_probe()
119 keys->input->close = micro_key_close; in micro_key_probe()
120 input_set_drvdata(keys->input, keys); in micro_key_probe()
122 error = input_register_device(keys->input); in micro_key_probe()
142 struct input_dev *input = keys->input; in micro_key_resume() local
144 mutex_lock(&input->mutex); in micro_key_resume()
146 if (input_device_enabled(input)) in micro_key_resume()
149 mutex_unlock(&input->mutex); in micro_key_resume()