Lines Matching refs:rest
358 size_t rest; in BIO_zero_copy_get_write_buf_done() local
391 rest = bio_zero_copy_get_write_buf(b, &dummy_write_buf, &dummy_write_offset); in BIO_zero_copy_get_write_buf_done()
393 if (bytes_written > rest) { in BIO_zero_copy_get_write_buf_done()
407 size_t rest; in bio_read() local
451 rest = size; in bio_read()
453 assert(rest > 0); in bio_read()
458 assert(rest <= peer_b->len); in bio_read()
459 if (peer_b->offset + rest <= peer_b->size) { in bio_read()
460 chunk = rest; in bio_read()
482 assert(chunk == rest); in bio_read()
485 rest -= chunk; in bio_read()
486 } while (rest); in bio_read()
493 size_t rest; in bio_write() local
531 rest = num; in bio_write()
533 assert(rest > 0); in bio_write()
539 assert(b->len + rest <= b->size); in bio_write()
547 if (write_offset + rest <= b->size) { in bio_write()
548 chunk = rest; in bio_write()
560 rest -= chunk; in bio_write()
562 } while (rest); in bio_write()