Lines Matching refs:bytes
28 struct snd_pcm_indirect *rec, size_t bytes);
55 unsigned int bytes = qsize - rec->hw_ready; in snd_pcm_indirect_playback_transfer() local
56 if (rec->sw_ready < (int)bytes) in snd_pcm_indirect_playback_transfer()
57 bytes = rec->sw_ready; in snd_pcm_indirect_playback_transfer()
58 if (hw_to_end < bytes) in snd_pcm_indirect_playback_transfer()
59 bytes = hw_to_end; in snd_pcm_indirect_playback_transfer()
60 if (sw_to_end < bytes) in snd_pcm_indirect_playback_transfer()
61 bytes = sw_to_end; in snd_pcm_indirect_playback_transfer()
62 if (! bytes) in snd_pcm_indirect_playback_transfer()
64 copy(substream, rec, bytes); in snd_pcm_indirect_playback_transfer()
65 rec->hw_data += bytes; in snd_pcm_indirect_playback_transfer()
68 rec->sw_data += bytes; in snd_pcm_indirect_playback_transfer()
71 rec->hw_ready += bytes; in snd_pcm_indirect_playback_transfer()
72 rec->sw_ready -= bytes; in snd_pcm_indirect_playback_transfer()
85 int bytes = ptr - rec->hw_io; in snd_pcm_indirect_playback_pointer() local
86 if (bytes < 0) in snd_pcm_indirect_playback_pointer()
87 bytes += rec->hw_buffer_size; in snd_pcm_indirect_playback_pointer()
89 rec->hw_ready -= bytes; in snd_pcm_indirect_playback_pointer()
90 rec->sw_io += bytes; in snd_pcm_indirect_playback_pointer()
123 size_t bytes = rec->sw_buffer_size - rec->sw_ready; in snd_pcm_indirect_capture_transfer() local
124 if (rec->hw_ready < (int)bytes) in snd_pcm_indirect_capture_transfer()
125 bytes = rec->hw_ready; in snd_pcm_indirect_capture_transfer()
126 if (hw_to_end < bytes) in snd_pcm_indirect_capture_transfer()
127 bytes = hw_to_end; in snd_pcm_indirect_capture_transfer()
128 if (sw_to_end < bytes) in snd_pcm_indirect_capture_transfer()
129 bytes = sw_to_end; in snd_pcm_indirect_capture_transfer()
130 if (! bytes) in snd_pcm_indirect_capture_transfer()
132 copy(substream, rec, bytes); in snd_pcm_indirect_capture_transfer()
133 rec->hw_data += bytes; in snd_pcm_indirect_capture_transfer()
136 rec->sw_data += bytes; in snd_pcm_indirect_capture_transfer()
139 rec->hw_ready -= bytes; in snd_pcm_indirect_capture_transfer()
140 rec->sw_ready += bytes; in snd_pcm_indirect_capture_transfer()
154 int bytes = ptr - rec->hw_io; in snd_pcm_indirect_capture_pointer() local
155 if (bytes < 0) in snd_pcm_indirect_capture_pointer()
156 bytes += rec->hw_buffer_size; in snd_pcm_indirect_capture_pointer()
158 rec->hw_ready += bytes; in snd_pcm_indirect_capture_pointer()
162 rec->sw_io += bytes; in snd_pcm_indirect_capture_pointer()