Lines Matching refs:inpos
1095 int inpos = s->in_len; in serial_fd_receive() local
1105 int wanted = HEADER_SIZE - inpos; in serial_fd_receive()
1109 memcpy( inp->data + inpos, p->data + rpos, avail ); in serial_fd_receive()
1110 inpos += avail; in serial_fd_receive()
1113 if (inpos == HEADER_SIZE) { in serial_fd_receive()
1124 inpos = 0; in serial_fd_receive()
1129 int wanted = s->in_datalen - inpos; in serial_fd_receive()
1134 memcpy( inp->data + inpos, p->data + rpos, avail ); in serial_fd_receive()
1135 inpos += avail; in serial_fd_receive()
1138 if (inpos == s->in_datalen) { in serial_fd_receive()
1141 inpos, s->in_channel); in serial_fd_receive()
1143 inp->len = inpos; in serial_fd_receive()
1149 inpos = 0; in serial_fd_receive()
1153 s->in_len = inpos; in serial_fd_receive()