• Home
  • Raw
  • Download

Lines Matching refs:gunze

36 struct gunze {  struct
44 static void gunze_process_packet(struct gunze *gunze) in gunze_process_packet() argument
46 struct input_dev *dev = gunze->dev; in gunze_process_packet()
48 if (gunze->idx != GUNZE_MAX_LENGTH || gunze->data[5] != ',' || in gunze_process_packet()
49 (gunze->data[0] != 'T' && gunze->data[0] != 'R')) { in gunze_process_packet()
50 printk(KERN_WARNING "gunze.c: bad packet: >%.*s<\n", GUNZE_MAX_LENGTH, gunze->data); in gunze_process_packet()
54 input_report_abs(dev, ABS_X, simple_strtoul(gunze->data + 1, NULL, 10)); in gunze_process_packet()
55 input_report_abs(dev, ABS_Y, 1024 - simple_strtoul(gunze->data + 6, NULL, 10)); in gunze_process_packet()
56 input_report_key(dev, BTN_TOUCH, gunze->data[0] == 'T'); in gunze_process_packet()
63 struct gunze *gunze = serio_get_drvdata(serio); in gunze_interrupt() local
66 gunze_process_packet(gunze); in gunze_interrupt()
67 gunze->idx = 0; in gunze_interrupt()
69 if (gunze->idx < GUNZE_MAX_LENGTH) in gunze_interrupt()
70 gunze->data[gunze->idx++] = data; in gunze_interrupt()
81 struct gunze *gunze = serio_get_drvdata(serio); in gunze_disconnect() local
83 input_get_device(gunze->dev); in gunze_disconnect()
84 input_unregister_device(gunze->dev); in gunze_disconnect()
87 input_put_device(gunze->dev); in gunze_disconnect()
88 kfree(gunze); in gunze_disconnect()
99 struct gunze *gunze; in gunze_connect() local
103 gunze = kzalloc(sizeof(struct gunze), GFP_KERNEL); in gunze_connect()
105 if (!gunze || !input_dev) { in gunze_connect()
110 gunze->serio = serio; in gunze_connect()
111 gunze->dev = input_dev; in gunze_connect()
112 snprintf(gunze->phys, sizeof(serio->phys), "%s/input0", serio->phys); in gunze_connect()
115 input_dev->phys = gunze->phys; in gunze_connect()
126 serio_set_drvdata(serio, gunze); in gunze_connect()
132 err = input_register_device(gunze->dev); in gunze_connect()
141 kfree(gunze); in gunze_connect()