Lines Matching refs:done
1514 int done = 0; in _store_item_copy_chunks() local
1516 while (len > done && dch) { in _store_item_copy_chunks()
1517 int todo = (dch->size - dch->used < len - done) in _store_item_copy_chunks()
1518 ? dch->size - dch->used : len - done; in _store_item_copy_chunks()
1520 memcpy(dch->data + dch->used, ITEM_data(s_it) + done, todo); in _store_item_copy_chunks()
1521 done += todo; in _store_item_copy_chunks()
1525 item_chunk *tch = do_item_alloc_chunk(dch, len - done); in _store_item_copy_chunks()
1533 assert(len == done); in _store_item_copy_chunks()
2606 int done = resp->chunked_total - resp->iov[x].iov_len; local
2616 if (done >= ch->used) {
2617 done -= ch->used;
2620 } else if (done) {
2621 skip = done;
2622 done = 0;