Lines Matching refs:input
106 struct input_dev *input; member
211 input_event(keypad->input, EV_MSC, MSC_SCAN, code); in tc3589x_keypad_irq()
212 input_report_key(keypad->input, keypad->keymap[code], !up); in tc3589x_keypad_irq()
213 input_sync(keypad->input); in tc3589x_keypad_irq()
292 static int tc3589x_keypad_open(struct input_dev *input) in tc3589x_keypad_open() argument
295 struct tc_keypad *keypad = input_get_drvdata(input); in tc3589x_keypad_open()
300 dev_err(&input->dev, "failed to enable keypad module\n"); in tc3589x_keypad_open()
306 dev_err(&input->dev, "failed to configure keypad module\n"); in tc3589x_keypad_open()
313 static void tc3589x_keypad_close(struct input_dev *input) in tc3589x_keypad_close() argument
315 struct tc_keypad *keypad = input_get_drvdata(input); in tc3589x_keypad_close()
375 struct input_dev *input; in tc3589x_keypad_probe() local
390 input = input_allocate_device(); in tc3589x_keypad_probe()
391 if (!keypad || !input) { in tc3589x_keypad_probe()
398 keypad->input = input; in tc3589x_keypad_probe()
401 input->id.bustype = BUS_I2C; in tc3589x_keypad_probe()
402 input->name = pdev->name; in tc3589x_keypad_probe()
403 input->dev.parent = &pdev->dev; in tc3589x_keypad_probe()
405 input->open = tc3589x_keypad_open; in tc3589x_keypad_probe()
406 input->close = tc3589x_keypad_close; in tc3589x_keypad_probe()
410 NULL, input); in tc3589x_keypad_probe()
416 keypad->keymap = input->keycode; in tc3589x_keypad_probe()
418 input_set_capability(input, EV_MSC, MSC_SCAN); in tc3589x_keypad_probe()
420 __set_bit(EV_REP, input->evbit); in tc3589x_keypad_probe()
422 input_set_drvdata(input, keypad); in tc3589x_keypad_probe()
434 error = input_register_device(input); in tc3589x_keypad_probe()
451 input_free_device(input); in tc3589x_keypad_probe()
466 input_unregister_device(keypad->input); in tc3589x_keypad_remove()