Lines Matching defs:data
111 * sw_read_packet() is a function which reads either a data packet, or an
122 i = -id; /* Don't care about data, only want ID */
154 if ((~u & v & 0x10) && (bitout > 0)) { /* Rising edge on clock - data bit */
155 if (i >= 0) /* Want this data */
200 __u64 data = 0;
206 data |= (__u64)((buf[i] >> tri++) & 1) << bit++; /* Transfer bit */
213 return data;
278 * sw_parse() analyzes SideWinder joystick data, and writes the results into
401 * sw_read() reads SideWinder joystick data, and reinitializes
429 memmove(buf, buf + i - 22, 22); /* Move data */
434 if (i == sw->length && !sw_parse(buf, sw)) { /* Parse data */
472 i = sw_read_packet(sw->gameport, buf, SW_LENGTH, 0); /* Read normal data packet */
603 if (!i) { /* No data. 3d Pro analog mode? */
609 if (!i) { /* No data -> FAIL */
640 i = sw_read_packet(gameport, buf, SW_LENGTH, 0); /* Read data packet */
766 dbg("%s%s [%d-bit id %d data %d]\n", sw->name, comment, m, l, k);