Lines Matching refs:input_dev
66 struct input_dev *input;
75 struct input_dev *input_dev = jornadakbd->input; in jornada_parse_kbd() local
92 input_event(input_dev, in jornada_parse_kbd()
94 input_report_key(input_dev, in jornada_parse_kbd()
103 input_sync(input_dev); in jornada_parse_kbd()
169 static void jornadakbd680_poll(struct input_dev *input) in jornadakbd680_poll()
181 struct input_dev *input_dev; in jornada680kbd_probe() local
189 input_dev = devm_input_allocate_device(&pdev->dev); in jornada680kbd_probe()
190 if (!input_dev) { in jornada680kbd_probe()
195 jornadakbd->input = input_dev; in jornada680kbd_probe()
200 input_set_drvdata(input_dev, jornadakbd); in jornada680kbd_probe()
201 input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REP); in jornada680kbd_probe()
202 input_dev->name = "HP Jornada 680 keyboard"; in jornada680kbd_probe()
203 input_dev->phys = "jornadakbd/input0"; in jornada680kbd_probe()
204 input_dev->keycode = jornadakbd->keymap; in jornada680kbd_probe()
205 input_dev->keycodesize = sizeof(unsigned short); in jornada680kbd_probe()
206 input_dev->keycodemax = ARRAY_SIZE(jornada_scancodes); in jornada680kbd_probe()
207 input_dev->id.bustype = BUS_HOST; in jornada680kbd_probe()
211 __set_bit(jornadakbd->keymap[i], input_dev->keybit); in jornada680kbd_probe()
212 __clear_bit(KEY_RESERVED, input_dev->keybit); in jornada680kbd_probe()
214 input_set_capability(input_dev, EV_MSC, MSC_SCAN); in jornada680kbd_probe()
216 error = input_setup_polling(input_dev, jornadakbd680_poll); in jornada680kbd_probe()
222 input_set_poll_interval(input_dev, 50 /* msec */); in jornada680kbd_probe()
224 error = input_register_device(input_dev); in jornada680kbd_probe()