Lines Matching refs:cmd_read
158 if(tube->cmd_read < sizeof(tube->cmd_len)) {
160 r = read(c->fd, ((uint8_t*)&tube->cmd_len) + tube->cmd_read,
161 sizeof(tube->cmd_len) - tube->cmd_read);
177 tube->cmd_read += r;
178 if(tube->cmd_read < sizeof(tube->cmd_len)) {
185 tube->cmd_read = 0;
190 r = read(c->fd, tube->cmd_msg+tube->cmd_read-sizeof(tube->cmd_len),
191 tube->cmd_len - (tube->cmd_read - sizeof(tube->cmd_len)));
207 tube->cmd_read += r;
208 if(tube->cmd_read < sizeof(tube->cmd_len) + tube->cmd_len) {
212 tube->cmd_read = 0;