Lines Matching full:capacity
42 size_t old = buffer->capacity; in buffer_adj_size()
43 buffer->capacity = buffer_req_size(buffer, len); in buffer_adj_size()
44 buffer->buffer = g_realloc(buffer->buffer, buffer->capacity); in buffer_adj_size()
46 old, buffer->capacity); in buffer_adj_size()
49 * to current capacity if it is larger than the average. */ in buffer_adj_size()
51 buffer->capacity << BUFFER_AVG_SIZE_SHIFT); in buffer_adj_size()
83 if (new < buffer->capacity >> 3 && in buffer_shrink()
93 if ((buffer->capacity - buffer->offset) < len) { in buffer_reserve()
116 trace_buffer_free(buffer->name ?: "unnamed", buffer->capacity); in buffer_free()
120 buffer->capacity = 0; in buffer_free()
148 to->capacity = from->capacity; in buffer_move_empty()
152 from->capacity = 0; in buffer_move_empty()
171 from->capacity = 0; in buffer_move()