Searched refs:avail_bytes (Results 1 – 4 of 4) 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 …]
465 unsigned int isr_status, avail_bytes; in cdns_i2c_master_isr() local570 avail_bytes = id->fifo_depth - in cdns_i2c_master_isr()572 if (id->send_count > avail_bytes) in cdns_i2c_master_isr()573 bytes_to_send = avail_bytes; in cdns_i2c_master_isr()815 unsigned int avail_bytes; in cdns_i2c_msend_rem_atomic() local818 avail_bytes = id->fifo_depth - cdns_i2c_readreg(CDNS_I2C_XFER_SIZE_OFFSET); in cdns_i2c_msend_rem_atomic()819 if (id->send_count > avail_bytes) in cdns_i2c_msend_rem_atomic()820 bytes_to_send = avail_bytes; in cdns_i2c_msend_rem_atomic()842 unsigned int avail_bytes; in cdns_i2c_msend() local873 avail_bytes = id->fifo_depth - in cdns_i2c_msend()[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()
258 u32 avail_bytes = ax_spi_read(xspi, AX_SPI_RX_FBCAR); in ax_spi_process_rx_and_finalize() local274 while (avail_bytes >= 4 && (xspi->rx_copy_remaining || xspi->rx_discard)) { in ax_spi_process_rx_and_finalize()288 avail_bytes -= 4; in ax_spi_process_rx_and_finalize()