Lines Matching refs:skbd
46 struct skbd { struct
56 struct skbd *skbd = serio_get_drvdata(serio); in skbd_interrupt() argument
57 struct input_dev *dev = skbd->dev; in skbd_interrupt()
59 if (skbd->keycode[data & SKBD_KEY_MASK]) { in skbd_interrupt()
60 input_report_key(dev, skbd->keycode[data & SKBD_KEY_MASK], in skbd_interrupt()
70 struct skbd *skbd; in skbd_connect() local
75 skbd = kzalloc(sizeof(struct skbd), GFP_KERNEL); in skbd_connect()
77 if (!skbd || !input_dev) in skbd_connect()
80 skbd->serio = serio; in skbd_connect()
81 skbd->dev = input_dev; in skbd_connect()
82 snprintf(skbd->phys, sizeof(skbd->phys), "%s/input0", serio->phys); in skbd_connect()
83 memcpy(skbd->keycode, skbd_keycode, sizeof(skbd->keycode)); in skbd_connect()
86 input_dev->phys = skbd->phys; in skbd_connect()
94 input_dev->keycode = skbd->keycode; in skbd_connect()
101 serio_set_drvdata(serio, skbd); in skbd_connect()
107 err = input_register_device(skbd->dev); in skbd_connect()
116 kfree(skbd); in skbd_connect()
122 struct skbd *skbd = serio_get_drvdata(serio); in skbd_disconnect() local
126 input_unregister_device(skbd->dev); in skbd_disconnect()
127 kfree(skbd); in skbd_disconnect()