Lines Matching refs:avail
185 struct snd_compr_avail *avail) in snd_compr_calc_avail() argument
187 memset(avail, 0, sizeof(*avail)); in snd_compr_calc_avail()
188 snd_compr_update_tstamp(stream, &avail->tstamp); in snd_compr_calc_avail()
211 avail->avail = stream->runtime->total_bytes_available - in snd_compr_calc_avail()
214 avail->avail = stream->runtime->buffer_size - avail->avail; in snd_compr_calc_avail()
216 pr_debug("ret avail as %lld\n", avail->avail); in snd_compr_calc_avail()
217 return avail->avail; in snd_compr_calc_avail()
222 struct snd_compr_avail avail; in snd_compr_get_avail() local
224 return snd_compr_calc_avail(stream, &avail); in snd_compr_get_avail()
231 size_t avail; in snd_compr_ioctl_avail() local
233 avail = snd_compr_calc_avail(stream, &ioctl_avail); in snd_compr_ioctl_avail()
234 ioctl_avail.avail = avail; in snd_compr_ioctl_avail()
278 size_t avail; in snd_compr_write() local
293 avail = snd_compr_get_avail(stream); in snd_compr_write()
294 pr_debug("avail returned %ld\n", (unsigned long)avail); in snd_compr_write()
296 if (avail > count) in snd_compr_write()
297 avail = count; in snd_compr_write()
301 retval = stream->ops->copy(stream, cbuf, avail); in snd_compr_write()
303 retval = snd_compr_write_data(stream, buf, avail); in snd_compr_write()
325 size_t avail; in snd_compr_read() local
348 avail = snd_compr_get_avail(stream); in snd_compr_read()
349 pr_debug("avail returned %ld\n", (unsigned long)avail); in snd_compr_read()
351 if (avail > count) in snd_compr_read()
352 avail = count; in snd_compr_read()
355 retval = stream->ops->copy(stream, buf, avail); in snd_compr_read()
385 size_t avail; in snd_compr_poll() local
401 avail = snd_compr_get_avail(stream); in snd_compr_poll()
402 pr_debug("avail is %ld\n", (unsigned long)avail); in snd_compr_poll()
415 if (avail >= stream->runtime->fragment_size) in snd_compr_poll()