Home
last modified time | relevance | path

Searched refs:blockUsage (Results 1 – 1 of 1) sorted by relevance

/external/deqp/framework/delibs/destream/
DdeRingbuffer.c36 deInt32* blockUsage; member
63 ringbuffer->blockUsage = (deInt32*)deMalloc(sizeof(deUint32) * (size_t)blockCount); in deRingbuffer_create()
68 !ringbuffer->blockUsage || in deRingbuffer_create()
77 deFree(ringbuffer->blockUsage); in deRingbuffer_create()
82 memset(ringbuffer->blockUsage, 0, sizeof(deInt32) * (size_t)blockCount); in deRingbuffer_create()
109 free(ringbuffer->blockUsage); in deRingbuffer_destroy()
148 ringbuffer->blockUsage[ringbuffer->inBlock] += writeSize; in producerStream_write()
237 …writeSize = deMin32(ringbuffer->blockUsage[ringbuffer->outBlock] - ringbuffer->outPos, bufSize - *… in consumerStream_read()
247 if (ringbuffer->outPos == ringbuffer->blockUsage[ringbuffer->outBlock]) in consumerStream_read()
249 ringbuffer->blockUsage[ringbuffer->outBlock] = 0; in consumerStream_read()