Lines Matching refs:idx
60 int idx; member
82 if (spaceorb->idx < 2) return; in spaceorb_process_packet()
83 for (i = 0; i < spaceorb->idx; i++) c ^= data[i]; in spaceorb_process_packet()
89 spaceorb->data[spaceorb->idx - 1] = 0; in spaceorb_process_packet()
90 for (i = 1; i < spaceorb->idx && spaceorb->data[i] == ' '; i++); in spaceorb_process_packet()
96 if (spaceorb->idx != 12) return; in spaceorb_process_packet()
111 if (spaceorb->idx != 5) return; in spaceorb_process_packet()
118 if (spaceorb->idx != 4) return; in spaceorb_process_packet()
131 if (spaceorb->idx) spaceorb_process_packet(spaceorb); in spaceorb_interrupt()
132 spaceorb->idx = 0; in spaceorb_interrupt()
134 if (spaceorb->idx < SPACEORB_MAX_LENGTH) in spaceorb_interrupt()
135 spaceorb->data[spaceorb->idx++] = data & 0x7f; in spaceorb_interrupt()