Lines Matching refs:packet
57 struct ibus_packet packet; member
70 fsia6b->packet.ibuf = (data << 8) | ((fsia6b->packet.ibuf >> 8) & 0xFF); in fsia6b_serio_irq()
72 switch (fsia6b->packet.state) { in fsia6b_serio_irq()
74 if (fsia6b->packet.ibuf == 0x4020) in fsia6b_serio_irq()
75 fsia6b->packet.state = COLLECT; in fsia6b_serio_irq()
79 fsia6b->packet.state = PROCESS; in fsia6b_serio_irq()
83 fsia6b->packet.channel[fsia6b->packet.offset] = in fsia6b_serio_irq()
84 fsia6b->packet.ibuf; in fsia6b_serio_irq()
85 fsia6b->packet.offset++; in fsia6b_serio_irq()
87 if (fsia6b->packet.offset == IBUS_SERVO_COUNT) { in fsia6b_serio_irq()
88 fsia6b->packet.offset = 0; in fsia6b_serio_irq()
89 fsia6b->packet.state = SYNC; in fsia6b_serio_irq()
92 fsia6b->packet.channel[i]); in fsia6b_serio_irq()
95 if (fsia6b->packet.channel[i] > 1900) in fsia6b_serio_irq()
97 else if (fsia6b->packet.channel[i] < 1100) in fsia6b_serio_irq()
119 fsia6b->packet.state = COLLECT; in fsia6b_serio_irq()
139 fsia6b->packet.ibuf = 0; in fsia6b_serio_connect()
140 fsia6b->packet.offset = 0; in fsia6b_serio_connect()
141 fsia6b->packet.state = SYNC; in fsia6b_serio_connect()