Lines Matching refs:fujitsu

27 struct fujitsu {  struct
46 struct fujitsu *fujitsu = serio_get_drvdata(serio); in fujitsu_interrupt() argument
47 struct input_dev *dev = fujitsu->dev; in fujitsu_interrupt()
49 if (fujitsu->idx == 0) { in fujitsu_interrupt()
56 fujitsu->idx = 0; in fujitsu_interrupt()
61 fujitsu->data[fujitsu->idx++] = data; in fujitsu_interrupt()
62 if (fujitsu->idx == FUJITSU_LENGTH) { in fujitsu_interrupt()
64 (fujitsu->data[2] << 7) | fujitsu->data[1]); in fujitsu_interrupt()
66 (fujitsu->data[4] << 7) | fujitsu->data[3]); in fujitsu_interrupt()
68 (fujitsu->data[0] & 0x03) != 2); in fujitsu_interrupt()
70 fujitsu->idx = 0; in fujitsu_interrupt()
81 struct fujitsu *fujitsu = serio_get_drvdata(serio); in fujitsu_disconnect() local
83 input_get_device(fujitsu->dev); in fujitsu_disconnect()
84 input_unregister_device(fujitsu->dev); in fujitsu_disconnect()
87 input_put_device(fujitsu->dev); in fujitsu_disconnect()
88 kfree(fujitsu); in fujitsu_disconnect()
98 struct fujitsu *fujitsu; in fujitsu_connect() local
102 fujitsu = kzalloc(sizeof(*fujitsu), GFP_KERNEL); in fujitsu_connect()
104 if (!fujitsu || !input_dev) { in fujitsu_connect()
109 fujitsu->serio = serio; in fujitsu_connect()
110 fujitsu->dev = input_dev; in fujitsu_connect()
111 snprintf(fujitsu->phys, sizeof(fujitsu->phys), in fujitsu_connect()
115 input_dev->phys = fujitsu->phys; in fujitsu_connect()
125 serio_set_drvdata(serio, fujitsu); in fujitsu_connect()
131 err = input_register_device(fujitsu->dev); in fujitsu_connect()
143 kfree(fujitsu); in fujitsu_connect()