Lines Matching +full:0 +full:x1f00000
26 …START, BTN_SELECT, BTN_TL, BTN_TR, BTN_X, BTN_Y, BTN_Z, BTN_A, BTN_B, BTN_C, BTN_TL2, BTN_TR2, 0 };
47 for (i = 0; i < 2; i++) { in cobra_read_packet()
48 r[i] = buf[i] = 0; in cobra_read_packet()
57 t[0]--; t[1]--; in cobra_read_packet()
59 for (i = 0, w = u ^ v; i < 2 && w; i++, w >>= 2) in cobra_read_packet()
60 if (w & 0x30) { in cobra_read_packet()
61 if ((w & 0x30) < 0x30 && r[i] < COBRA_LENGTH && t[i] > 0) { in cobra_read_packet()
65 } else t[i] = 0; in cobra_read_packet()
67 } while (t[0] > 0 || t[1] > 0); in cobra_read_packet()
71 ret = 0; in cobra_read_packet()
73 for (i = 0; i < 2; i++) { in cobra_read_packet()
77 for (j = 0; j < COBRA_LENGTH && (buf[i] & 0x04104107f) ^ 0x041041040; j++) in cobra_read_packet()
82 data[i] = ((buf[i] >> 7) & 0x000001f) | ((buf[i] >> 8) & 0x00003e0) in cobra_read_packet()
83 | ((buf[i] >> 9) & 0x0007c00) | ((buf[i] >> 10) & 0x00f8000) in cobra_read_packet()
84 | ((buf[i] >> 11) & 0x1f00000); in cobra_read_packet()
105 for (i = 0; i < 2; i++) in cobra_poll()
113 for (j = 0; cobra_btn[j]; j++) in cobra_poll()
114 input_report_key(dev, cobra_btn[j], data[i] & (0x20 << j)); in cobra_poll()
126 return 0; in cobra_open()
158 for (i = 0; i < 2; i++) in cobra_connect()
173 for (i = 0; i < 2; i++) { in cobra_connect()
190 input_dev->id.product = 0x0008; in cobra_connect()
191 input_dev->id.version = 0x0100; in cobra_connect()
199 input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); in cobra_connect()
200 input_set_abs_params(input_dev, ABS_X, -1, 1, 0, 0); in cobra_connect()
201 input_set_abs_params(input_dev, ABS_Y, -1, 1, 0, 0); in cobra_connect()
202 for (j = 0; cobra_btn[j]; j++) in cobra_connect()
210 return 0; in cobra_connect()
213 fail3: while (--i >= 0) in cobra_connect()
227 for (i = 0; i < 2; i++) in cobra_disconnect()