Lines Matching refs:used
76 * This macro should be used for audio wave data only.
257 audio_ring_t codecbuf; /* also used for wide->int conversion */
326 * Return ring's tail (= head + used) position.
332 return auring_round(ring, ring->head + ring->used);
337 * This function can be used only if the stride of the 'ring' is equal to
351 * Return ring's tail (= head + used) pointer.
352 * This function can be used only if the stride of the 'ring' is equal to
367 * This function can be used even if the stride of the 'ring' is equal to
380 * This function can be used even if the stride of the 'ring' is equal to
410 KASSERTMSG(ring->used >= n, "called from %s:%d: ring->used=%d n=%d",
411 func, line, ring->used, n);
414 ring->used -= n;
428 KASSERTMSG(ring->used + n <= ring->capacity,
429 "called from %s:%d: ring->used=%d n=%d ring->capacity=%d",
430 func, line, ring->used, n, ring->capacity);
432 ring->used += n;
436 * Return the number of contiguous frames in used.
443 if (ring->head + ring->used <= ring->capacity) {
444 return ring->used;
458 if (ring->head + ring->used < ring->capacity) {
459 return ring->capacity - (ring->head + ring->used);
461 return ring->capacity - ring->used;