Home
last modified time | relevance | path

Searched refs:bitout (Results 1 – 1 of 1) sorted by relevance

/linux-6.15/drivers/input/joystick/
H A Dsidewinder.c120 int timeout, bitout, sched, i, kick, start, strobe; in sw_read_packet() local
128 bitout = start; in sw_read_packet()
138 bitout--; in sw_read_packet()
141 } while (!(~v & u & 0x10) && (bitout > 0)); /* Wait for first falling edge on clock */ in sw_read_packet()
143 if (bitout > 0) in sw_read_packet()
144 bitout = strobe; /* Extend time if not timed out */ in sw_read_packet()
146 while ((timeout > 0 || bitout > 0) && (i < length)) { in sw_read_packet()
149 bitout--; /* Decrement timers */ in sw_read_packet()
155 if ((~u & v & 0x10) && (bitout > 0)) { /* Rising edge on clock - data bit */ in sw_read_packet()
159 bitout = strobe; /* Extend timeout for next bit */ in sw_read_packet()
[all …]