Lines Matching refs:avail
929 int avail, len; in fdhandler_event() local
931 avail = p->len - f->out_pos; in fdhandler_event()
932 if ((len = fd_write(f->fd, p->data + f->out_pos, avail)) < 0) { in fdhandler_event()
1101 int avail = rcount - rpos; in serial_fd_receive() local
1106 if (avail > wanted) in serial_fd_receive()
1107 avail = wanted; in serial_fd_receive()
1109 memcpy( inp->data + inpos, p->data + rpos, avail ); in serial_fd_receive()
1110 inpos += avail; in serial_fd_receive()
1111 rpos += avail; in serial_fd_receive()
1131 if (avail > wanted) in serial_fd_receive()
1132 avail = wanted; in serial_fd_receive()
1134 memcpy( inp->data + inpos, p->data + rpos, avail ); in serial_fd_receive()
1135 inpos += avail; in serial_fd_receive()
1136 rpos += avail; in serial_fd_receive()