Lines Matching refs:prebuf
51 size_t maxlength, tlength, base, prebuf, minreq, maxrewind; member
67 size_t prebuf, in pa_memblockq_new() argument
85 …ngth, (unsigned long) tlength, (unsigned long) bq->base, (unsigned long) prebuf, (unsigned long) m… in pa_memblockq_new()
92 pa_memblockq_set_prebuf(bq, prebuf); in pa_memblockq_new()
96 …nsigned long) bq->tlength, (unsigned long) bq->base, (unsigned long) bq->prebuf, (unsigned long) b… in pa_memblockq_new()
448 return pa_memblockq_get_length(bq) < bq->prebuf; in pa_memblockq_prebuf_active()
450 return bq->prebuf > 0 && bq->read_index >= bq->write_index; in pa_memblockq_prebuf_active()
458 if (pa_memblockq_get_length(bq) < bq->prebuf) in update_prebuf()
465 if (bq->prebuf > 0 && bq->read_index >= bq->write_index) { in update_prebuf()
803 if (bq->prebuf > 0) in pa_memblockq_prebuf_force()
816 return bq->prebuf; in pa_memblockq_get_prebuf()
875 if (bq->prebuf > bq->tlength+bq->base-bq->minreq) in pa_memblockq_set_tlength()
892 if (bq->prebuf > bq->tlength+bq->base-bq->minreq) in pa_memblockq_set_minreq()
896 void pa_memblockq_set_prebuf(pa_memblockq *bq, size_t prebuf) { in pa_memblockq_set_prebuf() argument
899 if (prebuf == (size_t) -1) in pa_memblockq_set_prebuf()
900 prebuf = bq->tlength+bq->base-bq->minreq; in pa_memblockq_set_prebuf()
902 bq->prebuf = ((prebuf+bq->base-1)/bq->base)*bq->base; in pa_memblockq_set_prebuf()
904 if (prebuf > 0 && bq->prebuf < bq->base) in pa_memblockq_set_prebuf()
905 bq->prebuf = bq->base; in pa_memblockq_set_prebuf()
907 if (bq->prebuf > bq->tlength+bq->base-bq->minreq) in pa_memblockq_set_prebuf()
908 bq->prebuf = bq->tlength+bq->base-bq->minreq; in pa_memblockq_set_prebuf()
910 if (bq->prebuf <= 0 || pa_memblockq_get_length(bq) >= bq->prebuf) in pa_memblockq_set_prebuf()
927 pa_memblockq_set_prebuf(bq, a->prebuf); in pa_memblockq_apply_attr()
936 a->prebuf = (uint32_t) pa_memblockq_get_prebuf(bq); in pa_memblockq_get_attr()