Lines Matching refs:avail_count
58 unsigned int avail_count, struct mapper_context *mapper, in read_frames() argument
67 if (*frame_count < avail_count) in read_frames()
68 avail_count = *frame_count; in read_frames()
71 if (avail_count > frame_cache_get_count(&closure->cache)) { in read_frames()
72 avail_count -= frame_cache_get_count(&closure->cache); in read_frames()
79 avail_count); in read_frames()
83 avail_count); in read_frames()
90 avail_count = frame_cache_get_count(&closure->cache); in read_frames()
94 consumed_count = avail_count; in read_frames()
114 snd_pcm_uframes_t avail_count; in r_process_frames_blocking() local
124 avail_count = (snd_pcm_uframes_t)avail; in r_process_frames_blocking()
126 if (avail_count == 0) { in r_process_frames_blocking()
130 &avail_count); in r_process_frames_blocking()
142 avail_count = (unsigned int)frame_count; in r_process_frames_blocking()
145 err = read_frames(state, frame_count, avail_count, mapper, cntrs); in r_process_frames_blocking()
162 snd_pcm_uframes_t avail_count; in r_process_frames_nonblocking() local
183 avail_count = (snd_pcm_uframes_t)avail; in r_process_frames_nonblocking()
185 if (avail_count == 0) { in r_process_frames_nonblocking()
191 err = read_frames(state, frame_count, avail_count, mapper, cntrs); in r_process_frames_nonblocking()
202 unsigned int *frame_count, unsigned int avail_count, in write_frames() argument
212 if (*frame_count < avail_count) in write_frames()
213 avail_count = *frame_count; in write_frames()
216 if (avail_count > frame_cache_get_count(&closure->cache)) { in write_frames()
217 avail_count -= frame_cache_get_count(&closure->cache); in write_frames()
221 closure->cache.buf_ptr, &avail_count, cntrs); in write_frames()
224 frame_cache_increase_count(&closure->cache, avail_count); in write_frames()
225 avail_count = frame_cache_get_count(&closure->cache); in write_frames()
230 consumed_count = avail_count; in write_frames()
258 unsigned int avail_count; in w_process_frames_blocking() local
268 avail_count = (unsigned int)avail; in w_process_frames_blocking()
270 if (avail_count == 0) { in w_process_frames_blocking()
278 avail_count = (unsigned int)avail_min; in w_process_frames_blocking()
300 avail_count = (unsigned int)frames_for_start_threshold; in w_process_frames_blocking()
302 avail_count = (unsigned int)frames_per_period; in w_process_frames_blocking()
305 err = write_frames(state, frame_count, avail_count, mapper, cntrs); in w_process_frames_blocking()
322 unsigned int avail_count; in w_process_frames_nonblocking() local
337 avail_count = (unsigned int)avail; in w_process_frames_nonblocking()
339 if (avail_count == 0) { in w_process_frames_nonblocking()
345 err = write_frames(state, frame_count, avail_count, mapper, cntrs); in w_process_frames_nonblocking()