Lines Matching refs:avail

184 		struct snd_compr_avail *avail)  in snd_compr_calc_avail()  argument
186 memset(avail, 0, sizeof(*avail)); in snd_compr_calc_avail()
187 snd_compr_update_tstamp(stream, &avail->tstamp); in snd_compr_calc_avail()
210 avail->avail = stream->runtime->total_bytes_available - in snd_compr_calc_avail()
213 avail->avail = stream->runtime->buffer_size - avail->avail; in snd_compr_calc_avail()
215 pr_debug("ret avail as %lld\n", avail->avail); in snd_compr_calc_avail()
216 return avail->avail; in snd_compr_calc_avail()
221 struct snd_compr_avail avail; in snd_compr_get_avail() local
223 return snd_compr_calc_avail(stream, &avail); in snd_compr_get_avail()
230 size_t avail; in snd_compr_ioctl_avail() local
232 avail = snd_compr_calc_avail(stream, &ioctl_avail); in snd_compr_ioctl_avail()
233 ioctl_avail.avail = avail; in snd_compr_ioctl_avail()
286 size_t avail; in snd_compr_write() local
305 avail = snd_compr_get_avail(stream); in snd_compr_write()
306 pr_debug("avail returned %ld\n", (unsigned long)avail); in snd_compr_write()
308 if (avail > count) in snd_compr_write()
309 avail = count; in snd_compr_write()
313 retval = stream->ops->copy(stream, cbuf, avail); in snd_compr_write()
315 retval = snd_compr_write_data(stream, buf, avail); in snd_compr_write()
337 size_t avail; in snd_compr_read() local
362 avail = snd_compr_get_avail(stream); in snd_compr_read()
363 pr_debug("avail returned %ld\n", (unsigned long)avail); in snd_compr_read()
365 if (avail > count) in snd_compr_read()
366 avail = count; in snd_compr_read()
369 retval = stream->ops->copy(stream, buf, avail); in snd_compr_read()
399 size_t avail; in snd_compr_poll() local
420 avail = snd_compr_get_avail(stream); in snd_compr_poll()
421 pr_debug("avail is %ld\n", (unsigned long)avail); in snd_compr_poll()
434 if (avail >= stream->runtime->fragment_size) in snd_compr_poll()