Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/drivers/i2c/busses/
H A Di2c-cadence.c389 unsigned int isr_status, avail_bytes; in cdns_i2c_master_isr() local
494 avail_bytes = CDNS_I2C_FIFO_DEPTH - in cdns_i2c_master_isr()
496 if (id->send_count > avail_bytes) in cdns_i2c_master_isr()
497 bytes_to_send = avail_bytes; in cdns_i2c_master_isr()
623 unsigned int avail_bytes; in cdns_i2c_msend() local
654 avail_bytes = CDNS_I2C_FIFO_DEPTH - in cdns_i2c_msend()
657 if (id->send_count > avail_bytes) in cdns_i2c_msend()
658 bytes_to_send = avail_bytes; in cdns_i2c_msend()