Searched refs:to_copy (Results 1 – 2 of 2) sorted by relevance
51 size_t to_copy = (size_t) (iov->iov_len - iov_pos); in iovec_to_membuf() local54 if (to_copy > buf_len) in iovec_to_membuf()55 to_copy = buf_len; in iovec_to_membuf()58 memcpy (buf + buf_pos, (uint8_t *)iov->iov_base + iov_pos, to_copy); in iovec_to_membuf()61 buf_pos += to_copy; in iovec_to_membuf()62 buf_len -= to_copy; in iovec_to_membuf()
1182 size_t to_copy = MIN(s->tx_buffer_size - s->tx_buffer_offset, len - off); in tcp_write() local1183 if (to_copy == 0) { in tcp_write()1188 memcpy(s->tx_buffer + s->tx_buffer_offset, (uint8_t *)buf + off, to_copy); in tcp_write()1189 s->tx_buffer_offset += to_copy; in tcp_write()1200 off += to_copy; in tcp_write()
Completed in 6 milliseconds