Lines Matching refs:todo
887 int todo = (len > ch->used) ? ch->used : len; in add_chunked_item_iovs() local
888 if (add_iov(c, ch->data, todo) != 0) { in add_chunked_item_iovs()
892 len -= todo; in add_chunked_item_iovs()
2494 int todo = (dch->size - dch->used < sch->used - copied) in _store_item_copy_chunks() local
2496 if (remain < todo) in _store_item_copy_chunks()
2497 todo = remain; in _store_item_copy_chunks()
2498 memcpy(dch->data + dch->used, sch->data + copied, todo); in _store_item_copy_chunks()
2499 dch->used += todo; in _store_item_copy_chunks()
2500 copied += todo; in _store_item_copy_chunks()
2501 remain -= todo; in _store_item_copy_chunks()
2518 int todo = (dch->size - dch->used < len - done) in _store_item_copy_chunks() local
2521 memcpy(dch->data + dch->used, ITEM_data(s_it) + done, todo); in _store_item_copy_chunks()
2522 done += todo; in _store_item_copy_chunks()
2523 dch->used += todo; in _store_item_copy_chunks()