Lines Matching refs:maxlength
51 size_t maxlength, tlength, base, prebuf, minreq, maxrewind; member
64 size_t maxlength, in pa_memblockq_new() argument
85 …(unsigned long) maxlength, (unsigned long) tlength, (unsigned long) bq->base, (unsigned long) preb… in pa_memblockq_new()
89 pa_memblockq_set_maxlength(bq, maxlength); in pa_memblockq_new()
96 …(unsigned long) bq->maxlength, (unsigned long) bq->tlength, (unsigned long) bq->base, (unsigned lo… in pa_memblockq_new()
241 if (bq->write_index + (int64_t) l - bq->read_index > (int64_t) bq->maxlength) in can_push()
810 return bq->maxlength; in pa_memblockq_get_maxlength()
847 void pa_memblockq_set_maxlength(pa_memblockq *bq, size_t maxlength) { in pa_memblockq_set_maxlength() argument
850 bq->maxlength = ((maxlength+bq->base-1)/bq->base)*bq->base; in pa_memblockq_set_maxlength()
852 if (bq->maxlength < bq->base) in pa_memblockq_set_maxlength()
853 bq->maxlength = bq->base; in pa_memblockq_set_maxlength()
855 if (bq->tlength > bq->maxlength) in pa_memblockq_set_maxlength()
856 pa_memblockq_set_tlength(bq, bq->maxlength); in pa_memblockq_set_maxlength()
864 tlength = bq->maxlength; in pa_memblockq_set_tlength()
869 if (bq->tlength > bq->maxlength) in pa_memblockq_set_tlength()
870 bq->tlength = bq->maxlength; in pa_memblockq_set_tlength()
924 pa_memblockq_set_maxlength(bq, a->maxlength); in pa_memblockq_apply_attr()
934 a->maxlength = (uint32_t) pa_memblockq_get_maxlength(bq); in pa_memblockq_get_attr()