Home
last modified time | relevance | path

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

/openbmc/linux/drivers/input/joystick/
H A Dcobra.c24 #define COBRA_LENGTH 36 macro
61 if ((w & 0x30) < 0x30 && r[i] < COBRA_LENGTH && t[i] > 0) { in cobra_read_packet()
75 if (r[i] != COBRA_LENGTH) continue; in cobra_read_packet()
77 for (j = 0; j < COBRA_LENGTH && (buf[i] & 0x04104107f) ^ 0x041041040; j++) in cobra_read_packet()
78 buf[i] = (buf[i] >> 1) | ((__u64)(buf[i] & 1) << (COBRA_LENGTH - 1)); in cobra_read_packet()
80 if (j < COBRA_LENGTH) ret |= (1 << i); in cobra_read_packet()