Lines Matching refs:retval
285 int retval; in snd_compr_write() local
311 retval = stream->ops->copy(stream, cbuf, avail); in snd_compr_write()
313 retval = snd_compr_write_data(stream, buf, avail); in snd_compr_write()
315 if (retval > 0) in snd_compr_write()
316 stream->runtime->total_bytes_available += retval; in snd_compr_write()
326 return retval; in snd_compr_write()
336 int retval; in snd_compr_read() local
353 retval = -EBADFD; in snd_compr_read()
356 retval = -EPIPE; in snd_compr_read()
367 retval = stream->ops->copy(stream, buf, avail); in snd_compr_read()
369 retval = -ENXIO; in snd_compr_read()
372 if (retval > 0) in snd_compr_read()
373 stream->runtime->total_bytes_transferred += retval; in snd_compr_read()
377 return retval; in snd_compr_read()
398 __poll_t retval = 0; in snd_compr_poll() local
410 retval = snd_compr_get_poll(stream) | EPOLLERR; in snd_compr_poll()
426 retval = snd_compr_get_poll(stream); in snd_compr_poll()
433 retval = snd_compr_get_poll(stream); in snd_compr_poll()
436 retval = snd_compr_get_poll(stream) | EPOLLERR; in snd_compr_poll()
441 return retval; in snd_compr_poll()
447 int retval; in snd_compr_get_caps() local
454 retval = stream->ops->get_caps(stream, &caps); in snd_compr_get_caps()
455 if (retval) in snd_compr_get_caps()
458 retval = -EFAULT; in snd_compr_get_caps()
460 return retval; in snd_compr_get_caps()
467 int retval; in snd_compr_get_codec_caps() local
477 retval = stream->ops->get_codec_caps(stream, caps); in snd_compr_get_codec_caps()
478 if (retval) in snd_compr_get_codec_caps()
481 retval = -EFAULT; in snd_compr_get_codec_caps()
485 return retval; in snd_compr_get_codec_caps()
590 int retval; in snd_compr_set_params() local
601 retval = snd_compress_check_input(params); in snd_compr_set_params()
602 if (retval) in snd_compr_set_params()
605 retval = snd_compr_allocate_buffer(stream, params); in snd_compr_set_params()
606 if (retval) { in snd_compr_set_params()
607 retval = -ENOMEM; in snd_compr_set_params()
611 retval = stream->ops->set_params(stream, params); in snd_compr_set_params()
612 if (retval) in snd_compr_set_params()
624 return retval; in snd_compr_set_params()
631 int retval; in snd_compr_get_params() local
639 retval = stream->ops->get_params(stream, params); in snd_compr_get_params()
640 if (retval) in snd_compr_get_params()
643 retval = -EFAULT; in snd_compr_get_params()
647 return retval; in snd_compr_get_params()
654 int retval; in snd_compr_get_metadata() local
662 retval = stream->ops->get_metadata(stream, &metadata); in snd_compr_get_metadata()
663 if (retval != 0) in snd_compr_get_metadata()
664 return retval; in snd_compr_get_metadata()
676 int retval; in snd_compr_set_metadata() local
687 retval = stream->ops->set_metadata(stream, &metadata); in snd_compr_set_metadata()
690 return retval; in snd_compr_set_metadata()
708 int retval; in snd_compr_pause() local
712 retval = stream->ops->trigger(stream, SNDRV_PCM_TRIGGER_PAUSE_PUSH); in snd_compr_pause()
713 if (!retval) in snd_compr_pause()
719 retval = stream->ops->trigger(stream, SNDRV_PCM_TRIGGER_PAUSE_PUSH); in snd_compr_pause()
720 if (!retval) in snd_compr_pause()
726 return retval; in snd_compr_pause()
731 int retval; in snd_compr_resume() local
735 retval = stream->ops->trigger(stream, SNDRV_PCM_TRIGGER_PAUSE_RELEASE); in snd_compr_resume()
736 if (!retval) in snd_compr_resume()
742 retval = stream->ops->trigger(stream, SNDRV_PCM_TRIGGER_PAUSE_RELEASE); in snd_compr_resume()
743 if (!retval) in snd_compr_resume()
749 return retval; in snd_compr_resume()
754 int retval; in snd_compr_start() local
767 retval = stream->ops->trigger(stream, SNDRV_PCM_TRIGGER_START); in snd_compr_start()
768 if (!retval) in snd_compr_start()
770 return retval; in snd_compr_start()
775 int retval; in snd_compr_stop() local
786 retval = stream->ops->trigger(stream, SNDRV_PCM_TRIGGER_STOP); in snd_compr_stop()
787 if (!retval) { in snd_compr_stop()
796 return retval; in snd_compr_stop()
875 int retval; in snd_compr_drain() local
889 retval = stream->ops->trigger(stream, SND_COMPR_TRIGGER_DRAIN); in snd_compr_drain()
890 if (retval) { in snd_compr_drain()
891 pr_debug("SND_COMPR_TRIGGER_DRAIN failed %d\n", retval); in snd_compr_drain()
893 return retval; in snd_compr_drain()
901 int retval; in snd_compr_next_track() local
917 retval = stream->ops->trigger(stream, SND_COMPR_TRIGGER_NEXT_TRACK); in snd_compr_next_track()
918 if (retval != 0) in snd_compr_next_track()
919 return retval; in snd_compr_next_track()
927 int retval; in snd_compr_partial_drain() local
950 retval = stream->ops->trigger(stream, SND_COMPR_TRIGGER_PARTIAL_DRAIN); in snd_compr_partial_drain()
951 if (retval) { in snd_compr_partial_drain()
954 return retval; in snd_compr_partial_drain()
965 int retval = -ENOTTY; in snd_compr_ioctl() local
975 retval = put_user(SNDRV_COMPRESS_VERSION, in snd_compr_ioctl()
979 retval = snd_compr_get_caps(stream, arg); in snd_compr_ioctl()
983 retval = snd_compr_get_codec_caps(stream, arg); in snd_compr_ioctl()
987 retval = snd_compr_set_params(stream, arg); in snd_compr_ioctl()
990 retval = snd_compr_get_params(stream, arg); in snd_compr_ioctl()
993 retval = snd_compr_set_metadata(stream, arg); in snd_compr_ioctl()
996 retval = snd_compr_get_metadata(stream, arg); in snd_compr_ioctl()
999 retval = snd_compr_tstamp(stream, arg); in snd_compr_ioctl()
1002 retval = snd_compr_ioctl_avail(stream, arg); in snd_compr_ioctl()
1005 retval = snd_compr_pause(stream); in snd_compr_ioctl()
1008 retval = snd_compr_resume(stream); in snd_compr_ioctl()
1011 retval = snd_compr_start(stream); in snd_compr_ioctl()
1014 retval = snd_compr_stop(stream); in snd_compr_ioctl()
1017 retval = snd_compr_drain(stream); in snd_compr_ioctl()
1020 retval = snd_compr_partial_drain(stream); in snd_compr_ioctl()
1023 retval = snd_compr_next_track(stream); in snd_compr_ioctl()
1028 return retval; in snd_compr_ioctl()