printk(KERN_ERR "joy-spaceorb: Device error. [ "); 
printk(KERN_ERR "spaceorb: Device error. [ "); 
static void spaceorb_process_packet(struct spaceorb *spaceorb, struct pt_regs *regs){	struct input_dev *dev = &spaceorb->dev;	unsigned char *data = spaceorb->data;	unsigned char c = 0;	int axes[6];	int i;	if (spaceorb->idx < 2) return;	for (i = 0; i < spaceorb->idx; i++) c ^= data[i];	if (c) return;	input_regs(dev, regs);	switch (data[0]) {		case 'R':				/* Reset packet */			spaceorb->data[spaceorb->idx - 1] = 0;			for (i = 1; i < spaceorb->idx && spaceorb->data[i] == ' '; i++);			printk(KERN_INFO "input: %s [%s] on %s\n",				 spaceorb_name, spaceorb->data + i, spaceorb->serio->phys);			break;		case 'D':				/* Ball + button data */			if (spaceorb->idx != 12) return;			for (i = 0; i < 9; i++) spaceorb->data[i+2] ^= spaceorb_xor[i];			axes[0] = ( data[2]	 << 3) | (data[ 3] >> 4);			axes[1] = ((data[3] & 0x0f) << 6) | (data[ 4] >> 1);			axes[2] = ((data[4] & 0x01) << 9) | (data[ 5] << 2) | (data[4] >> 5);			axes[3] = ((data[6] & 0x1f) << 5) | (data[ 7] >> 2);			axes[4] = ((data[7] & 0x03) << 8) | (data[ 8] << 1) | (data[7] >> 6);			axes[5] = ((data[9] & 0x3f) << 4) | (data[10] >> 3);			for (i = 0; i < 6; i++)				input_report_abs(dev, spaceorb_axes[i], axes[i] - ((axes[i] & 0x200) ? 1024 : 0));			for (i = 0; i < 6; i++)				input_report_key(dev, spaceorb_buttons[i], (data[1] >> i) & 1);			break;		case 'K':				/* Button data */			if (spaceorb->idx != 5) return;			for (i = 0; i < 6; i++)				input_report_key(dev, spaceorb_buttons[i], (data[2] >> i) & 1);			break;		case 'E':				/* Error packet */			if (spaceorb->idx != 4) return;			printk(KERN_ERR "joy-spaceorb: Device error. [ ");			for (i = 0; i < 7; i++) if (data[1] & (1 << i)) printk("%s ", spaceorb_errors[i]);			printk("]\n");			break;	}	input_sync(dev);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/17dd3f0f7aa729a042af5d3318ff9b3e7781b45b/spaceorb.c/buggy/drivers/input/joystick/spaceorb.c