Lines Matching refs:opencores_kbd
18 struct opencores_kbd { struct
27 struct opencores_kbd *opencores_kbd = dev_id; in opencores_kbd_isr() argument
28 struct input_dev *input = opencores_kbd->input; in opencores_kbd_isr()
31 c = readb(opencores_kbd->addr); in opencores_kbd_isr()
41 struct opencores_kbd *opencores_kbd; in opencores_kbd_probe() local
48 opencores_kbd = devm_kzalloc(&pdev->dev, sizeof(*opencores_kbd), in opencores_kbd_probe()
50 if (!opencores_kbd) in opencores_kbd_probe()
59 opencores_kbd->input = input; in opencores_kbd_probe()
61 opencores_kbd->addr = devm_platform_ioremap_resource(pdev, 0); in opencores_kbd_probe()
62 if (IS_ERR(opencores_kbd->addr)) in opencores_kbd_probe()
63 return PTR_ERR(opencores_kbd->addr); 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()
79 for (i = 0; i < ARRAY_SIZE(opencores_kbd->keycodes); i++) { in opencores_kbd_probe()
84 opencores_kbd->keycodes[i] = i; in opencores_kbd_probe()
85 __set_bit(opencores_kbd->keycodes[i], input->keybit); in opencores_kbd_probe()
91 pdev->name, opencores_kbd); in opencores_kbd_probe()