Home
last modified time | relevance | path

Searched refs:max_chunks (Results 1 - 12 of 12) sorted by relevance

/third_party/curl/lib/
H A Dbufq.c214 size_t chunk_size, size_t max_chunks, int opts) in bufq_init()
217 DEBUGASSERT(max_chunks > 0); in bufq_init()
220 q->max_chunks = max_chunks; in bufq_init()
225 void Curl_bufq_init2(struct bufq *q, size_t chunk_size, size_t max_chunks, in Curl_bufq_init2() argument
228 bufq_init(q, NULL, chunk_size, max_chunks, opts); in Curl_bufq_init2()
231 void Curl_bufq_init(struct bufq *q, size_t chunk_size, size_t max_chunks) in Curl_bufq_init() argument
233 bufq_init(q, NULL, chunk_size, max_chunks, BUFQ_OPT_NONE); in Curl_bufq_init()
237 size_t max_chunks, int opts) in Curl_bufq_initp()
239 bufq_init(q, pool, pool->chunk_size, max_chunks, opt in Curl_bufq_initp()
213 bufq_init(struct bufq *q, struct bufc_pool *pool, size_t chunk_size, size_t max_chunks, int opts) bufq_init() argument
236 Curl_bufq_initp(struct bufq *q, struct bufc_pool *pool, size_t max_chunks, int opts) Curl_bufq_initp() argument
[all...]
H A Dbufq.h72 * By default, a bufq can hold up to `max_chunks * chunk_size` number
73 * of bytes. When `max_chunks` are used (in the `head` list) and the
83 * limit and use more than `max_chunks`. However it will report that it
100 size_t max_chunks; /* max `head` chunks to use */ member
107 * more bytes than can be hold in `max_chunks` is refused and will return
111 * Make `max_chunks` a "soft" limit. A bufq will report that it is "full"
112 * when `max_chunks` are used, but allows writing beyond this limit.
121 * Initialize a buffer queue that can hold up to `max_chunks` buffers
123 * more bytes than can be held in `max_chunks`.
125 void Curl_bufq_init(struct bufq *q, size_t chunk_size, size_t max_chunks);
[all...]
/third_party/curl/tests/unit/
H A Dunit2601.c67 fprintf(stderr, "bufq[chunk_size=%zu, max_chunks=%zu] %s\n", in dump_bufq()
68 q->chunk_size, q->max_chunks, msg); in dump_bufq()
92 size_t chunk_size, size_t max_chunks, in check_bufq()
97 size_t max_len = chunk_size * max_chunks; in check_bufq()
104 Curl_bufq_initp(&q, &pool, max_chunks, opts); in check_bufq()
107 Curl_bufq_init2(&q, chunk_size, max_chunks, opts); in check_bufq()
111 fail_unless(q.max_chunks == max_chunks, "max_chunks init wrong"); in check_bufq()
180 Curl_bufq_init2(&q, chunk_size, max_chunks, (opt in check_bufq()
91 check_bufq(size_t pool_spares, size_t chunk_size, size_t max_chunks, size_t wsize, size_t rsize, int opts) check_bufq() argument
[all...]
/third_party/node/deps/v8/src/libplatform/tracing/
H A Dtrace-buffer.cc11 TraceBufferRingBuffer::TraceBufferRingBuffer(size_t max_chunks, in TraceBufferRingBuffer() argument
13 : max_chunks_(max_chunks) { in TraceBufferRingBuffer()
15 chunks_.resize(max_chunks); in TraceBufferRingBuffer()
101 size_t max_chunks, TraceWriter* trace_writer) { in CreateTraceBufferRingBuffer()
102 return new TraceBufferRingBuffer(max_chunks, trace_writer); in CreateTraceBufferRingBuffer()
100 CreateTraceBufferRingBuffer( size_t max_chunks, TraceWriter* trace_writer) CreateTraceBufferRingBuffer() argument
H A Dtrace-buffer.h21 TraceBufferRingBuffer(size_t max_chunks, TraceWriter* trace_writer);
/third_party/node/src/tracing/
H A Dnode_trace_buffer.cc9 InternalTraceBuffer::InternalTraceBuffer(size_t max_chunks, uint32_t id, in InternalTraceBuffer() argument
11 : flushing_(false), max_chunks_(max_chunks), in InternalTraceBuffer()
13 chunks_.resize(max_chunks); in InternalTraceBuffer()
98 NodeTraceBuffer::NodeTraceBuffer(size_t max_chunks, in NodeTraceBuffer() argument
101 buffer1_(max_chunks, 0, agent), in NodeTraceBuffer()
102 buffer2_(max_chunks, 1, agent) { in NodeTraceBuffer()
H A Dnode_trace_buffer.h22 InternalTraceBuffer(size_t max_chunks, uint32_t id, Agent* agent);
53 NodeTraceBuffer(size_t max_chunks, Agent* agent, uv_loop_t* tracing_loop);
/third_party/mesa3d/src/gallium/winsys/amdgpu/drm/
H A Damdgpu_bo.h49 uint32_t max_chunks; member
H A Damdgpu_bo.c930 best_backing->max_chunks = 4; in sparse_backing_alloc()
931 best_backing->chunks = CALLOC(best_backing->max_chunks, in sparse_backing_alloc()
1040 if (backing->num_chunks >= backing->max_chunks) { in sparse_backing_free()
1041 unsigned new_max_chunks = 2 * backing->max_chunks; in sparse_backing_free()
1044 sizeof(*backing->chunks) * backing->max_chunks, in sparse_backing_free()
1049 backing->max_chunks = new_max_chunks; in sparse_backing_free()
/third_party/mesa3d/src/gallium/drivers/zink/
H A Dzink_bo.c61 uint32_t max_chunks; member
359 best_backing->max_chunks = 4; in sparse_backing_alloc()
360 best_backing->chunks = CALLOC(best_backing->max_chunks, in sparse_backing_alloc()
460 if (backing->num_chunks >= backing->max_chunks) { in sparse_backing_free()
461 unsigned new_max_chunks = 2 * backing->max_chunks; in sparse_backing_free()
464 sizeof(*backing->chunks) * backing->max_chunks, in sparse_backing_free()
469 backing->max_chunks = new_max_chunks; in sparse_backing_free()
/third_party/node/deps/v8/include/libplatform/
H A Dv8-tracing.h170 static TraceBuffer* CreateTraceBufferRingBuffer(size_t max_chunks,
/third_party/node/deps/v8/include/v8-include/libplatform/
H A Dv8-tracing.h170 static TraceBuffer* CreateTraceBufferRingBuffer(size_t max_chunks,

Completed in 9 milliseconds