Lines Matching refs:rest
152 size_t rest; in bio_read() local
196 rest = size; in bio_read()
198 assert(rest > 0); in bio_read()
203 assert(rest <= peer_b->len); in bio_read()
204 if (peer_b->offset + rest <= peer_b->size) { in bio_read()
205 chunk = rest; in bio_read()
224 assert(chunk == rest); in bio_read()
227 rest -= chunk; in bio_read()
228 } while (rest); in bio_read()
235 size_t rest; in bio_write() local
269 rest = num; in bio_write()
271 assert(rest > 0); in bio_write()
277 assert(b->len + rest <= b->size); in bio_write()
285 if (write_offset + rest <= b->size) { in bio_write()
286 chunk = rest; in bio_write()
298 rest -= chunk; in bio_write()
300 } while (rest); in bio_write()