spaceball          66 drivers/input/joystick/spaceball.c static void spaceball_process_packet(struct spaceball* spaceball)
spaceball          68 drivers/input/joystick/spaceball.c 	struct input_dev *dev = spaceball->dev;
spaceball          69 drivers/input/joystick/spaceball.c 	unsigned char *data = spaceball->data;
spaceball          72 drivers/input/joystick/spaceball.c 	if (spaceball->idx < 2) return;
spaceball          74 drivers/input/joystick/spaceball.c 	switch (spaceball->data[0]) {
spaceball          77 drivers/input/joystick/spaceball.c 			if (spaceball->idx != 15) return;
spaceball          84 drivers/input/joystick/spaceball.c 			if (spaceball->idx != 3) return;
spaceball          96 drivers/input/joystick/spaceball.c 			if (spaceball->idx != 3) return;
spaceball         113 drivers/input/joystick/spaceball.c 			spaceball->data[spaceball->idx - 1] = 0;
spaceball         114 drivers/input/joystick/spaceball.c 			printk(KERN_ERR "spaceball: Device error. [%s]\n", spaceball->data + 1);
spaceball         118 drivers/input/joystick/spaceball.c 			spaceball->data[spaceball->idx - 1] = 0;
spaceball         119 drivers/input/joystick/spaceball.c 			printk(KERN_ERR "spaceball: Bad command. [%s]\n", spaceball->data + 1);
spaceball         135 drivers/input/joystick/spaceball.c 	struct spaceball *spaceball = serio_get_drvdata(serio);
spaceball         139 drivers/input/joystick/spaceball.c 			spaceball_process_packet(spaceball);
spaceball         140 drivers/input/joystick/spaceball.c 			spaceball->idx = 0;
spaceball         141 drivers/input/joystick/spaceball.c 			spaceball->escape = 0;
spaceball         144 drivers/input/joystick/spaceball.c 			if (!spaceball->escape) {
spaceball         145 drivers/input/joystick/spaceball.c 				spaceball->escape = 1;
spaceball         148 drivers/input/joystick/spaceball.c 			spaceball->escape = 0;
spaceball         153 drivers/input/joystick/spaceball.c 			if (spaceball->escape) {
spaceball         154 drivers/input/joystick/spaceball.c 				spaceball->escape = 0;
spaceball         159 drivers/input/joystick/spaceball.c 			if (spaceball->escape)
spaceball         160 drivers/input/joystick/spaceball.c 				spaceball->escape = 0;
spaceball         161 drivers/input/joystick/spaceball.c 			if (spaceball->idx < SPACEBALL_MAX_LENGTH)
spaceball         162 drivers/input/joystick/spaceball.c 				spaceball->data[spaceball->idx++] = data;
spaceball         174 drivers/input/joystick/spaceball.c 	struct spaceball* spaceball = serio_get_drvdata(serio);
spaceball         178 drivers/input/joystick/spaceball.c 	input_unregister_device(spaceball->dev);
spaceball         179 drivers/input/joystick/spaceball.c 	kfree(spaceball);
spaceball         190 drivers/input/joystick/spaceball.c 	struct spaceball *spaceball;
spaceball         198 drivers/input/joystick/spaceball.c 	spaceball = kmalloc(sizeof(struct spaceball), GFP_KERNEL);
spaceball         200 drivers/input/joystick/spaceball.c 	if (!spaceball || !input_dev)
spaceball         203 drivers/input/joystick/spaceball.c 	spaceball->dev = input_dev;
spaceball         204 drivers/input/joystick/spaceball.c 	snprintf(spaceball->phys, sizeof(spaceball->phys), "%s/input0", serio->phys);
spaceball         207 drivers/input/joystick/spaceball.c 	input_dev->phys = spaceball->phys;
spaceball         240 drivers/input/joystick/spaceball.c 	serio_set_drvdata(serio, spaceball);
spaceball         246 drivers/input/joystick/spaceball.c 	err = input_register_device(spaceball->dev);
spaceball         255 drivers/input/joystick/spaceball.c 	kfree(spaceball);