Lines Matching refs:frames

34 			       snd_pcm_uframes_t off, snd_pcm_uframes_t frames);
67 snd_pcm_uframes_t frames, ofs, transfer; in snd_pcm_playback_silence() local
85 frames = runtime->silence_threshold - noise_dist; in snd_pcm_playback_silence()
86 if (frames > runtime->silence_size) in snd_pcm_playback_silence()
87 frames = runtime->silence_size; in snd_pcm_playback_silence()
119 frames = runtime->buffer_size - runtime->silence_filled; in snd_pcm_playback_silence()
121 if (snd_BUG_ON(frames > runtime->buffer_size)) in snd_pcm_playback_silence()
123 if (frames == 0) in snd_pcm_playback_silence()
127 transfer = ofs + frames > runtime->buffer_size ? runtime->buffer_size - ofs : frames; in snd_pcm_playback_silence()
131 frames -= transfer; in snd_pcm_playback_silence()
133 } while (frames > 0); in snd_pcm_playback_silence()
2130 snd_pcm_uframes_t frames, in interleaved_copy() argument
2139 frames = frames_to_bytes(runtime, frames); in interleaved_copy()
2141 return do_transfer(substream, 0, hwoff, data + off, frames, transfer, in interleaved_copy()
2151 snd_pcm_uframes_t frames, in noninterleaved_copy() argument
2165 frames = samples_to_bytes(runtime, frames); in noninterleaved_copy()
2169 err = fill_silence(substream, c, hwoff, NULL, frames); in noninterleaved_copy()
2172 frames, transfer, in_kernel); in noninterleaved_copy()
2183 snd_pcm_uframes_t off, snd_pcm_uframes_t frames) in fill_silence_frames() argument
2187 return interleaved_copy(substream, off, NULL, 0, frames, in fill_silence_frames()
2190 return noninterleaved_copy(substream, off, NULL, 0, frames, in fill_silence_frames()
2343 snd_pcm_uframes_t frames, appl_ptr, appl_ofs; in __snd_pcm_lib_xfer() local
2363 frames = size > avail ? avail : size; in __snd_pcm_lib_xfer()
2367 if (frames > cont) in __snd_pcm_lib_xfer()
2368 frames = cont; in __snd_pcm_lib_xfer()
2369 if (snd_BUG_ON(!frames)) { in __snd_pcm_lib_xfer()
2380 err = writer(substream, appl_ofs, data, offset, frames, in __snd_pcm_lib_xfer()
2391 appl_ptr += frames; in __snd_pcm_lib_xfer()
2398 offset += frames; in __snd_pcm_lib_xfer()
2399 size -= frames; in __snd_pcm_lib_xfer()
2400 xfer += frames; in __snd_pcm_lib_xfer()
2401 avail -= frames; in __snd_pcm_lib_xfer()