Lines Matching refs:frames

34 			       snd_pcm_uframes_t off, snd_pcm_uframes_t frames);
48 snd_pcm_uframes_t frames, ofs, transfer; in snd_pcm_playback_silence() local
69 frames = runtime->silence_threshold - noise_dist; in snd_pcm_playback_silence()
70 if (frames > runtime->silence_size) in snd_pcm_playback_silence()
71 frames = runtime->silence_size; in snd_pcm_playback_silence()
83 frames = new_hw_ptr - ofs; in snd_pcm_playback_silence()
84 if ((snd_pcm_sframes_t)frames < 0) in snd_pcm_playback_silence()
85 frames += runtime->boundary; in snd_pcm_playback_silence()
86 runtime->silence_filled -= frames; in snd_pcm_playback_silence()
94 frames = runtime->buffer_size - runtime->silence_filled; in snd_pcm_playback_silence()
96 if (snd_BUG_ON(frames > runtime->buffer_size)) in snd_pcm_playback_silence()
98 if (frames == 0) in snd_pcm_playback_silence()
101 while (frames > 0) { in snd_pcm_playback_silence()
102 transfer = ofs + frames > runtime->buffer_size ? runtime->buffer_size - ofs : frames; in snd_pcm_playback_silence()
106 frames -= transfer; in snd_pcm_playback_silence()
1987 snd_pcm_uframes_t frames, in interleaved_copy() argument
1995 frames = frames_to_bytes(runtime, frames); in interleaved_copy()
1996 return transfer(substream, 0, hwoff, data + off, frames); in interleaved_copy()
2005 snd_pcm_uframes_t frames, in noninterleaved_copy() argument
2018 frames = samples_to_bytes(runtime, frames); in noninterleaved_copy()
2022 err = fill_silence(substream, c, hwoff, NULL, frames); in noninterleaved_copy()
2025 frames); in noninterleaved_copy()
2036 snd_pcm_uframes_t off, snd_pcm_uframes_t frames) in fill_silence_frames() argument
2040 return interleaved_copy(substream, off, NULL, 0, frames, in fill_silence_frames()
2043 return noninterleaved_copy(substream, off, NULL, 0, frames, in fill_silence_frames()
2183 snd_pcm_uframes_t frames, appl_ptr, appl_ofs; in __snd_pcm_lib_xfer() local
2203 frames = size > avail ? avail : size; in __snd_pcm_lib_xfer()
2207 if (frames > cont) in __snd_pcm_lib_xfer()
2208 frames = cont; in __snd_pcm_lib_xfer()
2209 if (snd_BUG_ON(!frames)) { in __snd_pcm_lib_xfer()
2214 err = writer(substream, appl_ofs, data, offset, frames, in __snd_pcm_lib_xfer()
2222 appl_ptr += frames; in __snd_pcm_lib_xfer()
2229 offset += frames; in __snd_pcm_lib_xfer()
2230 size -= frames; in __snd_pcm_lib_xfer()
2231 xfer += frames; in __snd_pcm_lib_xfer()
2232 avail -= frames; in __snd_pcm_lib_xfer()