Lines Matching full:bytes

19 	int hw_ready;		/* Bytes ready for play (or captured) in hw ring buffer */
22 unsigned int sw_io; /* Current software pointer in bytes */
23 int sw_ready; /* Bytes ready to be transferred to/from hw */
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
88 if (bytes < 0) in snd_pcm_indirect_playback_pointer()
89 bytes += rec->hw_buffer_size; in snd_pcm_indirect_playback_pointer()
91 rec->hw_ready -= bytes; in snd_pcm_indirect_playback_pointer()
92 rec->sw_io += bytes; in snd_pcm_indirect_playback_pointer()
128 size_t bytes = rec->sw_buffer_size - rec->sw_ready; in snd_pcm_indirect_capture_transfer() local
129 if (rec->hw_ready < (int)bytes) in snd_pcm_indirect_capture_transfer()
130 bytes = rec->hw_ready; in snd_pcm_indirect_capture_transfer()
131 if (hw_to_end < bytes) in snd_pcm_indirect_capture_transfer()
132 bytes = hw_to_end; in snd_pcm_indirect_capture_transfer()
133 if (sw_to_end < bytes) in snd_pcm_indirect_capture_transfer()
134 bytes = sw_to_end; in snd_pcm_indirect_capture_transfer()
135 if (! bytes) in snd_pcm_indirect_capture_transfer()
137 copy(substream, rec, bytes); in snd_pcm_indirect_capture_transfer()
138 rec->hw_data += bytes; in snd_pcm_indirect_capture_transfer()
141 rec->sw_data += bytes; in snd_pcm_indirect_capture_transfer()
144 rec->hw_ready -= bytes; in snd_pcm_indirect_capture_transfer()
145 rec->sw_ready += bytes; in snd_pcm_indirect_capture_transfer()
159 int bytes = ptr - rec->hw_io; in snd_pcm_indirect_capture_pointer() local
162 if (bytes < 0) in snd_pcm_indirect_capture_pointer()
163 bytes += rec->hw_buffer_size; in snd_pcm_indirect_capture_pointer()
165 rec->hw_ready += bytes; in snd_pcm_indirect_capture_pointer()
169 rec->sw_io += bytes; in snd_pcm_indirect_capture_pointer()