Lines Matching refs:avail
928 int avail, len; in fdhandler_event() local
930 avail = p->len - f->out_pos; in fdhandler_event()
931 if ((len = fd_write(f->fd, p->data + f->out_pos, avail)) < 0) { in fdhandler_event()
1100 int avail = rcount - rpos; in serial_fd_receive() local
1105 if (avail > wanted) in serial_fd_receive()
1106 avail = wanted; in serial_fd_receive()
1108 memcpy( inp->data + inpos, p->data + rpos, avail ); in serial_fd_receive()
1109 inpos += avail; in serial_fd_receive()
1110 rpos += avail; in serial_fd_receive()
1130 if (avail > wanted) in serial_fd_receive()
1131 avail = wanted; in serial_fd_receive()
1133 memcpy( inp->data + inpos, p->data + rpos, avail ); in serial_fd_receive()
1134 inpos += avail; in serial_fd_receive()
1135 rpos += avail; in serial_fd_receive()