Lines Matching defs:data
37 static unsigned char cobra_read_packet(struct gameport *gameport, unsigned int *data)
82 data[i] = ((buf[i] >> 7) & 0x000001f) | ((buf[i] >> 8) & 0x00003e0)
95 unsigned int data[2];
100 if ((r = cobra_read_packet(gameport, data)) != cobra->exists) {
110 input_report_abs(dev, ABS_X, ((data[i] >> 4) & 1) - ((data[i] >> 3) & 1));
111 input_report_abs(dev, ABS_Y, ((data[i] >> 2) & 1) - ((data[i] >> 1) & 1));
114 input_report_key(dev, cobra_btn[j], data[i] & (0x20 << j));
140 unsigned int data[2];
156 cobra->exists = cobra_read_packet(gameport, data);
159 if ((cobra->exists >> i) & data[i] & 1) {
161 " Contact vojtech@ucw.cz\n", i, gameport->phys, (data[i] >> 2) & 7);