Home
last modified time | relevance | path

Searched refs:avail_bytes (Results 1 – 2 of 2) sorted by relevance

/linux/sound/soc/sprd/
H A Dsprd-pcm-compress.c535 int avail_bytes, data_count = count; in sprd_platform_compr_copy() local
545 avail_bytes = runtime->fragment_size - stream->received_stage0; in sprd_platform_compr_copy()
548 if (avail_bytes >= data_count) { in sprd_platform_compr_copy()
566 if (copy_from_user(dst, buf, avail_bytes)) in sprd_platform_compr_copy()
569 data_count -= avail_bytes; in sprd_platform_compr_copy()
570 stream->received_stage0 += avail_bytes; in sprd_platform_compr_copy()
571 stream->copied_total += avail_bytes; in sprd_platform_compr_copy()
572 buf += avail_bytes; in sprd_platform_compr_copy()
587 avail_bytes = stream->compr_buffer.bytes - stream->stage1_pointer; in sprd_platform_compr_copy()
589 if (copy_from_user(dst, buf, avail_bytes)) in sprd_platform_compr_copy()
[all …]
/linux/sound/soc/codecs/
H A Drt5677-spi.c67 size_t avail_bytes; /* number of new bytes since last period */ member
171 rt5677_dsp->avail_bytes = 0; in rt5677_spi_prepare()
354 - rt5677_dsp->avail_bytes); in rt5677_spi_copy_work()
360 rt5677_dsp->avail_bytes += copy_bytes; in rt5677_spi_copy_work()
361 if (rt5677_dsp->avail_bytes >= period_bytes) { in rt5677_spi_copy_work()
363 rt5677_dsp->avail_bytes = 0; in rt5677_spi_copy_work()