Searched refs:dch (Results 1 – 2 of 2) sorted by relevance
16 item_chunk *dch = (item_chunk *) ITEM_schunk(d_it); in _store_item_copy_from_buf() local19 while (len > done && dch) { in _store_item_copy_from_buf()20 int todo = (dch->size - dch->used < len - done) in _store_item_copy_from_buf()21 ? dch->size - dch->used : len - done; in _store_item_copy_from_buf()22 memcpy(dch->data + dch->used, buf + done, todo); in _store_item_copy_from_buf()24 dch->used += todo; in _store_item_copy_from_buf()25 assert(dch->used <= dch->size); in _store_item_copy_from_buf()27 if (dch->size == dch->used) { in _store_item_copy_from_buf()28 item_chunk *tch = do_item_alloc_chunk(dch, len - done); in _store_item_copy_from_buf()30 dch = tch; in _store_item_copy_from_buf()
1471 while (dch->size == dch->used) { in _store_item_copy_chunks()1473 dch = dch->next; in _store_item_copy_chunks()1487 assert(dch->used <= dch->size); in _store_item_copy_chunks()1488 int todo = (dch->size - dch->used < sch->used - copied) in _store_item_copy_chunks()1489 ? dch->size - dch->used : sch->used - copied; in _store_item_copy_chunks()1496 assert(dch->used <= dch->size); in _store_item_copy_chunks()1497 if (dch->size == dch->used) { 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()1523 assert(dch->used <= dch->size); in _store_item_copy_chunks()[all …]