Lines Matching refs:input
19 struct input_dev *input; member
28 struct input_dev *input = opencores_kbd->input; in opencores_kbd_isr() local
32 input_report_key(input, c & 0x7f, c & 0x80 ? 0 : 1); in opencores_kbd_isr()
33 input_sync(input); in opencores_kbd_isr()
40 struct input_dev *input; in opencores_kbd_probe() local
53 input = devm_input_allocate_device(&pdev->dev); in opencores_kbd_probe()
54 if (!input) { in opencores_kbd_probe()
59 opencores_kbd->input = input; in opencores_kbd_probe()
65 input->name = pdev->name; in opencores_kbd_probe()
66 input->phys = "opencores-kbd/input0"; in opencores_kbd_probe()
68 input->id.bustype = BUS_HOST; in opencores_kbd_probe()
69 input->id.vendor = 0x0001; in opencores_kbd_probe()
70 input->id.product = 0x0001; in opencores_kbd_probe()
71 input->id.version = 0x0100; in opencores_kbd_probe()
73 input->keycode = opencores_kbd->keycodes; in opencores_kbd_probe()
74 input->keycodesize = sizeof(opencores_kbd->keycodes[0]); in opencores_kbd_probe()
75 input->keycodemax = ARRAY_SIZE(opencores_kbd->keycodes); in opencores_kbd_probe()
77 __set_bit(EV_KEY, input->evbit); in opencores_kbd_probe()
85 __set_bit(opencores_kbd->keycodes[i], input->keybit); in opencores_kbd_probe()
87 __clear_bit(KEY_RESERVED, input->keybit); in opencores_kbd_probe()
97 error = input_register_device(input); in opencores_kbd_probe()