• Home
  • Raw
  • Download

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()
277 size_t avail; in snd_compr_write() local
292 avail = snd_compr_get_avail(stream); in snd_compr_write()
293 pr_debug("avail returned %ld\n", (unsigned long)avail); in snd_compr_write()
295 if (avail > count) in snd_compr_write()
296 avail = count; in snd_compr_write()
300 retval = stream->ops->copy(stream, cbuf, avail); in snd_compr_write()
302 retval = snd_compr_write_data(stream, buf, avail); in snd_compr_write()
324 size_t avail; in snd_compr_read() local
347 avail = snd_compr_get_avail(stream); in snd_compr_read()
348 pr_debug("avail returned %ld\n", (unsigned long)avail); in snd_compr_read()
350 if (avail > count) in snd_compr_read()
351 avail = count; in snd_compr_read()
354 retval = stream->ops->copy(stream, buf, avail); in snd_compr_read()
384 size_t avail; in snd_compr_poll() local
400 avail = snd_compr_get_avail(stream); in snd_compr_poll()
401 pr_debug("avail is %ld\n", (unsigned long)avail); in snd_compr_poll()
414 if (avail >= stream->runtime->fragment_size) in snd_compr_poll()