Searched refs:avail_bytes (Results 1 – 3 of 3) sorted by relevance
535 int avail_bytes, data_count = count; in sprd_platform_compr_copy() local545 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 …]
67 size_t avail_bytes; /* number of new bytes since last period */ member171 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()
396 unsigned int isr_status, avail_bytes; in cdns_i2c_master_isr() local501 avail_bytes = CDNS_I2C_FIFO_DEPTH - in cdns_i2c_master_isr()503 if (id->send_count > avail_bytes) in cdns_i2c_master_isr()504 bytes_to_send = avail_bytes; in cdns_i2c_master_isr()664 unsigned int avail_bytes; in cdns_i2c_msend() local695 avail_bytes = CDNS_I2C_FIFO_DEPTH - in cdns_i2c_msend()698 if (id->send_count > avail_bytes) in cdns_i2c_msend()699 bytes_to_send = avail_bytes; in cdns_i2c_msend()